[2635] in Kerberos_V5_Development
-lsocket, -lnsl
daemon@ATHENA.MIT.EDU (Ezra Peisach)
Thu Oct 23 12:06:24 1997
To: krbdev@MIT.EDU
Date: Thu, 23 Oct 1997 12:05:21 EDT
From: Ezra Peisach <epeisach@MIT.EDU>
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