PHP 4.0 Bug #4277: libphp4 built with --with-mysql=xyz creates unusable libphp4.so
| From: | little at cs dot ucsd dot edu | Date: | Sat, 29 Apr 2000 02:31:10 +0000 |
| Subject: | PHP 4.0 Bug #4277: libphp4 built with --with-mysql=xyz creates unusable libphp4.so | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18292@lists.php.net to get a copy of this message | ||
From: little@cs.ucsd.edu
Operating system: solaris 2.6
PHP version: 4.0 Release Candidate 1
PHP Bug Type: Dynamic loading related
Bug description: libphp4 built with --with-mysql=xyz creates unusable libphp4.so
It's actually not 4.0 RC1, but snapshot 200004141345.
apache version 1.3.12.
Compiled with mod-so, works fine.
build and install of libphp4 without the --with-mysql works fine
config *with* --with-msyql=/web/mysql creates makefiles that seem to know
where things are. For instance, my libphp4.la libtool line (from the output
of a "make" run) contains" -L/web/mysql/lib/mysql" and " -R
/web/mysql/lib/mysql"
libmysqlclient.so does in fact exist in /web/mysql/lib/mysql
make and make install appear to run without complaint
Upon startup, or when doing a ldd -s, the mysql lib dir is not searched. This
results in apache being unable to start.
Kludge temp workaround: set the env var LD_RUN_PATH in the shell which is doing
the compiling to /web/mysql/lib/mysql. Then run make and make install. This builds
a library for which ldd (or a runtime invocation via apache) does in fact look in the
mysql lib dir and finds my libmysqlclient.so