ID: 47972 Comment by: amiroot at yahoo dot com Reported By: diwakar211 at gmail dot com Status: No Feedback Bug Type: MySQL related Operating System: AIX-5.3 PHP Version: 5.2.9 New Comment:
I'm using RedHat EL5 64bit and I encounter the same problem. I installed both 32 and 64 version of libmysqlclient.so which located in /usr/lib/mysql and /usr/lib64/mysql respectively. Sounds like the configure script seek for only /usr/lib/mysql. Here is the error in config.log configure:60459: gcc -o conftest -I/usr/include -g -O2 -pthread -D_REENTRANT -Wl,-rpath,/usr/lib/mysql -L/usr/lib/mysql -L/usr/lib -Wl,-rpath,/usr/kerberos/lib64 -L/usr/kerberos/lib64 -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient_r -lz -lmcrypt -lltdl -lcrypt -lpam -lfreetype -lpng -lz -ljpeg -lgdbm -lcurl -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -lidn -lssl -lcrypto -lz -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -ldl -lz 1>&5 /usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient_r.so when searching for -lmysqlclient_r /usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient_r.a when searching for -lmysqlclient_r /usr/bin/ld: cannot find -lmysqlclient_r collect2: ld returned 1 exit status configure: failed program was: #line 60448 "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; } Previous Comments: ------------------------------------------------------------------------ [2009-04-24 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2009-04-16 10:42:42] j...@php.net How about doing what configure tells you: Check config.log ? ------------------------------------------------------------------------ [2009-04-16 04:39:29] diwakar211 at gmail dot com Thanks for the reply i have used the latest version that you provided http://snaps.php.net/php5.2-latest.tar.gz but still i am getting same issue, please help me out ------------------------------------------------------------------------ [2009-04-15 14:21:30] il...@php.net Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2009-04-15 12:41:44] diwakar211 at gmail dot com Description: ------------ while doing configure in php-5.2.4 # ./configure --prefix=/opt/freeware --with- apxs2=/opt/freeware/apache/bin/apxs --disable-cgi --enable-cli -- with-config-file-path=/opt/freeware/apache/conf --with- mysql=/opt/freeware/mysql --with-zlib-dir=/opt/freeware It gives configure: error: mysql configure failed. Please check config.log for more information. I refered some posts in this site, the solusion they given is to install 32 bit version of mysql I have installed mysql-5.0.45-1 32 bit, but still i am getting the error. Reproduce code: --------------- configure Expected result: ---------------- nothing Actual result: -------------- # ./configure --prefix=/opt/freeware --with- apxs2=/opt/freeware/apache/bin/apxs --disable-cgi --enable-cli -- with-config-file-path=/opt/freeware/apache/conf --with- mysql=/opt/freeware/mysql --with-zlib-dir=/opt/freeware " checking for MING support... no checking for mSQL support... no checking for MSSQL support via FreeTDS... no checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... no checking for MySQL UNIX socket location... no checking for mysql_close in -lmysqlclient... no checking for mysql_error in -lmysqlclient... no configure: error: mysql configure failed. Please check config.log for more information. " -- ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47972&edit=1