[Dovecot] can not compile 1.1.5 with BDB

LÉVAI Dániel leva at ecentrum.hu
Sat Oct 25 16:29:12 EEST 2008


On Saturday 25 October 2008 14.59.00 Timo Sirainen wrote:
> On Sat, 2008-10-25 at 09:22 +0200, LÉVAI Dániel wrote:
> > Hi!
> >
> > I'm trying to use dovecot-1.1.5 with Berkley DB 4.6.21 on OpenBSD.
>
> It compiles fine on Debian with bdb 4.7.25.2, but I think it should
> work fine with older versions too.
>
> > While compiling I get this:
> >
> > gcc -DHAVE_CONFIG_H -I. -I../..  -I../../src/lib 
> > -I../../src/lib-sql  \ -DPKG_RUNDIR=\""/var/run/dovecot"\"   
> > -I/usr/local/include  -std=gnu99\ -g -O2 -Wall -W
> > -Wmissing-prototypes -Wmissing-declarations \ -Wpointer-arith
> > -Wchar-subscripts -Wformat=2 -Wbad-function-cast \
> > -fstack-protector -MT dict-db.o -MD -MP -MF .deps/dict-db.Tpo -c -o
> > \ dict-db.o dict-db.c
> > dict-db.c:15: error: syntax error before "DB_ENV"
>
> My guess is that #include <db.h> includes wrong file. Try to find out
> the correct file and try putting the full path there. I don't have
> OpenBSD installed so I can't really test this myself.

That is correct. I had to include another directory in CPPFLAGS:
CPPFLAGS+="-I/usr/local/include/db4"

Great and fast assistance, as usual! :)

Thank you very much!

Daniel

-- 
LEVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1


More information about the dovecot mailing list