Page MenuHome GnuPG

libgpgme.so ld fails on Solaris 8 / gcc 3.3.1
Closed, ResolvedPublic

Description

Release: 1.1.0

Environment

Sun UltraSPARC
Solaris 8
GCC 3.3.1 w/ GNU ld

Description

Linking error with libgpgme.so:

gcc -O2 -mcpu=ultrasparc -Wall -Wcast-align -Wshadow -Wstrict-prototypes -o .libs/t-encrypt t-encrypt.o ../../gpgme/.libs/libgpgme.so -L/home/joelkp/software/lib /home/joelkp/software/lib/libgpg-error.so -Wl,--rpath -Wl,/home/joelkp/software/lib
../../gpgme/.libs/libgpgme.so: undefined reference to `connect'
../../gpgme/.libs/libgpgme.so: undefined reference to `accept'
../../gpgme/.libs/libgpgme.so: undefined reference to `sendmsg'
../../gpgme/.libs/libgpgme.so: undefined reference to `recvmsg'
collect2: ld returned 1 exit status

Full trace attached.

Fix

Unknown

Event Timeline

Hopefully fixed with this change, but I can't test it:

2006-07-29 Marcus Brinkmann <marcus@g10code.de>

  • configure.ac: Check for network libraries and set NETLIBS.

2006-07-29 Marcus Brinkmann <marcus@g10code.de>

  • gpgme-config.in (Options): Add NETLIBS.
  • Makefile.am (libgpgme_la_LIBADD, libgpgme_pthread_la_LIBADD, libgpgme_pth_la_LIBADD, libgpgme_glib_la_LIBADD): Add NETLIBS.
  • rungpg.c (read_status): Fix comparison disguising as an assignment.
marcus added a project: Restricted Project.Jul 29 2006, 4:11 PM
werner removed a project: Restricted Project.