#32256 [NEW]: configure won't build mysqli as shared extension

From: Date: Wed, 09 Mar 2005 16:55:48 +0000
Subject: #32256 [NEW]: configure won't build mysqli as shared extension
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-75180@lists.php.net to get a copy of this message
From: liamr at umich dot edu Operating system: Linux 2.4.28 PHP version: 5.0.3 PHP Bug Type: MySQLi related Bug description: configure won't build mysqli as shared extension Description: ------------ I'm trying to build mysqli as a shared extension in PHP 5.0.3 against MySQL 4.1.10, and configure complains: ./configure --with-mysqli=/usr/bin/mysql_config checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking whether gcc and cc understand -c and -o together... yes checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for PHP prefix... /usr checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM checking for PHP extension directory... /usr/lib/php/extensions/no-debug-non-zts-20041030 checking for re2c... exit 0; checking for gawk... gawk checking for MySQLi support... yes, shared checking whether to enable embedded MySQLi support... no checking for mysql_set_server_option in -lmysqlclient... yes checking for mysql_stmt_field_count in -lmysqlclient... no configure: error: MySQLI doesn't support versions < 4.1.3 (for MySQL 4.1.x) and < 5.0.1 for (MySQL 5.0.x) anymore. Please update your libraries. Here's the output from mysql_config: papiamentu-liamr:; mysql_config Usage: /usr/bin/mysql_config [OPTIONS] Options: --cflags [-I/usr/include/mysql] --include [-I/usr/include/mysql] --libs [-L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto] --libs_r [-L/usr/lib/mysql -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread -L/usr/lib -lssl -lcrypto] --socket [/var/mysql/run/mysql.sock] --port [3306] --version [4.1.10] --libmysqld-libs [-L/usr/lib/mysql -lmysqld -lpthread -lcrypt -lnsl -lm -lpthread -lrt] I get the same result if I try to configure php w/ mysqli: papiamentu-liamr:; pwd /usr/src/php-5.0.3 papiamentu-liamr:; ./configure --with-mysqli=shared,/usr/bin/mysql_config creating cache ./config.cache checking host system type... i686-pc-linux-gnu Updated main/php_version.h ****SNIP**** checking for MySQLi support... yes, shared checking whether to enable embedded MySQLi support... no checking for mysql_set_server_option in -lmysqlclient... yes checking for mysql_stmt_field_count in -lmysqlclient... no configure: error: MySQLI doesn't support versions < 4.1.3 (for MySQL 4.1.x) and < 5.0.1 for (MySQL 5.0.x) anymore. Please update your libraries. It seems to work if I build it w/ mysqli build into the php binary: papiamentu-liamr:; ./configure --with-mysqli=/usr/bin/mysql_config creating cache ./config.cache checking host system type... i686-pc-linux-gnu Updated main/php_version.h ****SNIP**** checking for MySQLi support... yes checking whether to enable embedded MySQLi support... no checking for mysql_set_server_option in -lmysqlclient... yes checking for mysql_stmt_field_count in -lmysqlclient... yes -- Edit bug report at http://bugs.php.net/?id=32256&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32256&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32256&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32256&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32256&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32256&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32256&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32256&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32256&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32256&r=support Expected behavior: http://bugs.php.net/fix.php?id=32256&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32256&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32256&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32256&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32256&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32256&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32256&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32256&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32256&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32256&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32256&r=mysqlcfg

« previous php.bugs (#75180) next »