ID: 34487 User updated by: rporticio at yahoo dot com Reported By: rporticio at yahoo dot com -Status: Bogus +Status: Open Bug Type: Compile Failure Operating System: Red hat 9 linux -PHP Version: 5.0.4 +PHP Version: 5.0.5 New Comment:
i already use php 5.0.5 the new version and i loaded 4 mysql rpm packages namely: MySQL-client-4.1.14-0.i386.rpm MySQL-devel-4.1.14-0.i386.rpm for header files as you suggested MySQL-server-4.1.14-0.i386.rpm MySQL-shared-4.1.14-0.i386.rpm using rpm -Uvh here's next what i did cd to php-5.0.5 and follow the isntruction in php manual in installing apache 2 on unix systems with php5.0.5 as follows ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql the result is: ----- some codes here ext/mysql/php_mysql.lo(.text+0x2076): In function `zif_mysql_create_db': /home/php/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': /home/php/php-5.0.5/ext/mysql/php_mysql.c:1211: undefined reference to `mysql_drop_db' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 Previous Comments: ------------------------------------------------------------------------ [2005-09-13 09:39:22] [EMAIL PROTECTED] Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. And make sure your installed mysql headers match the installed libraries. Which seems to be reason for this compile failure anyway. ------------------------------------------------------------------------ [2005-09-13 03:43:19] rporticio at yahoo dot com Description: ------------ php 5.0.4 doesn't compile after configuring please note that there is no 5.0.4 in your PHP version above. Reproduce code: --------------- ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr make (some codes here...) ext/mysql/php_mysql.lo(.text+0x2076): In function `zif_mysql_create_db': /home/php/php-5.0.4/ext/mysql/php_mysql.c:1166: undefined reference to `mysql_create_db' ext/mysql/php_mysql.lo(.text+0x2279): In function `zif_mysql_drop_db': /home/php/php-5.0.4/ext/mysql/php_mysql.c:1208: undefined reference to `mysql_drop_db' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 Expected result: ---------------- there is no error and it is ready for the next command make install. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34487&edit=1