After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 675550 - linking fails due to missing -lnsl on OpenIndiana
linking fails due to missing -lnsl on OpenIndiana
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: build
2.32.x
Other opensolaris
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2012-05-06 07:41 UTC by Fabian Groffen
Modified: 2012-12-28 13:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
check for -lnsl (366 bytes, patch)
2012-05-06 07:41 UTC, Fabian Groffen
none Details | Review

Description Fabian Groffen 2012-05-06 07:41:15 UTC
Created attachment 213537 [details] [review]
check for -lnsl

CCLD   glib-compile-resources
/gentoo/prefix64/usr/lib/gcc/x86_64-pc-solaris2.11/4.6.3/../../../../x86_64-pc-solaris2.11/bin/ld: ./.libs/libgio-2.0.a(libgio_2_0_la-ginetaddress.o): undefined reference to symbol 'inet_ntop@@SUNW_1.7'
/gentoo/prefix64/usr/lib/gcc/x86_64-pc-solaris2.11/4.6.3/../../../../x86_64-pc-solaris2.11/bin/ld: note: 'inet_ntop@@SUNW_1.7' is defined in DSO /lib/amd64/libnsl.so.1 so try adding it to the linker command line
/lib/amd64/libnsl.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status

While libsocket.so depends on libnsl.so itself, it seems that on OpenIndiana, this is no longer sufficient for the linker.  (underlinking?)  With the same linker on Solaris 10, the link succeeds, however on OpenIndiana it needs explicit -lnsl (as per man-page on Solaris since ages).  I've added a AC_SEARCH_LIBS to add -lnsl if it is available, not to break hosts where this library is not available.
Comment 1 Fabian Groffen 2012-12-28 13:26:52 UTC
patch appears no longer necessary with 2.34.1