[Unbound-users] Unbound release 1.4.12

W.C.A. Wijngaards wouter at NLnetLabs.nl
Wed Nov 2 13:17:04 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Andreas,

On 11/02/2011 01:30 PM, lst_hoe02 at kwsoft.de wrote:
> Zitat von "W.C.A. Wijngaards" <wouter at NLnetLabs.nl>:
> 
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 07/18/2011 10:00 PM, Juergen Daubert wrote:
>>> On Mon, Jul 18, 2011 at 05:19:35PM +0200, Gábor Lénárt wrote:
>>>
>>> [...]
>>>
>>>> However, I am still having problems to get the "old behaviour". How
>>>> can I
>>>> compile unbound to link against libldns statically? I couldn't
>>>> figure out
>>>> without ugly hacks (see my previous mail), it seems even
>>>> "--enable-static-exe" does not work (and also it sounds a bit
>>>> "dangerous"
>>>> when help of the configure script talks about "for debug purposes"),
>>>> ldns
>>>> is still linked dynamically, at least output of ldd on unbound binary
>>>> shows libldns too.
>>>
>>> Build but _not_ install ldns <somewhere> with the configure option
>>> --disable-shared. After that configure unbound to use your just built
>>> ldns with --with-ldsn=<somewhere>, thats all ;)
>>
>> Yes that is a way to install from source:
>>    get ldns; unpack, ./configure --disable-shared; make
>>    get unbound; unpack, ./configure --with-ldns=theldnsbuilddir; make
>> This results in a static link to the ldns library.  Unbound can use the
>> ldns compile build directory directly, you do not have to install the
>> ldns you link to.
>> (If you want to static link to libevent, do the same for libevent).
> 
> This does not work for me on Linux x64...
> 
> /usr/bin/ld: /root/install/build/ldns/lib/libldns.a(rdata.o): relocation
> R_X86_64_32S against `.rodata' can not be used when making a shared
> object; recompile with -fPIC
> /root/install/build/ldns/lib/libldns.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make: *** [libunbound.la] Fehler 1
> 
> Should ldns be built with -fPIC or unbound??

Sounds like you have configured ldns --disable-shared, but unbound does
not have this option, and is trying to compile a shared library
(libunbound), and cannot find pic code for ldns.

You could configure unbound --disabled-shared too, and then it does not
build the shared libunbound.

Best regards,
   Wouter

> On the same OS (ia32 ) it works as expected, it's unbound 1.4.13 BTW.
> 
> 
> Regards
> 
> Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJOsULQAAoJEJ9vHC1+BF+NNKQP/2PM72nFecGqwEg0fpJQjo4/
mI1fFm7abCseQKb3QwNt2Y/xboJoXL4ZAzL5hPf9zI3/dR324jZ4ZbpuDPaaz4o/
Bwmh+2ZIf6lheCoAJbiPRmPKOG5y2/JJOw5PtGHQag9/M84FHs7oZDxe8MWEh19H
Fh06EvbVnJtNQwsgwjdC24hLgTi5mIZDAVNEV8GezsJF0BlmSKUg2d3vrWqkv0Y9
ToBA+2r/FyZNlyg3LnPJqYiDpXO1X3MTtJZg+YRCWGLQpsQibII8DMkE39RT66uW
mZy16HFZlX1SYYZ+L060DTwZ/633QRLsVr7d92hfHfiNdLBiZSkvWyFliVy72VJL
4kSciPanUaww/TZR+XijwFe41yLNWU6BAhhRbetsLL0C2IjNu5dv/PCjjAmHeVCD
FrBPI4YRlfti+AQ58Xxy6jnlZsj3JCC5sZzba1ZuX6Ypioa+d1+OJ84yE3WHDAM4
THzaxXl/D3OHTi5QYWjRZEOGsNhip6AJ+Nn+KSVSZknEooQVM1T8b4Yye6y3ydog
J7It4jbpk4ytKOlGQ0QQET2xlQLaAIHpFax3hjgFrBVt3iYZCQrqT3Td5nOzez73
uMY8qunggyzfFTEo5Wu53gDTQ2WQ+AGJaboS/Tgxt75A2lY6dyhQWNj9g1KJJNRO
dxIarWOIju7R/lXi6AjT
=38Pr
-----END PGP SIGNATURE-----



More information about the Unbound-users mailing list