From:             
Operating system: CentOS
PHP version:      5.3.8
Package:          MySQL related
Bug Type:         Bug
Bug description:configure error, cannot find -lmysqlclient, with 
MySQL-shared-compat 5.5

Description:
------------
'./configure' \
'--prefix=/usr/local/php538' \
'--with-config-file-path=/etc' \
'--with-apxs2=/usr/local/apache/bin/apxs' \
'--with-libdir=lib64' \
'--disable-all' \
'--enable-bcmath' \
'--enable-ctype' \
'--enable-filter' \
'--with-iconv' \
'--enable-intl' \
'--enable-mbstring' \
'--enable-mbregex' \
'--with-mysql=/usr' \
'--with-mysqli=/usr/bin/mysql_config' \
'--with-pcre-regex' \
'--with-regex' \
'--enable-session' \
'--with-zlib' \
"$@"


rpm -qa |grep MySQL
MySQL-client-community-5.1.58-1.rhel5
MySQL-server-community-5.1.58-1.rhel5
MySQL-shared-compat-5.5.15-1.rhel5
MySQL-devel-community-5.1.58-1.rhel5



ls /usr/lib64/*mysql*
/usr/lib64/libmysqlclient_r.so.12      /usr/lib64/libmysqlclient_r.so.16   
  /usr/lib64/libmysqlclient.so.15
/usr/lib64/libmysqlclient_r.so.12.0.0 
/usr/lib64/libmysqlclient_r.so.16.0.0  /usr/lib64/libmysqlclient.so.15.0.0
/usr/lib64/libmysqlclient_r.so.14      /usr/lib64/libmysqlclient.so.12     
  /usr/lib64/libmysqlclient.so.16
/usr/lib64/libmysqlclient_r.so.14.0.0  /usr/lib64/libmysqlclient.so.12.0.0 
  /usr/lib64/libmysqlclient.so.16.0.0
/usr/lib64/libmysqlclient_r.so.15      /usr/lib64/libmysqlclient.so.14
/usr/lib64/libmysqlclient_r.so.15.0.0  /usr/lib64/libmysqlclient.so.14.0.0

/usr/lib64/mysql:
libdbug.a  libmygcc.a   libmyisammrg.a    libmysqlclient.la  
libmysqlclient_r.la  libmysys.a  libz.a   mysqld-debug.sym  plugin
libheap.a  libmyisam.a  libmysqlclient.a  libmysqlclient_r.a 
libmystrings.a       libvio.a    libz.la  mysqld.sym



checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... 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.


tail ... config.log
configure:59800: checking for MySQL support
configure:59844: checking for specified location of the MySQL UNIX socket
configure:60042: checking for mysql_close in -lmysqlclient
configure:60061: gcc -o conftest -I/usr/include -g -O2 -fvisibility=hidden 
-L/usr/lib64  conftest.c -lmysqlclient  -lz -lrt -lm -ldl -lnsl  -licui18n
-licuuc -licudata -lm -licuio 1>&5
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 60050 "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:60284: checking for mysql_error in -lmysqlclient
configure:60303: gcc -o conftest -I/usr/include -g -O2 -fvisibility=hidden 
-L/usr/lib64  -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient  -lz -lz -lrt
-lm -ldl -lnsl  -licui18n -licuuc -licudata -lm -licuio 1>&5
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 60292 "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:
---------------
see Description

Expected result:
----------------
configure without error

Actual result:
--------------
configure exit with error

-- 
Edit bug report at https://bugs.php.net/bug.php?id=55521&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=55521&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=55521&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=55521&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=55521&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=55521&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=55521&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=55521&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=55521&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=55521&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=55521&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=55521&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=55521&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=55521&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=55521&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=55521&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=55521&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=55521&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=55521&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=55521&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=55521&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=55521&r=mysqlcfg

Reply via email to