[gnutls-dev] Problem linking gnutls 1.0.16

Bob Friesenhahn bfriesen at simple.dallas.tx.us
Thu Jul 22 03:07:19 CEST 2004


I am building gnutls and friends on a Solaris 9 system with gcc 3.4.1, 
using the Solaris linker.

The whole process has been quite painful.  In some places I had to 
edit Makefile.am files and add missing library dependencies.  It seems 
that perhaps gnutls relies on some automatic library dependency 
support provided by the OS.  I have installed libgpg-error-0.7, 
libgcrypt-1.2.0, libtasn1-0.2.10, and opencdk-0.5.5.

I am now down to the final link stage but am stuck at the following 
error.  Can someone please help?

gmake[3]: Entering directory `/home/bfriesen/src/im/gnutls-1.0.16/src'
/bin/sh ../libtool --mode=link gcc-3.4.1  -O2 -D_REENTRANT 
-D_THREAD_SAFE -O2 -finline-functions -I/usr/local/include 
-I/usr/local/include  -L/usr/local/lib -R/usr/local/lib -o gnutls-serv 
serv-gaa.o serv.o common.o ../lib/libgnutls.la 
../libextra/libgnutls-extra.la -L/usr/local/lib -lgcrypt 
-L/usr/local/lib -lgpg-error -lz -lnsl -lsocket -L/usr/local/lib 
-lopencdk -L/usr/local/lib -lgcrypt -L/usr/local/lib -lgpg-error 
-L/usr/local/lib -ltasn1 -lz   -lz
gcc-3.4.1 -O2 -D_REENTRANT -D_THREAD_SAFE -O2 -finline-functions 
-I/usr/local/include -I/usr/local/include -o .libs/gnutls-serv 
serv-gaa.o serv.o common.o  -L/usr/local/lib ../lib/.libs/libgnutls 
../libextra/.libs/libgnutls-extra 
/home/bfriesen/src/im/gnutls-1.0.16/lib/.libs/libgnutls 
/usr/local/lib/libopencdk.so /usr/local/lib/libgcrypt -lnsl -lsocket 
/usr/local/lib/libgpg-error.so /usr/local/lib/libintl.so 
/usr/local/lib/libiconv.so -lc /usr/local/lib/libtasn1.so -lz 
-R/usr/local/lib
ld: warning: file 
/home/bfriesen/src/im/gnutls-1.0.16/lib/.libs/libgnutls: linked to 
../lib/.libs/libgnutls: attempted multiple inclusion of file
Undefined                       first referenced
  symbol                             in file
gnutls_x509_crt_check_hostname      common.o
gnutls_openpgp_key_to_xml           common.o
_gnutls_hostname_compare            ../libextra/.libs/libgnutls-extra
gnutls_x509_crt_to_xml              common.o
ld: fatal: Symbol referencing errors. No output written to 
.libs/gnutls-serv
collect2: ld returned 1 exit status
gmake[3]: *** [gnutls-serv] Error 1
gmake[3]: Leaving directory `/home/bfriesen/src/im/gnutls-1.0.16/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/home/bfriesen/src/im/gnutls-1.0.16/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/bfriesen/src/im/gnutls-1.0.16'
gmake: *** [all] Error 2


======================================
Bob Friesenhahn
bfriesen at simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen




More information about the Gnutls-devel mailing list