php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10222 php linking against wrong mysqlclient lib and causing crash on startup
Submitted: 2001-04-07 09:51 UTC Modified: 2001-04-07 09:56 UTC
From: vk at mac dot dhs dot org Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.4pl1 OS: linux rh6.2
Private report: No CVE-ID: None
 [2001-04-07 09:51 UTC] vk at mac dot dhs dot org
i have several mysql daemons (different versions) running on my system.
the problem is that php is always compiled with 
-lmysqlclient and thus links against the default library (in my case /usr/lib/libmysqlclient*) even if you specify a different path to mysql during ./configure
This was causing crash (segfault) on startup with all versions of apache after 1.3.14 and all versions of php 4+
I just figured out that this library missmatch was causing this problem, the crash has already been explained in bug #7976 once upon a time.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-07 09:56 UTC] rasmus@php.net
A -L/your/path is added, but yes, then -lmysqlclient comesafter that and if a mysqlclient library appears on your default link path it will be used.  That's just the way it works and the way just about anything you compile on a UNIX system will work.  Don't put libraries in your default path if you don't want them used.  I don't see this being "fixed"
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 06:01:29 2024 UTC