From:             ruempler at topconcepts dot de
Operating system: Fedora Core 2
PHP version:      5.0.3
PHP Bug Type:     *Configuration Issues
Bug description:  configure doesn't find MySQL libs

Description:
------------
PHP 5.0.3 does not find the MySQL libraries in configure. PHP 5.0.1 on the
same machine compiled without any problems. Adding zlib-dir as mentioned
below does *not* help (same config.log errors)-

Reproduce code:
---------------
#! /bin/sh
#
# Created by configure

'./configure' \
'--prefix=/usr' \
'--with-mysql=/usr' \
'--with-apxs2=/usr/sbin/apxs' \
'--enable-soap' \
"$@"

Actual result:
--------------
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_errno in -lmysqlclient... no
configure: error: Try adding --with-zlib-dir=<DIR>. Please check
config.log for more information.


config.log:

configure:53830: checking for MySQL support
configure:53876: checking for specified location of the MySQL UNIX socket
configure:53933: checking for MySQL UNIX socket location
configure:54089: checking for mysql_close in -lmysqlclient
configure:54108: gcc -o conftest -g -O2   conftest.c -lmysqlclient 
-lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 54097 "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:54470: checking for mysql_errno in -lmysqlclient
configure:54489: gcc -o conftest -g -O2   conftest.c -lmysqlclient  -lz
-lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 54478 "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_errno();

int main() {
mysql_errno()
; return 0; }



-- 
Edit bug report at http://bugs.php.net/?id=31388&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31388&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31388&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31388&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31388&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31388&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31388&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31388&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31388&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31388&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31388&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31388&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31388&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31388&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31388&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31388&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31388&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31388&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31388&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31388&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31388&r=mysqlcfg

Reply via email to