php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22460 libtool failed
Submitted: 2003-02-27 09:57 UTC Modified: 2003-03-10 10:23 UTC
From: s_arnaud at yahoo dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.1 OS: Solaris 8
Private report: No CVE-ID: None
 [2003-02-27 09:57 UTC] s_arnaud at yahoo dot com
Here is the configure line I use:
./configure --prefix=/_TOOLS_/dist/apache-php-4.3.1/sparc64-sun-solaris2.8 --with-mysql=/_TOOLS_/dist/mysql-3.23.55/sparc64-sun-solaris2.8 --with-apache=../apache_1.3.27 --with-ldap=/_TOOLS_/dist/openldap-2.0.18/sparc64-sun-solaris2.8 --with-mcrypt=/_TOOLS_/dist/libmcrypt-2.5.2/sparc32-sun-solaris2.7 --with-gd --with-jpeg-dir=/_TOOLS_/dist/jpeg6b/sparc64-sun-solaris2.8 --with-png-dir=/_TOOLS_/dist/libpng-1.2.2/sparc64-sun-solaris2.8 --with-zlib-dir=/_TOOLS_/dist/zlib-1.1.4/sparc64-sun-solaris2.8 --enable-track-vars --enable-bcmath

All is fine
Then when running "make" I get:

libtool: link: warning: library `/_TOOLS_/dist/libmcrypt-2.5.2/sparc32-sun-solaris2.7/lib/libmcrypt.la' was moved.
grep: can't open /_TOOLS_/dist/libmcrypt-2.5.2/lib/libltdl.la
Can't open /_TOOLS_/dist/libmcrypt-2.5.2/lib/libltdl.la
libtool: link: `/_TOOLS_/dist/libmcrypt-2.5.2/lib/libltdl.la' is not a valid libtool archive
make: *** [libphp4.la] Error 1

After doing some modifications in the "libtool" script, it seems the problem is pecific to the libmcrypt library path, because when I put some echo commands in the script (arroud line 1896:

# Find the relevant object directory and library name.
echo "Testing libdir/linklib: $libdir/$linklib\n and abs_ladir/linklib: $abs_ladir/$linklib"

I get:
Testing libdir/linklib: /_TOOLS_/dist/mysql-3.23.55/sparc64-sun-solaris2.8/lib/mysql/libmysqlclient.so
 and abs_ladir/linklib: /_TOOLS_/dist/mysql-3.23.55/sparc64-sun-solaris2.8/lib/mysql/libmysqlclient.so
Testing libdir/linklib: /_TOOLS_/dist/libmcrypt-2.5.2/lib/libmcrypt.so
 and abs_ladir/linklib: /_TOOLS_/dist/libmcrypt-2.5.2/sparc32-sun-solaris2.7/lib/libmcrypt.so
libtool: link: warning: library `/_TOOLS_/dist/libmcrypt-2.5.2/sparc32-sun-solaris2.7/lib/libmcrypt.la' was moved.
grep: can't open /_TOOLS_/dist/libmcrypt-2.5.2/lib/libltdl.la
Can't open /_TOOLS_/dist/libmcrypt-2.5.2/lib/libltdl.la
libtool: link: `/_TOOLS_/dist/libmcrypt-2.5.2/lib/libltdl.la' is not a valid libtool archive
make: *** [libphp4.la] Error 1

So for mysql, it's fine, but not for libmcrypt, despite the fact I put in my LD_LIBRARY_PATH variable the complete path to that library, ie: /_TOOLS_/dist/libmcrypt-2.5.2/sparc32-sun-solaris2.7/lib
it does not work...

Any idea ???

Many thanks,
Sylvain.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-27 12:16 UTC] s_arnaud at yahoo dot com
Thanks for the quick answer, but same message:

libtool: link: warning: library `/_TOOLS_/dist/libmcrypt-2.5.2/sparc32-sun-solaris2.7/lib/libmcrypt.la' was moved.
grep: can't open /_TOOLS_/dist/libmcrypt-2.5.2/lib/libltdl.la
/_TOOLS_/dist/gnu-sed-3.02/sparc64-sun-solaris2.8/bin/gsed: can't read /_TOOLS_/dist/libmcrypt-2.5.2/lib/libltdl.la: No such file or directory
libtool: link: `/_TOOLS_/dist/libmcrypt-2.5.2/lib/libltdl.la' is not a valid libtool archive
make: *** [libphp4.la] Error 1

Other idea ?
 [2003-02-27 12:20 UTC] sniper@php.net
This message bothers me:

"libtool: link: warning: library
`/_TOOLS_/dist/libmcrypt-2.5.2/sparc32-sun-solaris2.7/lib/libmcrypt.la'  was moved."

So did you move it?


 [2003-02-27 12:39 UTC] s_arnaud at yahoo dot com
Thanks for your quick answer, but no I didn't move it:

ls -la /_TOOLS_/dist/libmcrypt-2.5.2/sparc32-sun-solaris2.7/lib/libmcrypt.la
-rwxr-xr-x   1 root     other        789 Jul  8  2002 /_TOOLS_/dist/libmcrypt-2.5.2/sparc32-sun-solaris2.7/lib/libmcrypt.la

I will try to install without libmcrypt, and see what's happening...
 [2003-02-27 12:50 UTC] sniper@php.net
I meant that was it moved after 'make install' ?
ie. from the original location?

Does that libltdl.la exist btw?

And can you paste a little bit more of that error?
Like the whole compile line that gives it..

 [2003-03-09 19:16 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.


 [2003-03-10 03:22 UTC] s_arnaud at yahoo dot com
After relinking my Solaris sed to the GNU one, it worked.

I checked that point before, following the previous post about that, but I missed something as the sed was still the Solaris one.

Thanks for your help anyway...
 [2003-03-10 10:23 UTC] sniper@php.net
Closed then, we can't do much about that broken sed on Solaris...:(

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 20 14:00:02 2025 UTC