Solaris 10: -lnsl missing

From: Claus Assmann <ml+opendkim-users_at_esmtp.org>
Date: Mon, 12 Nov 2012 13:37:24 -0800

It seems that LIBNSL_LIBS is missing for
opendkim/{genzone,testkey,opendkim} on Solaris 10 (opendkim 2.7.1
with patch for dkim-dns.c).
For each of these programs the linker complains about

Undefined first referenced
 symbol in file
inet_ntop opendkim_genzone-util.o (symbol belongs to implicit dependency /lib/libnsl.so.1)

See below:

/bin/bash ../libtool --tag=CC --mode=link cc -D_STDC_C99= -g -o opendkim-genzone opendkim_genzone-config.o opendkim_genzone-opendkim-db.o opendkim_genzone-opendkim-genzone.o opendkim_genzone-opendkim-lua.o opendkim_genzone-util.o ../libopendkim/libopendkim.la -lssl -lcrypto -lresolv -lsocket
libtool: link: cc -D_STDC_C99= -g -o opendkim-genzone opendkim_genzone-config.o opendkim_genzone-opendkim-db.o opendkim_genzone-opendkim-genzone.o opendkim_genzone-opendkim-lua.o opendkim_genzone-util.o ../libopendkim/.libs/libopendkim.a -lssl -lcrypto -lresolv -lsocket
Undefined first referenced
 symbol in file
inet_ntop opendkim_genzone-util.o (symbol belongs to implicit dependency /lib/libnsl.so.1)
ld: fatal: Symbol referencing errors. No output written to opendkim-genzone
*** Error code 1 (ignored)
/bin/bash ../libtool --tag=CC --mode=link cc -D_STDC_C99= -D_REENTRANT -g -o opendkim-testkey opendkim_testkey-config.o opendkim_testkey-opendkim-crypto.o opendkim_testkey-opendkim-db.o opendkim_testkey-opendkim-dns.o opendkim_testkey-opendkim-lua.o opendkim_testkey-opendkim-testkey.o opendkim_testkey-util.o ../libopendkim/libopendkim.la -lssl -lcrypto -lpthread -lresolv -lsocket
libtool: link: cc -D_STDC_C99= -D_REENTRANT -g -o opendkim-testkey opendkim_testkey-config.o opendkim_testkey-opendkim-crypto.o opendkim_testkey-opendkim-db.o opendkim_testkey-opendkim-dns.o opendkim_testkey-opendkim-lua.o opendkim_testkey-opendkim-testkey.o opendkim_testkey-util.o ../libopendkim/.libs/libopendkim.a -lssl -lcrypto -lpthread -lresolv -lsocket
Undefined first referenced
 symbol in file
inet_ntop opendkim_testkey-util.o (symbol belongs to implicit dependency /lib/libnsl.so.1)
ld: fatal: Symbol referencing errors. No output written to opendkim-testkey
*** Error code 1 (ignored)
/bin/bash ../libtool --tag=CC --mode=link cc -D_STDC_C99= -D_REENTRANT -g -L/usr/lib -D_REENTRANT -o opendkim opendkim-opendkim.o opendkim-opendkim-ar.o opendkim-opendkim-arf.o opendkim-opendkim-crypto.o opendkim-opendkim-db.o opendkim-opendkim-dns.o opendkim-opendkim-lua.o opendkim-config.o opendkim-flowrate.o opendkim-reputation.o opendkim-stats.o opendkim-test.o opendkim-util.o ../libopendkim/libopendkim.la -lmilter -lssl -lcrypto -lpthread -lresolv -lsocket
libtool: link: cc -D_STDC_C99= -D_REENTRANT -g -D_REENTRANT -o opendkim opendkim-opendkim.o opendkim-opendkim-ar.o opendkim-opendkim-arf.o opendkim-opendkim-crypto.o opendkim-opendkim-db.o opendkim-opendkim-dns.o opendkim-opendkim-lua.o opendkim-config.o opendkim-flowrate.o opendkim-reputation.o opendkim-stats.o opendkim-test.o opendkim-util.o -L/usr/lib ../libopendkim/.libs/libopendkim.a -lmilter -lssl -lcrypto -lpthread -lresolv -lsocket
Undefined first referenced
 symbol in file
inet_ntop opendkim-opendkim.o (symbol belongs to implicit dependency /usr/lib/libnsl.so.1)
ld: fatal: Symbol referencing errors. No output written to opendkim
*** Error code 1 (ignored)
Received on Mon Nov 12 2012 - 21:37:38 PST

This archive was generated by hypermail 2.3.0 : Mon Nov 12 2012 - 21:54:01 PST