Bug #14452 Updated: libphp4.so is not linking with *.la files
| From: | glen at designsolution dot co dot uk | Date: | Wed, 02 Jan 2002 16:30:29 +0000 |
| Subject: | Bug #14452 Updated: libphp4.so is not linking with *.la files | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-75606@lists.php.net to get a copy of this message | ||
ID: 14452
User updated by: glen@designsolution.co.uk
Reported By: glen@designsolution.co.uk
Status: Open
Bug Type: *Configuration Issues
Operating System: Linux
Old PHP Version: 4.1.0
PHP Version: 4.1.0, 4.1.1
New Comment:
I have sucessfully linked PHP4.1.1 to static libtool
libraries with the following method:
1. ./configure in the 4.0.6 source directory
2. ./configure in the 4.1.1 source directory
3. copy the libtool from 4.0.6 to the 4.1.1 direcory
4. make
5. make install
Obviously this is a little messy, but it does seem to work
sucessfully.
Regards,
Glen
Previous Comments:
------------------------------------------------------------------------
[2001-12-14 04:14:09] glen@designsolution.co.uk
MySQL was installed from RPM's a while ago:
MySQL-3.22.21-2C1
MySQL-client-3.22.21-2C1
MySQL-devel-3.22.21-2C1
The system is a Cobalt Qube 2:
Linux qube.dessol 2.0.34C51_SK #1 Mon Nov 29 07:59:59 CET
1999 mips unknown
By the way, I also tried linking with libmcal.a which is
installed in /usr/local/mcal/lib/. I used the
configuration option --with-mcal=/usr/local/mcal and
configuration/compiling/installing went fine. However,
when restarting Apache, I get:
Cannot load /usr/lib/apache/libphp4.so into server: /usr/
lib/apache/libphp4.so: undefined symbol: mcal_close
I don't know what's going on here, but it seems the *.a
files are not being linked to correctly? There was no such
problems with the 4.0.6 release which I compilied with
MySQL and MCAL support with no problems.
Thanks.
------------------------------------------------------------------------
[2001-12-13 23:55:23] sniper@php.net
How exactly did you configure/compile/install Mysql ?
And what linux distribution is this ?
--Jani
------------------------------------------------------------------------
[2001-12-13 06:18:31] glen@designsolution.co.uk
I deleted the libmysqlclient.la file from /usr/lib/mysql
and tried re-compiling, but still got the same error.
------------------------------------------------------------------------
[2001-12-12 12:45:29] sniper@php.net
I guess you're getting the libtool bug I noticed myself too.
Try deleting the .la file.
--Jani
------------------------------------------------------------------------
[2001-12-12 07:47:06] glen@designsolution.co.uk
I have configured PHP with the following options:
./configure --with-apxs=/usr/sbin/apxs --with-mysql=/usr
/usr/lib/mysql contains libmyclient.a and libmyclient.sa.
Configuration and make goes fine, though I get the
following warning:
*** Warning: This library needs some functionality provided
by /usr/lib/mysql/libmysqlclient.la.
*** I have the capability to make that library
automatically link in when
*** you link to this library. But I can only do this if
you have a
*** shared version of the library, which you do not appear
to have.
Install goes fine, but when I restart Apache ( 1.3.3 ), I
get the following error:
Cannot load /usr/lib/apache/libphp4.so into server: /usr/
lib/apache/libphp4.so: undefined symbol: mysql_free_result
PHP 4.0.6 compiled from source and ran with no such
problems.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14452&edit=1