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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: little at cs dot ucsd dot edu
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 16:01:36 2025 UTC