#44137 [Opn]: Compile will fail with MySQL-5.1.23-rc
| From: | uw@php.net | Date: | Mon, 18 Feb 2008 15:27:58 +0000 |
| Subject: | #44137 [Opn]: Compile will fail with MySQL-5.1.23-rc | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-122412@lists.php.net to get a copy of this message | ||
ID: 44137
Updated by: uw@php.net
Reported By: jari dot tuomoja at gmail dot com
Status: Open
Bug Type: MySQLi related
Operating System: Fedora Core 6, x86_64
PHP Version: 5.2.5
New Comment:
ACK, please try the latest versions. I recall similar issues not on FC6
but in general. There have been changes to some structures. Let me ping
Andrey, he might know more.
Ulf
Previous Comments:
------------------------------------------------------------------------
[2008-02-17 07:12:21] jari dot tuomoja at gmail dot com
MySQL have compiled with following options:
./configure --prefix=/usr/local/mysql --enable-shared --enable-static
--without-server
Server has all latest libraries in use, they are installed with yum
from Fedora reposity.
--JARI--
------------------------------------------------------------------------
[2008-02-17 07:08:32] jari dot tuomoja at gmail dot com
Here is the configure script:
./configure --with-zlib-dir=/usr/local/ --enable-shared --enable-static
--disable-short-tags --with-apxs2=/usr/local/apache2/bin/apxs --with-bz2
--with-mysql=/usr/local/mysql
--with-mysqli=/usr/local/mysql/bin/mysql_config
--with-pdo-mysql=/usr/local/mysql/ --enable-exif --with-gd=/usr/local/
--with-freetype-dir=/usr/local/include/freetype2/
--with-png-dir=/usr/local/include/ --enable-mbstring=all
--enable-gd-native-ttf --enable-calendar --enable-zip
--enable-sqlite-utf8 --with-openssl --with-mcrypt --with-mhash
--with-pear --enable-soap --enable-mod-charset --enable-ftp --with-xsl
./configure is succeed but when running make, then come this:
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c: In function
'zif_mysqli_change_user':
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:420: error: 'NET' has no
member named 'last_errno'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:420: error: 'NET' has no
member named 'last_errno'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:420: error: 'NET' has no
member named 'last_error'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c: In function
'zif_mysqli_kill':
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:1152: error: 'NET' has no
member named 'last_errno'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:1152: error: 'NET' has no
member named 'last_errno'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:1152: error: 'NET' has no
member named 'last_error'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c: In function
'zif_mysqli_ping':
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:1333: error: 'NET' has no
member named 'last_errno'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:1333: error: 'NET' has no
member named 'last_errno'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:1333: error: 'NET' has no
member named 'last_error'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c: In function
'zif_mysqli_prepare':
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:1376: error: 'NET' has no
member named 'last_errno'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:1377: error: 'NET' has no
member named 'last_error'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:1383: error: 'NET' has no
member named 'last_errno'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:1383: error: 'NET' has no
member named 'last_errno'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:1383: error: 'NET' has no
member named 'last_error'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c: In function
'zif_mysqli_real_connect':
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:1453: error: 'NET' has no
member named 'last_errno'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:1454: error: 'NET' has no
member named 'last_error'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c: In function
'zif_mysqli_real_query':
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:1492: error: 'NET' has no
member named 'last_errno'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:1492: error: 'NET' has no
member named 'last_errno'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:1492: error: 'NET' has no
member named 'last_error'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c: In function
'zif_mysqli_select_db':
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:1761: error: 'NET' has no
member named 'last_errno'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:1761: error: 'NET' has no
member named 'last_errno'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:1761: error: 'NET' has no
member named 'last_error'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c: In function
'zif_mysqli_store_result':
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:2058: error: 'NET' has no
member named 'last_errno'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:2058: error: 'NET' has no
member named 'last_errno'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:2058: error: 'NET' has no
member named 'last_error'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c: In function
'zif_mysqli_use_result':
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:2112: error: 'NET' has no
member named 'last_errno'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:2112: error: 'NET' has no
member named 'last_errno'
/usr/src/php-5.2.5/ext/mysqli/mysqli_api.c:2112: error: 'NET' has no
member named 'last_error'
make: *** [ext/mysqli/mysqli_api.lo] Error 1
I hope this helps.
--JARI--
------------------------------------------------------------------------
[2008-02-16 18:11:31] johannes@php.net
Can't reproduce, please give the relevant error messages and, if
possible, the link to MySQL Bug. Thanks.
------------------------------------------------------------------------
[2008-02-16 07:20:01] jari dot tuomoja at gmail dot com
Description:
------------
When compiling MySQL 5.1.23-rc, option
--with-mysqli=/youd/dir/to/mysql_config will always fail.
MySQL and PDO are working ok but mysqli is failing. With MySQL
5.1.22-rc everything works well.
MySQL answered that this is a bug in PHP, not in MySQL. MySQL server is
working okay.
Reproduce code:
---------------
Compile php-5.2.5 with mysqli -option.
Expected result:
----------------
Compile ok
Actual result:
--------------
Error messages and compile will exit
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44137&edit=1