/usr/local/lib/libltdl.a(ltdl.o): could not read symbols: Bad value

问题

在编译libmcrypt软件包时出现问题

1
2
3
4
/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

解决方法

1
2
yum install libtool-ltdl-devel
//PHP_LDFLAGS=-L/usr/lib64 ./build php n
坚持原创分享,您的支持将鼓励我继续创作