ID: 35354 Updated by: [EMAIL PROTECTED] Reported By: danielecosta at tiscali dot it -Status: Open +Status: Feedback Bug Type: Compile Failure Operating System: Red hat 9 linux PHP Version: 5.0.5 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2005-11-23 19:26:03] danielecosta at tiscali dot it Description: ------------ Hello , I've the same problem reported in bug #34487,when compiling php 5.0.5 with --with-mysql option. I've removed any old header file related to mysql and then reinstalled MySQL-devel-5.x libraries via RPM. I've disabled also all the extension . Here's the full configure command: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --disable-all --with-mysql this command runs with no problem but after the make command I got this: ext/mysql/php_mysql.lo(.text+0x2076): In function `zif_mysql_create_db': /root/software/php-5.0.5/ext/mysql/php_mysql.c:1169: undefined reference to `mysql_create_db' ext/mysql/php_mysql.lo(.text+0x2279): In function `zif_mysql_drop_db': /root/software/php-5.0.5/ext/mysql/php_mysql.c:1211: undefined reference to `mysql_drop_db' main/SAPI.lo(.text+0xe15): In function `sapi_header_op': /root/software/php-5.0.5/main/SAPI.c:625: undefined reference to `php_pcre_replace' main/SAPI.lo(.text+0xebb):/root/software/php-5.0.5/main/SAPI.c:633: undefined reference to `php_pcre_replace' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 Please help me! Reproduce code: --------------- Here's the full configure command: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --disable-all --with-mysql this goes well then with make i got: Expected result: ---------------- all compile with no errors Actual result: -------------- ext/mysql/php_mysql.lo(.text+0x2076): In function `zif_mysql_create_db': /root/software/php-5.0.5/ext/mysql/php_mysql.c:1169: undefined reference to `mysql_create_db' ext/mysql/php_mysql.lo(.text+0x2279): In function `zif_mysql_drop_db': /root/software/php-5.0.5/ext/mysql/php_mysql.c:1211: undefined reference to `mysql_drop_db' main/SAPI.lo(.text+0xe15): In function `sapi_header_op': /root/software/php-5.0.5/main/SAPI.c:625: undefined reference to `php_pcre_replace' main/SAPI.lo(.text+0xebb):/root/software/php-5.0.5/main/SAPI.c:633: undefined reference to `php_pcre_replace' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35354&edit=1