custombuild installation keep getting error on fresh installed 64bit CentOS 4.5

jackc

Verified User
Joined
Jan 19, 2007
Messages
346
When I use the new custombuild script, keep getting error when building php 4.4.7 as CLI.

Code:
/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
Code:
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.
 
Last edited:
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.
 
Last edited:
Running into the same issue on CentOS 5 x86_64 as well, tried your suggestions but they don't seem to want to work.
 
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
 
Back
Top