[1052] in Kerberos-V5-bugs

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

-lsocket, -lnsl, -ldbm, etc...

daemon@ATHENA.MIT.EDU (epeisach@MIT.EDU)
Thu Jan 26 08:50:33 1995

From: epeisach@MIT.EDU
Date: Thu, 26 Jan 1995 08:50:27 -0500
To: krb5-bugs@MIT.EDU


I reported this before, but I would like to propose  a solution... 
IRIX 5.2 has a broken libsocket which is installed for sysv
compatibility. I.e. it may not be installed on all architectures... The
gethostbyname routine is the broken one...

Maybe, there should be a KRB5_NETLIBS definition in aclocal.m4 which
currently would currently be:

AC_CHECK_LIB(socket,main)
AC_CHECK_LIB(nsl,main)

but could later be changed when O.S. particular brokenness are
discovered. Maybe, an option for adding in --with-net-lib= can be added
so machines with broken resolv libraries can include a fixed one. 

For laughs, at the same time, there can be a definition of KRB5_DBM_LIB
which would be:

AC_CHECK_LIB(ndbm,main)
AC_CHECK_LIB(dbm,main)

but would later really be fixed to only link -ldbm if the ndbm routines
did not exist in libc... (I think it is silly to use -ldbm, when ndbm
routines are in use). 

Again, by putting these in the top level aclocal.m4, global fixes can be
made easilly... I can provide a patch to doo all this if someone agrees
this would be good and would be willing to install it.

	Ezra

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