From:
Operating system: Linux 2.6.32-5-686 i686 GNU/Linu
PHP version: 5.3.6
Package: MySQL related
Bug Type: Bug
Bug description:MySQL package failed configure PHP 5.3.6
Description:
------------
linux:~# mysql --version
mysql Ver 14.14 Distrib 5.1.49, for debian-linux-gnu (i486) using readline
6.1
linux:~# ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib
--enable-wddx --enable-sockets --with-openssl --with-mysql=/usr/bin/
--with-mcrypt --enable-mbstring --enable-bcmath --enable-calendar
--with-curl --enable-exif --enable-ftp --with-gd --with-gettext
...
configure:59659: checking for MySQL support
configure:59703: checking for specified location of the MySQL UNIX socket
configure:59901: checking for mysql_close in -lmysqlclient
configure:59920: gcc -o conftest -I/usr/include -g -O2 -fvisibility=hidden
-L/usr/lib conftest.c -lmysqlclient -lmcrypt -lltdl -lpng -lz -lcurl -lz
-lrt -lm -ldl -lnsl -lxml2 -lssl -lcrypto -lcurl -lxml2 -lssl -lcrypto
1>&5
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
configure: failed program was:
#line 59909 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_close();
int main() {
mysql_close()
; return 0; }
configure:60143: checking for mysql_error in -lmysqlclient
configure:60162: gcc -o conftest -I/usr/include -g -O2 -fvisibility=hidden
-L/usr/lib -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient -lz -lmcrypt
-lltdl -lpng -lz -lcurl -lz -lrt -lm -ldl -lnsl -lxml2 -lssl -lcrypto
-lcurl -lxml2 -lssl -lcrypto 1>&5
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
configure: failed program was:
#line 60151 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_error();
int main() {
mysql_error()
; return 0; }
Test script:
---------------
linux:~# ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib
--enable-wddx --enable-sockets --with-openssl --with-mysql=/usr/bin/
--with-mcrypt --enable-mbstring --enable-bcmath --enable-calendar
--with-curl --enable-exif --enable-ftp --with-gd --with-gettext
--
Edit bug report at http://bugs.php.net/bug.php?id=54731&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=54731&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=54731&r=trysnapshot53
Try a snapshot (trunk):
http://bugs.php.net/fix.php?id=54731&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=54731&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=54731&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=54731&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=54731&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=54731&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=54731&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=54731&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=54731&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=54731&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=54731&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=54731&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54731&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=54731&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=54731&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=54731&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=54731&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=54731&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=54731&r=mysqlcfg