PHP 4.0 Bug #10222 Updated: php linking against wrong mysqlclient lib and causing crash on startup
| From: | rasmus@php.net | Date: | Sat, 07 Apr 2001 13:56:12 +0000 |
| Subject: | PHP 4.0 Bug #10222 Updated: php linking against wrong mysqlclient lib and causing crash on startup | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-51103@lists.php.net to get a copy of this message | ||
ID: 10222
Updated by: rasmus
Reported By: vk@mac.dhs.org
Old-Status: Open
Status: Closed
Bug Type: Reproduceable crash
Assigned To:
Comments:
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"
Previous Comments:
---------------------------------------------------------------------------
[2001-04-07 09:51:47] vk@mac.dhs.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.
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10222&edit=2