[Exim] Which DB/DBM libraries to use with Exim-3.31 and RedH…

Top Page
Delete this message
Reply to this message
Author: Michael J. Tubby B.Sc. G8TIC
Date:  
To: exim-users
Subject: [Exim] Which DB/DBM libraries to use with Exim-3.31 and RedHat 7.0 ?
All,

Have never had this problem before.. with Exim-3.16 and 3.20 and RedHat 5.x and 6.x
machines I just un-tarred the Exim tarball, edited/made the Local/Makefile and compiled
and we are off...

Now I come to put Exim 3.31 on a RedHat 7.0 machine and I am chasing myself
round in circles with libraries.... the default configuration doesn't work... do I install
gdbm, db2.x, db3.x? Do I recursively hack at Exim's headers and include files?

The RH 7.0 machine appears to have DB 1.85, GDBM and DB 3.0 already installed:

[root@pendragon RPMS]# rpm -ivh db1*
package db1-1.85-4 is already installed
package db1-devel-1.85-4 is already installed
[root@pendragon RPMS]#

[root@pendragon RPMS]# rpm -ivh gdbm-*
package gdbm-1.8.0-5 is already installed
package gdbm-devel-1.8.0-5 is already installed

[root@pendragon RPMS]# rpm -ivh db3-3.1.14-6.i386.rpm
package db3-3.1.14-6 is already installed
[root@pendragon RPMS]


Fairly early in the build process it breaks:

make[1]: Entering directory `/root/exim-3.31/build-Linux-i386'
make[2]: Entering directory `/root/exim-3.31/build-Linux-i386/pcre'
gcc -c -O  maketables.c
gcc -c -O  get.c
gcc -c -O  pcre.c
gcc -c -O  study.c
rm -f libpcre.a
ar cq libpcre.a maketables.o get.o pcre.o study.o
ranlib libpcre.a
gcc -c -DNOPOSIX -O  pcretest.c
gcc -O  -o ../../util/pcretest pcretest.o libpcre.a
make[2]: Leaving directory `/root/exim-3.31/build-Linux-i386/pcre'
gcc -O  -o exim_dbmbuild  exim_dbmbuild.c \
  -lnsl -lcrypt  -ldb
In file included from exim.h:332,
                 from exim_dbmbuild.c:30:
dbfn.h:107:16: db.h: No such file or directory
make[1]: *** [exim_dbmbuild] Error 1
make[1]: Leaving directory `/root/exim-3.31/build-Linux-i386'
make: *** [go] Error 2
[root@pendragon exim-3.31]#




I don't know if the RH guys' RPMs are built with "non standard" Exim options
which work... I would rather compile Exim from the source so I can control
what features are in and what is out.

Questions?

1. What are the *right* libraries for Exim and RH 7.x ? recommendations?

2. What do I have to hack in the OS directory to get it to build?


Mike