Bug #75612 [NEW]: php-mysqli build fails with MariaDB-10.2
| From: | dkasyanov at cloudlinux dot com | Date: | Fri, 01 Dec 2017 18:52:59 +0000 |
| Subject: | Bug #75612 [NEW]: php-mysqli build fails with MariaDB-10.2 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-212872@lists.php.net to get a copy of this message | ||
From: dkasyanov at cloudlinux dot com
Operating system: Centos 7
PHP version: 7.1.12
Package: MySQLi related
Bug Type: Bug
Bug description:php-mysqli build fails with MariaDB-10.2
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 bug report at https://bugs.php.net/bug.php?id=75612&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75612&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75612&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75612&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75612&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75612&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75612&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75612&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75612&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75612&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75612&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75612&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75612&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75612&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75612&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75612&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75612&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75612&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75612&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75612&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75612&r=mysqlcfg