Build + test problems on OpenSolaris (aka Solaris 11)

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


Hello,

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
libexamples.la ../../lib/libgnutls.la ../../libextra/libgnutls-extra.la ../../gl/libgnu.la -lsocket 

libtool: link: gcc -std=gnu99 -g -O2 -o ex-serv-export
ex-serv-export.o  ./.libs/libexamples.a ../../lib/.libs/libgnutls.so ../../libextra/.libs/libgnutls-extra.so /export/home/derex/workspace/gnutls-2.9.8/lib/.libs/libgnutls.so -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/libgnutls.so:
linked to ../../lib/.libs/libgnutls.so: attempted multiple inclusion of
file
Undefined                       first referenced
symbol                             in file
inet_ntop                           ex-serv-export.o  (symbol belongs to
implicit dependency /lib/libnsl.so.1)
ld: fatal: symbol referencing errors. No output written to
ex-serv-export

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

Boyan







More information about the Gnutls-devel mailing list