Page 1 of 1

Re: [Nagios-devel] linking issues

Posted: Sun May 22, 2005 4:13 pm
by Guest
--FL5UXtIhxfXey3p5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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=20
> friends. On Linux (Fedora 3, Openwall current, Debian sarge) Nagios=20
> builds nicely without them, although I know Sun (and some others) have=20
> huge problems understanding any C-code at all without it. Perhaps -lnsl=
=20
> 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


--FL5UXtIhxfXey3p5
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFCkSAzynjLPm522B0RAu21AJwJvSQkrAa7wSJVq36USkFVUDC/jgCbB9zS
xzea+JWeL749bYwFdp2o/y8=
=l9tV
-----END PGP SIGNATURE-----

--FL5UXtIhxfXey3p5--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]