On 02/13/2014 03:41 PM, Pierre Labastie wrote: > Hi all, > > In the process of testing dovecot, I tried to set up exim, but got an error. > Here is the log after typing make: > ---------------- > /bin/sh scripts/source_checks > > >>> Creating links to source files... > >>> Creating lookups/Makefile for building dynamic modules > >>> New Makefile & lookups/Makefile installed > >>> Use "make makefile" if you need to force rebuilding of the makefile > > make[1] : Entering directory `/sources/exim/exim-4.82/build-Linux-x86_64'' > /bin/sh ../scripts/Configure-os.h > /bin/sh ../scripts/Configure-os.c > gcc buildconfig.c > /bin/sh ../scripts/Configure-config.h "make" > make[2] : Entering directory `/sources/exim/exim-4.82/build-Linux-x86_64' > make[2]: « buildconfig » est à jour. > make[2] : Leaving directory `/sources/exim/exim-4.82/build-Linux-x86_64' > Building configuration file config.h > >>> config.h built > > >>> version 4.82 #2 > > >>> exicyclog script built > >>> exinext script built > >>> exiwhat script built > >>> exigrep script built > >>> eximstats script built > >>> exipick script built > >>> exiqgrep script built > >>> exiqsumm script built > >>> transport-filter.pl script built > >>> convert4r3 script built > >>> convert4r4 script built > >>> exim_checkaccess script built > > gcc exim_dbmbuild.c > In file included from exim.h:479:0, > from exim_dbmbuild.c:31: > dbstuff.h:101:16: fatal error: db.h : No such file or directory > #include <db.h> > ^ > compilation terminated. > make[1]: *** [exim_dbmbuild.o] Error 1 > make[1] : Leaving directory `/sources/exim/exim-4.82/build-Linux-x86_64' > make: *** [all] Erreur 2 > --------------------------------- > I do not have Berkeley DB installed, only GDBM from LFS. I wonder > what the proper fix is (admitting that I do not do something wrong): > > - Recommend Berkeley DB (only optional right now). > - Add USE_GDBM=yes to Local/Makefile and DBMLIB=-lgdbm > - Comment out the USE_DB=yes and DBMLIB = -ldb stanzas > in OS/Makefile-Linux (not this one : it does not work) > > Has anybody some more experience with this? > > Regards > Pierre >
Archlinux has custom makefile for their distro and seem to use gdbm instead of berkeley db, due to licensing issues with bdb itself. https://projects.archlinux.org/svntogit/community.git/tree/trunk/exim.Makefile?h=packages/exim#n1228 USE_GDBM=yes DBMLIB=-lgdbm As you pointed out, you need to comment out db related entries and make modifications for two vars that you guessed correctly. Hope it helps. -- Note: My last name is not Krejzi. -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page