php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4277 libphp4 built with --with-mysql=xyz creates unusable libphp4.so
Submitted: 2000-04-29 04:31 UTC Modified: 2000-06-09 16:05 UTC
From: little at cs dot ucsd dot edu Assigned:
Status: Closed Package: Dynamic loading
PHP Version: 4.0 Release Candidate 1 OS: solaris 2.6
Private report: No CVE-ID: None
 [2000-04-29 04:31 UTC] little at cs dot ucsd dot edu
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-09 16:05 UTC] zeev at cvs dot php dot net
Getting ld to search for the MySQL libraries is a part of the MySQL installation;  PHP relies on MySQL being properly configured in case --with-mysql=xyz is supplied.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 18:02:40 2024 UTC