[2636] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

Re: -lsocket, -lnsl

daemon@ATHENA.MIT.EDU (Von Welch)
Thu Oct 23 12:34:32 1997

Date: Thu, 23 Oct 1997 11:31:34 -0500
To: Ezra Peisach <epeisach@MIT.EDU>
From: Von Welch <vwelch@ncsa.uiuc.edu>
Cc: krbdev@MIT.EDU
In-Reply-To: <9710231605.AA23766@kangaroo.mit.edu>


FYI, when I run configure under IRIX (we have 5.3, 6.2, 6.3 and 6.4) I
always specify --without-netlib, which I believe causes a build without
libsocket and libnsl. I seem to remember using the netlibs under IRIX 6.3
especially caused some serious problems (application hanging).

Von 

At 12:05 PM 10/23/97 EDT, Ezra Peisach wrote:
>
>aclocal,m4 is testing for the existance of socket in libsocket, but
>the test for libnsl is simply it's existance and ability to link with.
>
>This results in the following under irix63:
>
>ld: WARNING 134: weak definition of clnt_broadcast in /usr/lib/libnsl.so
preempts that weak definition in /usr/lib/libc.so.
>
>I wonder if libnsl is even needed on this platform... Perhaps the test
>for libnsl is too general and should be reduced to testing for what is
>really needed.... 
>
>Greg Hudson is currently using the following construct for the source trees:
>
>AC_CHECK_FUNC(gethostbyname, :, AC_CHECK_LIB(nsl, gethostbyname))
>AC_CHECK_FUNC(socket, :, AC_CHECK_LIB(socket, socket))
>
>i.e. - check for gethostbyname in libc and then nsl - the same with socket...
>
>Would this be more apropiate..
>
>	Ezra
>
>

home help back first fref pref prev next nref lref last post