Sunday, 2 June 2013

Apache compile fails due to OpenSSL

I love (and sometimes hate) source compiling packages, it's like driving a manual car versus cruising along in an automatic, the control is truly awesome! While busy compiling Apache I got the following nasty error:

libssl.a(s2_srvr.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC

It seems to happen when your running a 64 bit Linux distro, to solve this horrid message you need to unfortunately recompile openssl, in my case openssl-1.0.1e using the following command (change your prefix if need be):

./config --prefix=/usr/local/openssl -fPIC no-gost no-shared no-zlib

After that the Apache compile works without any issues, hope it helps someone else!

No comments:

Post a Comment