[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking Problem with Solaris ld

From: Ralf Wildenhues
Subject: Re: Linking Problem with Solaris ld
Date: Mon, 18 Apr 2005 13:56:10 +0200
User-agent: Mutt/1.4.1i

bug confirmed in 1.5.6

* Moritz Schulte wrote on Sat, Apr 16, 2005 at 06:50:27PM CEST:
> What happens is that the ld forgets to include symbols in the final
> DSO (libgcrypt.so).  The linking command looks like this:
>    gcc -shared -Wl,-h -Wl,libgcrypt.so.11 -o .libs/libgcrypt.so.11.2.0
>    .libs/libgcrypt_la-misc.o .libs/libgcrypt_la-global.o
>    .libs/libgcrypt_la-sexp.o .libs/libgcrypt_la-stdmem.o
>    .libs/libgcrypt_la-secmem.o .libs/libgcrypt_la-missing-string.o
>    .libs/libgcrypt_la-module.o .libs/libgcrypt_la-ath.o -z allextract
>    ../cipher/.libs/libcipher.a ../mpi/.libs/libmpi.a -z defaultextract
>    -R/usr/local/lib -R/usr/local/lib -L/usr/local/lib
>    /usr/local/lib/libgpg-error.so -lnsl -lsocket -lc

libtool has to create a line like this:

  -Wl,-z -Wl,allextract ../cipher/.libs/libcipher.a \
                        ../mpi/.libs/libmpi.a -Wl,-z -Wl,-defaultextract.

otherwise the same link line reordering problem shows up as with Solaris

This is fixed wrongly in 1.5.10, and properly in upcoming 1.5.16, which
is due end of this week, hopefully.

It would have been really nice if you had answered my questions, because
that would have saved everybody time.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]