[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compilation error



Murvai-Buzogany Laszlo <scissors@valerie.inf.elte.hu> writes:
> It showed no broken dependencies. Though, when running make, I get the
> next error message:
> undefined symbol dbopen in libhdb.a(db.o). I don't know why this happens,
> since dbopen is a function implemented in db.h file, which is known to the
> configure script.

The appended patch should take care of this problem.  You'll need to
rerun `aclocal -I cf; autoheader; automake; autoconf' after having
applied it.  If you don't have automake and autoconf, contact me and
I'll send you re-generated files.

Remember also that for now you need to build BerkeleyDB with
`--enable-compat185'.

/assar
Index: configure.in
===================================================================
RCS file: /afs/pdc.kth.se/src/packages/kth-krb/SourceRepository/heimdal/configure.in,v
retrieving revision 1.225
diff -u -w -u -w -r1.225 configure.in
--- configure.in	2000/04/05 03:28:26	1.225
+++ configure.in	2000/04/09 06:32:08
@@ -437,7 +437,14 @@
 
 dnl these should happen after tests for *snprintf
 
-AC_FIND_FUNC_NO_LIBS(dbopen, $berkeley_db)
+AC_FIND_FUNC_NO_LIBS2(dbopen, $berkeley_db, [
+#if defined(HAVE_DB_185_H)
+#include <db_185.h>
+#elif defined(HAVE_DB_H)
+#include <db.h>
+#endif
+],[NULL, 0, 0, 0, NULL])
+
 AC_FIND_FUNC_NO_LIBS(dbm_firstkey, $berkeley_db gdbm ndbm)
 
 DBLIB="$LIB_dbopen"