From: openmacnews at gmail dot com Operating system: osx PHP version: 5.1.4 PHP Bug Type: MySQL related Bug description: php build ignoring config, links against BOTH reentrant & 'norm' mysql libs ...
Description: ------------ hi all, i'm building php-5.1.4 from source on osx 10.4.6 i've built mysql 5.0.21 threadsafe -- hence, the link target needs to be the _reentrant_ libmysqlclient_r. if i configure php as: setenv CPPFLAGS "-I/usr/local/mysql/include/mysql" setenv LDFLAGS "-bind_at_load -L/usr/local/mysql/lib/mysql -lmysqlclient_r" ./configure \ ... --enable-pdo \ --with-mysql=/usr/local/mysql \ --with-mysql-sock=/var/Process \ --with-pdo-mysql=/usr/local/mysql \ --with-apxs2=/usr/local/apache2/sbin/apxs \ ... the build completes w/o error, BUT, resultant libs & bins are built linked against BOTH lmysqlclient_r AND lmysqlclient. iiuc, this should NOT be the case. to get around this, *prior* to config: perl -pi -e 's/mysqlclient\,/mysqlclient_r\,/g' ext/pdo_mysql/config.m4 perl -pi -e 's/mysqlclient\./mysqlclient_r\./g' ext/pdo_mysql/config.m4 and after config, prior to *make*: perl -pi -e 's/mysqlclient /mysqlclient_r /g' Makefile perl -pi -e 's/mysqlclient\n/mysqlclient_r\n/g' Makefile again, no errors, and the libs/bins are linked -- as expected -- against *only* the reentrant lib. cheers, richard -- Edit bug report at http://bugs.php.net/?id=37630&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37630&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37630&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37630&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37630&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37630&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37630&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37630&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37630&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37630&r=support Expected behavior: http://bugs.php.net/fix.php?id=37630&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37630&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37630&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37630&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37630&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37630&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37630&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37630&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37630&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37630&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37630&r=mysqlcfg