Build + test problems on OpenSolaris (aka Solaris 11)

Boyan Kasarov bkasarov at
Mon Nov 2 13:13:15 CET 2009


This is the build output for the example

gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -I../../lib/includes
-I../../lib/includes -I../../libextra/includes -I../../gl -I../../gl
-g -O2 -MT ex-serv-export.o -MD -MP -MF .deps/ex-serv-export.Tpo -c -o
ex-serv-export.o ex-serv-export.c
mv -f .deps/ex-serv-export.Tpo .deps/ex-serv-export.Po
/bin/sh ../../libtool --tag=CC   --mode=link gcc -std=gnu99   -g -O2
-no-install  -o ex-serv-export ex-serv-export.o ../../lib/ ../../libextra/ ../../gl/ -lsocket 

libtool: link: gcc -std=gnu99 -g -O2 -o ex-serv-export
ex-serv-export.o  ./.libs/libexamples.a ../../lib/.libs/ ../../libextra/.libs/ /export/home/derex/workspace/gnutls-2.9.8/lib/.libs/ -ltasn1 -lz -lgcrypt ../../gl/.libs/libgnu.a -lsocket -R/export/home/derex/workspace/gnutls-2.9.8/lib/.libs -R/export/home/derex/workspace/gnutls-2.9.8/libextra/.libs -R/tmp/gnutls/lib

ld: warning:
file /export/home/derex/workspace/gnutls-2.9.8/lib/.libs/
linked to ../../lib/.libs/ attempted multiple inclusion of
Undefined                       first referenced
symbol                             in file
inet_ntop                           ex-serv-export.o  (symbol belongs to
implicit dependency /lib/
ld: fatal: symbol referencing errors. No output written to

On Mon, 2009-11-02 at 11:40 +0100, Simon Josefsson wrote:
> When you don't use the workaround, what is the value of LIBSOCKET in
> doc/examples/Makefile?  I think it should contain -lnsl, and should be
> used when linking ex-serv1.  Can you show the build output?

LIBSOCKET = -lsocket


More information about the Gnutls-devel mailing list