I am compiling PHP 5.3.8 like this:
./configure --with-openssl=/usr/local/openssl
OpenSSL is compiled as follows:
./configure --prefix=/usr/local/openssl -fPIC
When I do make of PHP, I get this error, I have no idea how to fix it:
/usr/bin/ld: /usr/local/openssl/lib/libcrypto.a(x86_64cpuid.o): relocation R_X86_64_PC32 against symbol `OPENSSL_cpuid_setup' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
Can anybody help with this ? Thanks in advance ....
-fPICas recommended?? – mailq Oct 1 '11 at 20:03-fno-exceptions. I believe this is a GCC bug and that flag will work around it. – David Schwartz Oct 2 '11 at 5:49