Page MenuHome GnuPG

Shared libraries not built properly on SunOS 5.x
Closed, ResolvedPublic

Description

Release: 0.9.0

Environment

SPARC, SunOS 5.8, standard libraries
GCC 3.4.1 built by CSW configured to use SunOS tools for as, ar, nm and ld.

Description

Shared libraries are not built with all functions due to a misconfiguration in configure/libtool. On SunOS the linker needs to be addressed with the "-Wl," flag for each argument.
The ${wl} flag does not seem to be set during configure.
If I only knew more about autoconf I could probably have supplied a patch for this problem. My workaround was to update libtool to prove that the -Wl, is needed.

Second issue is that on SunOS, the libraries nsl and socket must be linked in with the shared library to avoid further build errors when compiling applications using libgpgme.so.
Again, my workaround was to add -lnsl -lsocket to libtool.

Fix

See description for workaround.
Fix would be to make sure ${wl} is set appropriately for the build target.

Event Timeline

Hi,

I think the first problem - missing -Wl, must be reported to the libtool maintainer, and fixed in libtool proper. Then if you let us know which version of libtool fixes it, we can update the included libtool and bump up the libtool requirement.

The second problem I don't know - if this needs to be done automatically by libtool, then please report this to the libtool maintainer. Otherwise, we need to do it in GPGME's autoconf. Can you elaborate on the type of errors you get if you don't link with -lnsl and -lsocket? Thanks, Marcus

werner added a subscriber: werner.

libtool problem. No responses for 3 months.