linking issues

sean finney seanius at seanius.net
Mon May 23 02:13:39 CEST 2005


hey andreas,

On Sun, May 22, 2005 at 08:25:44PM +0200, Andreas Ericsson wrote:
> libnsl is another library out of place. Perhaps it's needed by Sun and 
> friends. On Linux (Fedora 3, Openwall current, Debian sarge) Nagios 
> builds nicely without them, although I know Sun (and some others) have 
> huge problems understanding any C-code at all without it. Perhaps -lnsl 
> should be linked explicitly on those and dropped for other platforms?

i believe there's an autoconf macro that can determine whether or not
the libraries are necessary.  for example, in another program i ported
to solaris, i did the following:

AC_SEARCH_LIBS([gethostbyname], [nsl])

and

AC_SEARCH_LIBS([inet_ntoa], [nsl],,,[socket])


	sean

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20050522/80701b66/attachment.sig>


More information about the Developers mailing list