#40540 [Csd->Bgs]: MySQL Undefined references

From: Date: Tue, 20 Feb 2007 11:02:14 +0000
Subject: #40540 [Csd->Bgs]: MySQL Undefined references
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-109155@lists.php.net to get a copy of this message
ID: 40540 Updated by: tony2001@php.net Reported By: mikko dot kayhko at gmail dot com -Status: Closed +Status: Bogus Bug Type: Compile Failure Operating System: Fedora Core 3 PHP Version: 5.2.1 Previous Comments: ------------------------------------------------------------------------ [2007-02-20 10:58:21] mikko dot kayhko at gmail dot com Seems that the problem was because of old MySQL headers. Sorry for the inconvenience! ------------------------------------------------------------------------ [2007-02-19 12:35:52] tony2001@php.net I can't see any problems building PHP with MySQL 5.0.27 from RPMs. Did you build MySQL yourself or did you use some binary packages? It looks like you're using new libraries, but headers are from MySQL v.4.x.x. Please make sure you've installed new headers and removed the old ones. ------------------------------------------------------------------------ [2007-02-19 11:02:24] mikko dot kayhko at gmail dot com MySQL server community edition 5.0.27. ------------------------------------------------------------------------ [2007-02-19 10:22:02] tony2001@php.net Can't reproduce. Which version of MySQL are you using? ------------------------------------------------------------------------ [2007-02-19 10:06:02] mikko dot kayhko at gmail dot com Description: ------------ PHP 5.2.1. ./configure parameters: --with-apxs2=/usr/local/apache/bin/apxs --with-mysql --with-config-file-path=/usr/local/apache/php --with-ldap’ While performing "make", the following error message appears and stops doing whatever it did: .. ext/mysql/.libs/php_mysql.o(.text+0x232d): In function `zif_mysql_create_db': /tmp/php-5.2.1/ext/mysql/php_mysql.c:1164: undefined reference to `mysql_create_db' ext/mysql/.libs/php_mysql.o(.text+0x2548): In function `zif_mysql_drop_db': /tmp/php-5.2.1/ext/mysql/php_mysql.c:1203: undefined reference to `mysql_drop_db' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 Expected result: ---------------- Successful build. Actual result: -------------- See description. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40540&edit=1

« previous php.bugs (#109155) next »