[2098] in Kerberos-V5-bugs
solution found to Linux compile problems
daemon@ATHENA.MIT.EDU (John D. Blair)
Sun Jul 14 14:10:03 1996
From: "John D. Blair" <jdblair@frodo.tucc.uab.edu>
To: krb5-bugs@MIT.EDU
Date: Sun, 14 Jul 1996 13:09:49 -0500 (CDT)
Reply-To: jdblair@uab.edu
Hello all,
I found the solution to the Linux compile problems that I posted
yesterday in the comp.protocols.kerberos archives. Tom Yu explains,
Subject: Re: beta 6 problems..
From: tlyu@MIT.EDU (Tom Yu)
Date: 1996/06/15
Message-Id: <199606160213.WAA12406@dragons-lair.MIT.EDU>
Sender: daemon@cam.ov.com
References: <199606100426.XAA01371@doa.flame.org>
Organization: comp.protocols.kerberos<->kerberos@mit.edu gateway
Newsgroups: comp.protocols.kerberos
Could you tell me if whether dbm_clearerr is a macro or a prototype in
ndbm.h? Also, does it even exist at all? Does libc.a contain
dbm_clearerr? Is there a separate libdbm.a or libndbm.a? Do you have
gdbm installed?
I suspect the chain of events is as follows:
* finds ndbm.h, sets dbval=ndbm
* finds dbm_nextkey in someting other than libc
* tries to grep for dbm_clearerr, etc. in ndbm.h
* fails to find it
* tries to link with ref to dbm_clearerr(), etc.
* fails because it's not in libc and we didn't set LIBS
properly before the test
* thinks the prototype isn't missing anyway
This may or may not be a problem with other BSDish systems. I think
this patch to aclocal.m4 may solve the problems:
Index: aclocal.m4
===================================================================
RCS file: /afs/athena.mit.edu/astaff/project/krbdev/.cvsroot/src/aclocal.m4,v
retrieving revision 1.119
diff -u -r1.119 aclocal.m4
--- aclocal.m4 1996/06/14 03:07:29 1.119
+++ aclocal.m4 1996/06/16 01:49:31
@@ -1000,6 +1000,7 @@
AC_CHECK_LIB(dbm,dbm_nextkey,[dblibs=-ldbm],
AC_CHECK_LIB(gdbm,dbm_nextkey,[dblibs=-lgdbm]))))
AC_DEFINE(NDBM)
+ LIBS="$LIBS $dblibs"
AC_CHECK_DBM_PROTO($dbval,dbm_error,,
AC_DEFINE(MISSING_ERROR_PROTO))
AC_CHECK_DBM_PROTO($dbval,dbm_clearerr,,
---Tom
later,
-john.
-----------------------------------------------------------------------------
John D. Blair (sys|net)admin, the university computer center (TUCC)
mailto:jdblair@uab.edu university of alabama at birmingham (UAB, y'all)
phoneto:(205) 975-7123 (my other car is a cdr)
------> change the name of alabama to AMA8AMA! write for details <------