bug-libtool
[Top][All Lists]
Advanced

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

Re: Linking Problem with Solaris ld


From: Bob Friesenhahn
Subject: Re: Linking Problem with Solaris ld
Date: Sat, 16 Apr 2005 13:52:39 -0500 (CDT)

I believe that this problem is due to a missing LDADD in the libgcrypt Automake makefiles and I formally reported this as a bug to the libgcrypt developers some six or eight months ago. I think I even supplied a patch.

The libgcrypt project is relying on implicit shared library dependencies as supported by Linux rather than the explicit dependencies which are necessary for portable libtool-based software. This is a common problem for projects which have only been tested under Linux.

I suggest that you report this as a bug to the libgcrypt developers.

Bob

On Sat, 16 Apr 2005, Moritz Schulte wrote:

Hello Libtool hackers,

we have seen linking problems during building of Libgcrypt on Solaris
when using the Solaris ld.  I don't know if this is only a ld problem
or also a libtool problem.

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

Now, there are a couple of functions (gcry_ac_*) in ac.o in
../cipher/.libs/libcipher.a.  These functions are not referenced from
any other object file.  That's probably why they are skipped.  (If I
e.g. exclude .libs/libgcrypt_la-global.o from the linking command,
other functions from libcipher.a, which are referenced from
libgcrypt_la-global.o are also skipped)

This happens on at least Solaris 2.6.  Should be reproducible with
Libgcrypt 1.2.1.

I am not subscribed to this list.

Thanks,
Moritz

--
Moritz Schulte


======================================
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/




reply via email to

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