[Kbabel] KBabelDict and Berkley Database 4.1

Stephan Johach lucardus@onlinehome.de
Sun, 10 Nov 2002 18:10:17 +0100


Hi!

I just saw that KBabelDict requires Berkley Database. So I downloaded
version 4.1.24 from www.sleepycat.com and installed it under /usr/local.

But ./configure complaint about it.

First ./configure looks for

#if DB_VERSION_MAJOR =3D=3D 2

I have DB_VERSION_MAJOR =3D=3D 4 in db.h. So I tried changing this and it=
 worked

But right after configure found the next one:

configure: In function `main':
configure:23925: warning: implicit declaration of function `db_open'
configure:23924: warning: unused variable `cursor'
/tmp/ccCghPwo.o: In function `main':
/tmp/ccCghPwo.o(.text+0x20): undefined reference to `db_open'
collect2: ld returned 1 exit status
configure:23940: $? =3D 1
configure: failed program was:
#line 23908 "configure"
#include "confdefs.h"

#include <db.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

#if     DB_VERSION_MAJOR =3D=3D 4
DB *db;
DBC *cursor;
db_open("test",DB_BTREE,0,0644,0,0,&db);
#else
error
#endif

  ;
  return 0;
}


Obviously the function db_open is neither declared in db.h (implicit=20
declaration) nor is it found by ld when linking.

Did I miss something? Is there another Berkley DB around? Or is
=2E/configure simply broken here?

Stephan


--=20
http://www.wormsalt.de