[Solved] Build Matching PHP Problem

dlewis23

Active Member
#1
Hello,

I installed Litespeed on my cPanel server and I went to build a matching PHP build and it stopped with the following error. Does anyone have any idea what I need to do to fix this? I tried looking on google but couldn't come up with a answer.

Thanks

Code:
libtool: link: `/usr/lib64/libltdl.la' is not a valid libtool archive
make: *** [sapi/litespeed/php] Error 1
**ERROR** Could not compile PHP
 

mistwang

LiteSpeed Staff
#9
that's a strange problem. The content of libltdl.la on our test server is
# more /usr/lib64/libltdl.la
# libltdl.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='libltdl.so.3'

# Names of this library.
library_names='libltdl.so.3.1.4 libltdl.so.3 libltdl.so'

# The name of the static archive.
old_library='libltdl.a'

# Libraries that this one depends upon.
dependency_libs=' -ldl'

# Version information for libltdl.
current=4
age=1
revision=4

# Is this an already installed library?
installed=yes

# Should we warn about portability when linking against -modules?
shouldnotlink=no

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/usr/lib64'
# rpm -qa | grep ltdl
libtool-ltdl-devel-1.5.22-7.el5_4
libtool-ltdl-1.5.22-7.el5_4
 

dlewis23

Active Member
#10
please pm your server temporary root access if you like us to further investigate it.
PM Sent. Thank You


that's a strange problem. The content of libltdl.la on our test server is

# rpm -qa | grep ltdl
libtool-ltdl-devel-1.5.22-7.el5_4
libtool-ltdl-1.5.22-7.el5_4
Yes very strange.

If I run the same command, it shows 4 of those libtools on my server.

rpm -qa | grep ltdl
libtool-ltdl-1.5.22-7.el5_4
libtool-ltdl-devel-1.5.22-7.el5_4
libtool-ltdl-devel-1.5.22-7.el5_4
libtool-ltdl-1.5.22-7.el5_4
 

webizen

Well-Known Member
#11
PM Sent. Thank You




Yes very strange.

If I run the same command, it shows 4 of those libtools on my server.

rpm -qa | grep ltdl
libtool-ltdl-1.5.22-7.el5_4
libtool-ltdl-devel-1.5.22-7.el5_4
libtool-ltdl-devel-1.5.22-7.el5_4
libtool-ltdl-1.5.22-7.el5_4
Server access received. Will let you know what we find out.

Among the 4 rpms installed, two are for i386, the other two are for x86_64. Ours are for x86_64 only.
 

webizen

Well-Known Member
#13
your /usr/lib64/libltdl.la is a binary file which is wrong.

root@srv1 [~]# file /usr/lib64/libltdl.la
/usr/lib64/libltdl.la: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped

root@srv1 [~]# rpm -ql libtool-ltdl-devel-1.5.22-7.el5_4.x86_64
/usr/include/ltdl.h
/usr/lib64/libltdl.a
/usr/lib64/libltdl.la
/usr/lib64/libltdl.so
root@srv1 [~]#

root@srv1 [~]# ls -l /usr/lib64/libltdl.*
-rwxr-xr-x 1 root root 231552 Oct 29 04:57 /usr/lib64/libltdl.a*
-rwxr-xr-x 1 root root *16200 Jan 20 *2010 /usr/lib64/libltdl.la*
-rwsr-xr-x 1 root root *74112 Mar 11 *2009 /usr/lib64/libltdl.so*
lrwxrwxrwx 1 root root * * 16 Dec 13 03:52 /usr/lib64/libltdl.so.3 -> libltdl.so.3.1.4*
-rwxr-xr-x 1 root root *29952 Dec 15 *2009 /usr/lib64/libltdl.so.3.1.4*
It is supposed to be a text file as shown earlier.


that's a strange problem. The content of libltdl.la on our test server is
# more /usr/lib64/libltdl.la
# libltdl.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='libltdl.so.3'

# Names of this library.
library_names='libltdl.so.3.1.4 libltdl.so.3 libltdl.so'

# The name of the static archive.
old_library='libltdl.a'

# Libraries that this one depends upon.
dependency_libs=' -ldl'

# Version information for libltdl.
current=4
age=1
revision=4
...
...
Please remove the libtool-ltdl-devel-1.5.22-7.el5_4.x86_64 rpm, remove the file if needed and re-install the rpm.
Code:
rpm -e libtool-ltdl-devel-1.5.22-7.el5_4.x86_64
if [ -e /usr/lib64/libltdl.la ]; then rm /usr/lib64/libltdl.la; fi;
yum install libtool-ltdl-devel-1.5.22-7.el5_4.x86_64
ls -l /usr/lib64/libltdl.*
 

webizen

Well-Known Member
#14
The rpm is re-installed. Matching PHP is built successfully.

root@srv1 [~]# ls -l /usr/lib64/libltdl.*
-rw-r--r-- 1 root root 39956 Dec 15 2009 /usr/lib64/libltdl.a
-rwxr-xr-x 1 root root 793 Dec 15 2009 /usr/lib64/libltdl.la*
lrwxrwxrwx 1 root root 16 Mar 9 15:04 /usr/lib64/libltdl.so -> libltdl.so.3.1.4*
lrwxrwxrwx 1 root root 16 Dec 13 03:52 /usr/lib64/libltdl.so.3 -> libltdl.so.3.1.4*
-rwxr-xr-x 1 root root 29952 Dec 15 2009 /usr/lib64/libltdl.so.3.1.4*

root@srv1 [~]# /usr/local/lsws/fcgi-bin/lsphp5 -v
PHP 5.3.3 (litespeed) (built: Mar 9 2011 15:09:57)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator

root@srv1 [~]# /usr/local/bin/php -v
PHP 5.3.3 (cli) (built: Mar 9 2011 15:10:03)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator
root@srv1 [~]#
 
#15
Thank webizen for working on this. I have litespeed installed with a matching PHP build and its working great so far. Much faster then Apache. :D
 
Top