PDA

View Full Version : custombuild installation keep getting error on fresh installed 64bit CentOS 4.5



jackc
08-29-2007, 04:11 PM
When I use the new custombuild script, keep getting error when building php 4.4.7 as CLI.



/usr/bin/ld: /usr/local/lib/libltdl.a(ltdl.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libltdl.a(ltdl.o): could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1


the options.conf I use


mysql=5.0
default_php=5
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=2.2
mail-header-patch=yes
dovecot=no
clean=yes


Don't know what the problem is.
But with the old custombuild 1.0.6, there is no problem at all.

smtalk
08-30-2007, 05:02 AM
Try to compile libltdl "--with-pic" :) (./configure --enable-ltdl-install --with-pic) Or just try to set "CFLAGS=-fPIC". If that doesn't help - try to edit PHP Makefile and add -fPIC to the EXTRAFLAGS.

Scott DeLeury
09-28-2007, 02:42 PM
Running into the same issue on CentOS 5 x86_64 as well, tried your suggestions but they don't seem to want to work.

Webcart
11-21-2007, 07:34 PM
Same problem here with Centos 5.0 64 bit.

I've posted details here:
http://www.directadmin.com/forum/showpost.php?p=117851&postcount=656

smtalk
11-22-2007, 12:28 AM
Try this:


mv /usr/lib/libdts.a /usr/lib/libdts-old.a && mv /usr/lib/libdts_pic.a /usr/lib/libdts.a

Or:
http://www.howtoforge.com/forums/showthread.php?t=127

Webcart
11-22-2007, 09:38 AM
Thank you for your reply.
Neither /usr/lib/libdts.a nor /usr/lib/libdts_pic.a could be found:


# ls -la /usr/lib/libdts.a /usr/lib/libdts_pic.a
ls: /usr/lib/libdts.a: No such file or directory
ls: /usr/lib/libdts_pic.a: No such file or directory

I've also found a thread advising to install ltdl packages and tried that too with the same result


yum install libtool
yum install libtool-ltdl
yum install libtool-ltdl-devel

smtalk
11-22-2007, 09:41 AM
Webcart, may I take a look at your server?

jackc
11-22-2007, 09:49 AM
it would be nice to have this fixed. thanks.

Webcart
11-22-2007, 02:41 PM
it would be nice to have this fixed. thanks.

As a temporary measure, try the following:
1. Install libtool


yum install libtool
yum install libtool-ltdl

2. Create the following symbolic link to force using stock library:


ln -sf /usr/lib64/libltdl.a /usr/local/lib/libltdl.a


NOTE: the credit for this fix goes to smtalk.

sloop
04-22-2008, 05:30 PM
As a temporary measure, try the following:
1. Install libtool


NOTE: the credit for this fix goes to smtalk.

you also need libtool-ltdl-devel