Installation Error
Hullo users, I am installing syslog-ng ver.3.3.5 on slackware linux 13.1 and i am getting the errors below, when i do a make usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: /usr/local/lib64/libssl.a(s23_srvr.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/local/lib64/libssl.a: could not read symbols: Bad value Could somebody helpme with a fix to the problem thanx in advnace
kibirango moses <kibsmoses@gmail.com> writes:
Hullo users,
I am installing syslog-ng ver.3.3.5 on slackware linux 13.1 and i am getting the errors below, when i do a make
usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: /usr/local/lib64/libssl.a(s23_srvr.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/local/lib64/libssl.a: could not read symbols: Bad value
Could somebody helpme with a fix to the problem
I assume you're compiling syslog-ng with the default flags, right? In that case, it will try to link a shared library to libssl, and for one reason or the other, it ends up trying to link with libssl.a, the static version of it. You can't link a static lib into a shared one, unless the static was compiled with -fPIC. The solution is either to compile a shared version of libssl too, and make sure syslog-ng uses that (it should, by default), or disable ssl support with --disable-ssl, to stop syslog-ng from linking with libssl. -- |8]
participants (2)
-
Gergely Nagy
-
kibirango moses