MySQL extensions should link against thread safe client libs if built with ZTS
| Bug #37630 | MySQL extensions should link against thread safe client libs if built with ZTS | ||||
|---|---|---|---|---|---|
| Submitted: | 2006-05-29 15:54 UTC | Modified: | 2006-06-01 20:05 UTC | ||
| From: | openmacnews at gmail dot com | Assigned: | |||
| Status: | Closed | Package: | MySQL related | ||
| PHP Version: | 5.1.4 | OS: | osx | ||
| Private report: | No | CVE-ID: | None | ||
[2006-05-29 15:54 UTC] openmacnews at gmail dot com
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
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2006-05-30 13:14 UTC] mike@php.net
[2006-05-30 15:44 UTC] openmacnews at gmail dot com
[2006-05-30 16:22 UTC] mike@php.net
[2006-05-30 16:34 UTC] openmacnews at gmail dot com
[2006-05-31 17:58 UTC] mike@php.net
[2006-05-31 19:41 UTC] openmacnews at gmail dot com
[2006-06-01 08:46 UTC] tony2001@php.net
[2006-06-01 13:22 UTC] mike@php.net
[2006-06-01 19:15 UTC] mike@php.net
[2006-06-01 19:27 UTC] openmacnews at gmail dot com
[2006-06-01 19:48 UTC] openmacnews at gmail dot com
[2006-06-01 20:00 UTC] mike@php.net
[2006-06-01 20:05 UTC] openmacnews at gmail dot com