ldns
ldns copied to clipboard
Solaris and undefined symbol inet_pton
Hi Everyone,
Continuing on the Solaris 11.4 i86pc build of OpenSSH. I added ac_cv_func_inet_pton=yes
and ac_cv_func_inet_ntop=yes
to configure
and we got past the compile problem. Also see GH #153.
Now there is a small link issue:
./libtool --tag=CC --quiet --mode=link /bin/gcc -fno-strict-aliasing -Wunused-function -
Wstrict-prototypes -Wwrite-strings -W -Wall -g2 -O2 -m64 -march=native -fPIC -pthread -L
/opt/ssh/lib -m64 -Wl,-R,'$ORIGIN/../lib' -Wl,-R,/opt/ssh/lib -Wl,-z,now -Wl,-z,origin -
L/opt/ssh/lib drill/chasetrace.lo drill/dnssec.lo drill/drill.lo drill/drill_util.lo dri
ll/error.lo drill/root.lo drill/securetrace.lo drill/work.lo compat/b64_pton.lo compat/b
64_ntop.lo compat/timegm.lo compat/inet_aton.lo libldns.la -lssl -lcrypto -lsocket -ldl
-lpthread -o drill/drill
Undefined first referenced
symbol in file
inet_pton drill/.libs/drill.o (symbol belongs to implicit dep
endency /lib/amd64/libnsl.so.1)
The functions are part of libnsl
on Solaris. LDNS should include these libraries in this exact order: -lresolv -lsocket -lnsl
. See man pages section 3: Library Interfaces and Headers, page 331.