[gnutls-dev] Symbol versioning in gnutls 1.5.x

Werner Koch wk at gnupg.org
Sun Sep 24 20:10:35 CEST 2006

On Sun, 24 Sep 2006 12:10, Andreas Metzler said:

> is supposed to protect us against: If a binary links against both 1.5
> and 1.4 an runtime (e.g. mutt: linking directly against 1.5 for TLS
> and indirectly against 1.4 though libldap) then symbol clashes happen
> and segfaults might be caused.

Exactly.  We had already had this trouble with GnuPG before the
release of Sarge. There is a reason why the linker tells you about
this possible conflict.

I am pretty sure that many packages do have this problem.  For example
building the current Gnupg 1.9 with gnutls-dev installed you will get
such a problem due to cURL.  It links agains gnutls11 and .13.

> Both gnutls-1.5.1/libextra/libgnutls-extra.vers and
> gnutls-1.5.1/lib/libgnutls.vers should be bumped.

I can't see how this helps.  You need to make sure that there are no
such conflicts.  Remember it is a runtime linkage problem and it is
pure coincidence that it usually (thanks to GNU ld.so) works.



More information about the Gnutls-devel mailing list