Bug #75612 [Com]: php-mysqli build fails with MariaDB-10.2
| From: | spam2 at rhsoft dot net | Date: | Fri, 06 Apr 2018 22:05:56 +0000 |
| Subject: | Bug #75612 [Com]: php-mysqli build fails with MariaDB-10.2 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-214637@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75612&edit=1
ID: 75612
Comment by: spam2 at rhsoft dot net
Reported by: dkasyanov at cloudlinux dot com
Summary: php-mysqli build fails with MariaDB-10.2
Status: Open
Type: Bug
Package: MySQLi related
Operating System: Centos 7
PHP Version: 7.1.12
Block user comment: N
Private report: N
New Comment:
why don't you just build with mysqlnd - IMHO the libmysql stuff should have been removed from
php many years ago
Previous Comments:
------------------------------------------------------------------------
[2018-04-06 20:06:23] bero at lindev dot ch
Same issue here on OpenMandriva with MariaDB 10.3 -- attaching a patch that makes it build and
essentially work, but I'm not sure I've handled the removal of st_mysql->reconnect
correctly.
------------------------------------------------------------------------
[2017-12-01 18:52:58] dkasyanov at cloudlinux dot com
Description:
------------
MariaDB developers have changed mysql headers in 10.2.10+ and now PHP is not compiling.
How to reproduce:
install MariaDB-devel package >= 10.2.10 and run:
./configure --with-mysqli=/usr/bin/mysql_config CPPFLAGS="-I/usr/include/mysql"
make
Test script:
---------------
Compiled PHP binary
Actual result:
--------------
In file included from /root/php-7.1.12/ext/mysqli/php_mysqli_structs.h:63:0,
from /root/php-7.1.12/ext/mysqli/mysqli.c:34:
/usr/include/mysql/my_global.h:3:2: warning: #warning This file should not be included by clients,
include only <mysql.h> [-Wcpp]
#warning This file should not be included by clients, include only <mysql.h>
^
In file included from /root/php-7.1.12/ext/mysqli/php_mysqli_structs.h:79:0,
from /root/php-7.1.12/ext/mysqli/mysqli.c:34:
/usr/include/mysql/my_sys.h:3:2: warning: #warning This file should not be included by clients,
include only <mysql.h> [-Wcpp]
#warning This file should not be included by clients, include only <mysql.h>
^
In file included from /root/php-7.1.12/ext/mysqli/mysqli.c:34:0:
/root/php-7.1.12/ext/mysqli/php_mysqli_structs.h:82:21: fatal error: my_list.h: No such file or
directory
#include <my_list.h>
^
compilation terminated.
make: *** [ext/mysqli/mysqli.lo] Error 1
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75612&edit=1