configure insists on libdb-3.1, when I have libdb-4.0

Ian McDonald ian at londontown.com
Wed Oct 30 09:37:54 EST 2002


Hi,

Still trying to install Cyrus. The current problem is the Berkeley db
software: I have compiled and installed the latest version (4.0).
'configure', on the other hand, misses that version and insists on using
3.1;

./configure --with-auth=unix --without-krb --with-com_err=yes --with-dbdir=/
usr
(Excerpt from ./configure output.)
checking for vprintf... (cached) yes
checking for db_create in -ldb-4.0... (cached) no
checking for db_create in -ldb-4... (cached) no
checking for db_create in -ldb4.0... (cached) no
checking for db_create in -ldb4... (cached) no
checking for db_create in -ldb-3.3... (cached) no
checking for db_create in -ldb3.3... (cached) no
checking for db_create in -ldb-3.2... (cached) no
checking for db_create in -ldb3.2... (cached) no
checking for db_create in -ldb-3.1... (cached) yes
checking duplicate db database backend... db3_nosync
checking mboxlist database backend... db3

But I don't even have db3:
[root at breakme cyrus-imapd-2.1.9]# find / -name 'libdb-*' -print 2>/dev/null
/var/spool/postfix/lib/libdb-4.0.so
/usr/lib/libdb-4.0.a
/usr/lib/libdb-4.0.la
/usr/lib/libdb-4.0.so
/usr/local/BerkeleyDB.4.1/lib/libdb-4.1.so
/usr/local/BerkeleyDB.4.1/lib/libdb-4.1.la
/usr/local/BerkeleyDB.4.1/lib/libdb-4.1.a
/usr/local/BerkeleyDB.4.1/lib/libdb-4.so
/home/ian/downloads/db-4.1.24.NC/build_unix/.libs/libdb-4.1.so
/home/ian/downloads/db-4.1.24.NC/build_unix/.libs/libdb-4.1.a
/home/ian/downloads/db-4.1.24.NC/build_unix/.libs/libdb-4.1.lai
/home/ian/downloads/db-4.1.24.NC/build_unix/.libs/libdb-4.1.la
/home/ian/downloads/db-4.1.24.NC/build_unix/libdb-4.1.la
/lib/libdb-4.0.so

As a result, make crashes:
make[1]: Entering directory `/home/ian/downloads/cyrus-imapd-2.1.9/master'
gcc -L/usr/lib -Wl,-rpath,/usr/lib -L/usr/lib -L/usr/local/lib -Wl,-rpath,/u
sr/local/lib  -Wall -g -O2  -o master master.o masterconf.o
cyrusMasterMIB.o -ldl -lssl -lcrypto   -lfl  -ldb-3.1  -lresolv
../et/libcom_err.a
/usr/bin/ld: cannot find -ldb-3.1
collect2: ld returned 1 exit status
make[1]: *** [master] Error 1
make[1]: Leaving directory `/home/ian/downloads/cyrus-imapd-2.1.9/master'
make: *** [all] Error 1

What is the db_create check? What do I need to do to get ./configure to see
DB 4.0?

Thanks,

Ian





More information about the Info-cyrus mailing list