Bug #34970 php 5.2.5, mysql 5.1.23a and mysqli does not work
Submitted: 1 Mar 2008 15:45 Modified: 1 Mar 2008 16:36
Reporter: Paul Flatt Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Websites: bugs.mysql.com Severity:S2 (Serious)
Version:5.1.23a OS:Linux
Assigned to: CPU Architecture:Any
Tags: php mysqli

[1 Mar 2008 15:45] Paul Flatt
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.
[1 Mar 2008 16:36] Sveta Smirnova
Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments to the original bug instead.

Thank you for your interest in MySQL.

Duplicate of bug #34655