Bug #75612 [Com]: php-mysqli build fails with MariaDB-10.2
Edit report at https://bugs.php.net/bug.php?id=75612&edit=1
ID: 75612
Comment by: bero at lindev dot ch
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:
One reason not to use mysqlnd is --enable-embedded-mysqli -- other than that, mysqlnd should do the
trick (but needs some testing on our side -- we know libmysql to work from years of using it).
Previous Comments:
------------------------------------------------------------------------
[2018-04-06 22:05:54] spam2 at rhsoft dot net
why don't you just build with mysqlnd - IMHO the libmysql stuff should have been removed from
php many years ago
------------------------------------------------------------------------
[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
Thread (9 messages)