Can't build php on Centos 4.2 x86_64

illogix

Verified User
Joined
Dec 9, 2004
Messages
10
Location
Montreal
This is what I get:

/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.4/../../../libltdl.so when searching for -lltdl
/usr/bin/ld: skipping incompatible /usr/lib/libltdl.so when searching for -lltdl
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1

Any ideas ?
 
Hello,

It appears as though it doesn't like any of your libltdl files for some reason. I really couldn't say why exactly. You can test a different "make" program (if you have it).. try:

cd /usr/local/directadmin/scripts/php-4.4.2
gmake
gmake install

(instead the ususal "make" "make install")

John
 
I get the exact same error with gmake.

For those who use CentOS 4.2 x86_64, are you able to compile php ?
 
Hello,

I just checked our 64-bit 4.1 box,
Code:
[root@server 3.4.4]# pwd
/usr/lib/gcc/x86_64-redhat-linux/3.4.4
[root@server 3.4.4]# ll ../../../libltdl.so*
lrwxrwxrwx  1 root root 12 Oct 25 22:54 ../../../libltdl.so -> libltdl.so.3
[root@server 3.4.4]#
The /usr/lib/libltdl.so link we have points to /usr/lib/libltdl.so.3 which *does not* exist... I found *no* libltdl.so file on our build system anywhere.. it compiled fine. (strange? normal? who knows)

In al other cases I've seen the -lltdl error is resolved by a "make clean && make install".

John
 
illogix said:
I get the exact same error with gmake.

For those who use CentOS 4.2 x86_64, are you able to compile php ?

I am having CentOS 4.2 64 bits here and did not got any problems with PHP.

What do you see if you perform this command?

Code:
]# ll /usr/lib64/liblt*
-rw-r--r--  1 root root 44404 Apr  9  2005 /usr/lib64/libltdl.a
-rwxr-xr-x  1 root root   791 Apr  9  2005 /usr/lib64/libltdl.la
lrwxrwxrwx  1 root root    16 Feb 12 14:00 /usr/lib64/libltdl.so -> libltdl.so.3.1.0
lrwxrwxrwx  1 root root    16 Feb 12 13:57 /usr/lib64/libltdl.so.3 -> libltdl.so.3.1.0
-rwxr-xr-x  1 root root 29208 Apr  9  2005 /usr/lib64/libltdl.so.3.1.0
 
Code:
[root@griffon ~]# ll /usr/lib64/liblt*
lrwxrwxrwx  1 root root    16 Dec 29 16:36 /usr/lib64/libltdl.so.3 -> libltdl.so.3.1.0
-rwxr-xr-x  1 root root 31440 Dec 29 11:12 /usr/lib64/libltdl.so.3.1.0
[root@griffon ~]#

Looks like I'm missing the .a and .la
 
Thanks for your help.

I added this link:

Code:
/usr/lib64/libltdl.so -> libltdl.so.3.1.0

and now it works. I'm wondering if this is a CentOS bug. Was this link setup by the libtool-libs RPM or did you create it yourself ?
 
illogix said:
Thanks for your help.

I added this link:

Code:
/usr/lib64/libltdl.so -> libltdl.so.3.1.0

and now it works. I'm wondering if this is a CentOS bug. Was this link setup by the libtool-libs RPM or did you create it yourself ?

I did not create these links myself, so I guess they were created by one of the RPM packages, or during the initial installation.
My installation is not very old and is done from scratch, so not from a previous release of CentOS.
 
I have CentOS 4.4.4 and DA 1.28. The same problem while recompiling PHP at "make". To fight it, I've installed libtool & made the good symlink to /usr/local/lib/libltdl.so, and that's all.
 
FYI, I don't recommend using "./build php y" .. because you'll end up going into a loop ;)

If you want a more intelligent script, use "./build php d" for default, or "./build php n" for a quicker compile without anything else.

John
 
Back
Top