Re: [Exim] compile exim with "gdbm"

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: Frank Tiemann
CC: exim-users
Sujet: Re: [Exim] compile exim with "gdbm"
On Mon, 8 Oct 2001, Frank Tiemann wrote:

> i try to compile exim with the "gdbm" instead of using the berkley-db,
> provided by sleepycat.
> but, there are two issues:
> * theres no "db.h" (i copyied this one from an other distribution, but
> shouldnt provide gdbm someting like this?)


db.h is the Berkeley DB header file.

> * compiling this, i get an error 1:
> -------------------------------
> gcc -O -I/usr/local/include -o exim_dbmbuild exim_dbmbuild.c \
> -lnsl -lcrypt -lgdbm
> /tmp/cc9z6ErG.o: In function `main':
> /tmp/cc9z6ErG.o(.text+0x2b6): undefined reference to `db_open'
> collect2: ld returned 1 exit status
> make[1]: *** [exim_dbmbuild] Error 1
> make[1]: Leaving directory `/usr/src/exim-3.33/build-Linux-i386'
> make: *** [go] Error 2
> -------------------------------


db_open is a Berkeley function.

Have you accidentally set USE_DB in your Local/Makefile? Have you read
doc/dbm.discuss.txt?

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.