From: danielecosta at tiscali dot it Operating system: Red hat 9 linux PHP version: 5.0.5 PHP Bug Type: Compile Failure Bug description: php 5.0.5 does'nt compile after configure
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 bug report at http://bugs.php.net/?id=35354&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35354&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35354&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35354&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=35354&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35354&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35354&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35354&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35354&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35354&r=support Expected behavior: http://bugs.php.net/fix.php?id=35354&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35354&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35354&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35354&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35354&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35354&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35354&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35354&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35354&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35354&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35354&r=mysqlcfg