ID: 22102 Comment by: ptribble at hgmp dot mrc dot ac dot uk Reported By: allen012 at attbi dot com Status: No Feedback Bug Type: MySQL related Operating System: Solaris 8 PHP Version: 4.3.0 New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [2003-02-20 08:09:13] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [2003-02-07 23:29:00] [EMAIL PROTECTED] 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-07 13:20:06] 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-06 21:15:54] 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"? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22102&edit=1
