php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54731 MySQL package failed configure PHP 5.3.6
Submitted: 2011-05-13 21:44 UTC Modified: 2011-05-13 21:51 UTC
From: shrimpwagon at yahoo dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 5.3.6 OS: Linux 2.6.32-5-686 i686 GNU/Linu
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: shrimpwagon at yahoo dot com
New email:
PHP Version: OS:

 

 [2011-05-13 21:44 UTC] shrimpwagon at yahoo dot com
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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-13 21:51 UTC] shrimpwagon at yahoo dot com
-Status: Open +Status: Closed
 [2011-05-13 21:51 UTC] shrimpwagon at yahoo dot com
All I had to do was install package libltdl-dev
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 19:01:31 2024 UTC