Setting gnutls to use nettle instead of libgcrypt

Brad Hards bradh at frogmouth.net
Sat Jul 30 03:55:20 CEST 2011


On Saturday 30 July 2011 11:18:58 Totony wrote:
> root: ldd /usr/lib/libgnutls.so
>     linux-vdso.so.1 =>  (0x00007fff95fff000)
>     libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0x00007ff8dc78b000)
>     libnettle.so.4 => /usr/lib/libnettle.so.4 (0x00007ff8dc568000)
>     libgmp.so.10 => /usr/lib/libgmp.so.10 (0x00007ff8dc2fb000)
>     libhogweed.so.2 => /usr/lib/libhogweed.so.2 (0x00007ff8dc0e9000)
>     libz.so.1 => /usr/lib/libz.so.1 (0x00007ff8dbed1000)
>     libdl.so.2 => /lib/libdl.so.2 (0x00007ff8dbccc000)
>     libpthread.so.0 => /lib/libpthread.so.0 (0x00007ff8dbaaf000)
>     libc.so.6 => /lib/libc.so.6 (0x00007ff8db74e000)
>     /lib/ld-linux-x86-64.so.2 (0x00007ff8dcc74000)
Is this /usr/lib/libgnutls.so a symlink to /usr/lib/libgnutls.so.26?
 
> root: ldd /usr/bin/aria2
>     linux-vdso.so.1 =>  (0x00007fffbe1ff000)
>     librt.so.1 => /lib/librt.so.1 (0x00007ff5b7c9a000)
>     libz.so.1 => /usr/lib/libz.so.1 (0x00007ff5b7a82000)
>     libcares.so.2 => /usr/lib/libcares.so.2 (0x00007ff5b7873000)
> ->libgcrypt.so.11 => /lib/libgcrypt.so.11 (0x00007ff5b75f6000)
> ->libgnutls.so.26 => /usr/lib/libgnutls.so.26 (0x00007ff5b7334000)
>     libnettle.so.4 => /usr/lib/libnettle.so.4 (0x00007ff5b59ec000)
This says that loading aria2 will load both gcrypt and nettle. Perhaps aria2 
is using them both, and only one is via libgnutls.

> So, gnutls have no reason to use libgcrypt ? (Even if the program that uses
> gnutls link libgcrypt ?)
It depends on how gnutls was built. 

> I think I will fill a bug report to the package (it's not normal that aria2
> is linked to libgcrypt if it uses gnutls, is it ?).
It may not be a direct linkage.

You have made a big assumption about the relationship between libgcrypt and 
aria2 - that is is via gnutls. The ldd output for /usr/lib/libgnutls.so above 
suggests that assumption is wrong.

Brad





More information about the Gnutls-help mailing list