Unbound 1.4.21 + openssl 1.0.1f make fail

i get the following errors after make

/usr/bin/ld: /usr/local/lib/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/lib/libssl.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libunbound.la] Error 1

config exits with 0 ok

./configure --with-ldns --with-libevent --with-ssl

thanks for any help provided

Hi Shmick,

Try configure --disable-shared.

You have only libssl.a compiled (it seems), and no libssl.so, and the
build of libunbound.so fails, but you can still build the static
library fine. You could also recompile ssl to fix this bug, but you
have to enable shared library support in openssl then.

Best regards, Wouter

W.C.A. Wijngaards:

Hi Shmick,

Try configure --disable-shared.

thanks that worked; much appreciated