[gnutls-dev] Please update lib-link.m4

Simon Josefsson simon at josefsson.org
Mon Dec 3 11:43:53 CET 2007

Hi!  Interesting.  We import lib-link.m4 from gnulib, so we should have
the latest version.  However, it seems that lib-link.m4 is imported by
gettext as well, and for some reason that version is included by 'make
dist'.  The ordering of -I's in ACLOCAL_AMFLAGS doesn't seem to matter.
I've installed a cludge to overwrite the gettext files with the gnulib
files, but I'll bring this up on the gnulib list as well, to possibly
find out what the recommended solution is.

Installing gettext 0.17 under /usr/local/ doesn't seem to help either,
it still uses the M4 files from /usr.  And for some reason, the debian
package of gettext 0.17 haven't been built for i386, so I can't update
the coy in /usr.  I'll file a bug about that...

I think we'll need another pre-release to confirm that this is solved.


Andreas Metzler <ametzler at downhill.at.eu.org> writes:

> Hello,
> the old verion of lib-link.m4 (serial 9) in gnutls 2.1.7 results in
> adding a unnecessary -L/usr/lib to the link line for every single
> found library. (e.g. opencdk or zlib):
> (cd /tmp/GNUTLS/gnutls25-2.1.6/libextra; /bin/bash ../libtool  --tag=CC --mode=relink cc -std=gnu99 -g  -Wall -O2 -D_REENTRANT -D_THREAD_SAFE -pipe -g -Wall -O2 -D_REENTRANT -D_THREAD_SAFE -Wno-pointer-sign -no-undefined -L/usr/lib -lopencdk -L/usr/lib -lgcrypt -L/usr/lib -lgpg-error -L/usr/lib -lnsl -L/usr/lib -lz -version-info 25:1:0 -llzo2 -Wl,--version-script=./libgnutls-extra.vers -o libgnutls-extra.la -rpath /usr/lib gnutls_extra.lo gnutls_openpgp.lo gnutls_ia.lo openpgp/libgnutls_openpgp.la ../lgl/liblgnu.la ../lib/libgnutls.la -inst-prefix-dir /tmp/GNUTLS/gnutls25-2.1.6/debian/tmp/)
> The additional -L/usr/lib causes libtool to choose the wrong -lgnutls,
> prefereing the one in /usr/lib (if it exists) over the newly generated
> one in DESTDIR/usr/lib.
> <http://news.gmane.org/find-root.php?message_id=%3cfpc325%2dbc5.ln1%40argenau.downhill.at.eu.org%3e>
> Upgrading lib-link.m4 from serial 9 to serial 13 gets rid of almost all
> instances of -L/usr/lib:
> (cd /tmp/GNUTLS/gnutls26-2.1.7/libextra; /bin/bash ../libtool  --tag=CC --mode=relink cc -std=gnu99 -g -Wall -O2 -D_REENTRANT -D_THREAD_SAFE -pipe -g -Wall -O2 -D_REENTRANT -D_THREAD_SAFE -Wno-pointer-sign -no-undefined -lopencdk -version-info 26:0:0 -llzo2 -Wl,--version-script=./libgnutls-extra.vers -o libgnutls-extra.la -rpath /usr/lib gnutls_extra.lo gnutls_openpgp.lo gnutls_ia.lo openpgp/libgnutls_openpgp.la ../lgl/liblgnu.la ../lib/libgnutls.la -inst-prefix-dir /tmp/GNUTLS/gnutls26-2.1.7/debian/tmp/)
> Please upgrade lib-link.m4
> thanks, cu andreas 
> -- 
> `What a good friend you are to him, Dr. Maturin. His other friends are
> so grateful to you.'
> `I sew his ears on from time to time, sure'

More information about the Gnutls-devel mailing list