php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22102 Link fails with modified mysql path
Submitted: 2003-02-06 21:15 UTC Modified: 2003-02-20 08:09 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:2 (66.7%)
From: allen012 at attbi dot com Assigned:
Status: No Feedback Package: MySQL related
PHP Version: 4.3.0 OS: Solaris 8
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: allen012 at attbi dot com
New email:
PHP Version: OS:

 

 [2003-02-06 21:15 UTC] allen012 at attbi dot com
Environment:  Gnu installation (GCC, MySQL, etc) from Solaris 8 Companion CD, Apache 2.0.44, PHP 4.3.0, MySQL 3.23
Apache compiled and runs fine in the environment.  

PHP:  ./configure --with-mysql=/opt/sfw/mysql --with-apxs2=/usr/local/apache2/bin/apxs

PHP configure runs fine, and the build works up to link.  It then fails with:
Cannot find /opt/sfw/mysql/lib/mysql/.lib/libmysqlclient.so

Where is the ".lib" coming from?  
The link also indicates that it has failed to create .lib/libphp4.so
Again - what gives with the ".lib"?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-07 13:20 UTC] allen012 at attbi dot com
Exact output is:
ld: fatal: file /opt/sfw/mysql/lib/mysql/.libs/libmysqlclient.so: open failed: No such file or directory
ld: fatal: File processing errors. No output written to .libs/libphp4.so

Again, why is it lokking for the MySQL client library in ".libs" ?
 [2003-02-07 23:29 UTC] sniper@php.net
Looks like broken mysql installation. How was it installed?
Compiled from sources or from Mysql AB provided binaries?

In /opt/sfw/mysql/lib/mysql/ check if there is libmysqlclient.la file and paste it's content here.

 [2003-02-20 08:09 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2004-08-06 18:15 UTC] ptribble at hgmp dot mrc dot ac dot uk
With PHP 4.3.8, just as the original bug says, you get
this error on Solaris.

./configure --with-mysql=/opt/sfw/mysql

and then eventually:

ld: fatal: file /opt/sfw/mysql/lib/mysql/.libs/libmysqlclient.so: open failed: No such file or directory

Which is quite correct. There is no such file. There is
no such directory. The library is in:

/opt/sfw/mysql/lib/mysql/libmysqlclient.so

which is exactly where it's supposed to be. It's libtool
(presumably) that has modified the location and added 
the .libs element, and presumably it's picked up the line

installed=no

from libmysqlclient.la. Changing this line to yes
allows the build to proceed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 11:01:30 2024 UTC