Description:
When compiling php with mysqli support, compile fails with the following...
Configure for php is as follows...
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib --with-gd --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-embedded-mysqli
error message is...
.
.
.
/bin/sh /usr/local/php/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/mysqli/ -I/usr/local/php/ext/mysqli/ -DPHP_ATOM_INC -I/usr/local/php/include -I/usr/local/php/main -I/usr/local/php -I/usr/include/libxml2 -I/usr/local/php/ext/date/lib -I/usr/local/mysql/include -I/usr/local/php/TSRM -I/usr/local/php/Zend -I/usr/include -g -O2 -prefer-non-pic -c /usr/local/php/ext/mysqli/mysqli_api.c -o ext/mysqli/mysqli_api.lo
/usr/local/php/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_change_user':
/usr/local/php/ext/mysqli/mysqli_api.c:420: error: 'NET' has no member named 'last_errno'
/usr/local/php/ext/mysqli/mysqli_api.c:420: error: 'NET' has no member named 'last_errno'
/usr/local/php/ext/mysqli/mysqli_api.c:420: error: 'NET' has no member named 'last_error'
/usr/local/php/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_kill':
/usr/local/php/ext/mysqli/mysqli_api.c:1152: error: 'NET' has no member named 'last_errno'
/usr/local/php/ext/mysqli/mysqli_api.c:1152: error: 'NET' has no member named 'last_errno'
/usr/local/php/ext/mysqli/mysqli_api.c:1152: error: 'NET' has no member named 'last_error'
/usr/local/php/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_ping':
/usr/local/php/ext/mysqli/mysqli_api.c:1333: error: 'NET' has no member named 'last_errno'
/usr/local/php/ext/mysqli/mysqli_api.c:1333: error: 'NET' has no member named 'last_errno'
/usr/local/php/ext/mysqli/mysqli_api.c:1333: error: 'NET' has no member named 'last_error'
/usr/local/php/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_prepare':
/usr/local/php/ext/mysqli/mysqli_api.c:1376: error: 'NET' has no member named 'last_errno'
/usr/local/php/ext/mysqli/mysqli_api.c:1377: error: 'NET' has no member named 'last_error'
/usr/local/php/ext/mysqli/mysqli_api.c:1383: error: 'NET' has no member named 'last_errno'
/usr/local/php/ext/mysqli/mysqli_api.c:1383: error: 'NET' has no member named 'last_errno'
/usr/local/php/ext/mysqli/mysqli_api.c:1383: error: 'NET' has no member named 'last_error'
/usr/local/php/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_real_connect':
/usr/local/php/ext/mysqli/mysqli_api.c:1453: error: 'NET' has no member named 'last_errno'
/usr/local/php/ext/mysqli/mysqli_api.c:1454: error: 'NET' has no member named 'last_error'
/usr/local/php/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_real_query':
/usr/local/php/ext/mysqli/mysqli_api.c:1492: error: 'NET' has no member named 'last_errno'
/usr/local/php/ext/mysqli/mysqli_api.c:1492: error: 'NET' has no member named 'last_errno'
/usr/local/php/ext/mysqli/mysqli_api.c:1492: error: 'NET' has no member named 'last_error'
/usr/local/php/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_select_db':
/usr/local/php/ext/mysqli/mysqli_api.c:1761: error: 'NET' has no member named 'last_errno'
/usr/local/php/ext/mysqli/mysqli_api.c:1761: error: 'NET' has no member named 'last_errno'
/usr/local/php/ext/mysqli/mysqli_api.c:1761: error: 'NET' has no member named 'last_error'
/usr/local/php/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_store_result':
/usr/local/php/ext/mysqli/mysqli_api.c:2058: error: 'NET' has no member named 'last_errno'
/usr/local/php/ext/mysqli/mysqli_api.c:2058: error: 'NET' has no member named 'last_errno'
/usr/local/php/ext/mysqli/mysqli_api.c:2058: error: 'NET' has no member named 'last_error'
/usr/local/php/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_use_result':
/usr/local/php/ext/mysqli/mysqli_api.c:2112: error: 'NET' has no member named 'last_errno'
/usr/local/php/ext/mysqli/mysqli_api.c:2112: error: 'NET' has no member named 'last_errno'
/usr/local/php/ext/mysqli/mysqli_api.c:2112: error: 'NET' has no member named 'last_error'
make: *** [ext/mysqli/mysqli_api.lo] Error 1
-----------------------
The compile of php works fine with mysql 5.1.22
mysql-5.1.23a-maria-alpha-linux-i686-glibc23
php-5.2.5
How to repeat:
Always repeatable.