Error checking Berkeley DB versions on Intel Mac

Matthias Andree matthias.andree at gmx.de
Sat Apr 22 12:59:28 CEST 2006


Chris Wilkes <cwilkes-bf at ladro.com> writes:

> I'm trying to compile bogofilter on an MacBookPro (the new Apple laptop
> with the Intel chip) and I'm getting the following error when running
>   ./configure --with-libdb-prefix=/sw/
> (the "fink" program stores its files under /sw/, which is where my
> Berkeley DB 4.3 files are located)
>
>  checking how to link with libdb... -L/sw//lib -ldb
>  checking db and dependent libraries... -L/sw//lib -ldb 
>  checking if a program can be linked against Berkeley DB and run... yes
>  checking if Berkeley DB header and library versions match... no
>  configure: error: db.h header file and db library version do not match.

Is the Berkeley DB 4.3 development (header files and static libraries)
package - if separate - installed?

> conftest.c: In function 'main':
> conftest.c:104: warning: implicit declaration of function 'db_version'
> conftest.c:104: warning: nested extern declaration of 'db_version'
> conftest.c:106: error: 'DB_VERSION_MAJOR' undeclared (first use in this
> function)
> conftest.c:106: error: (Each undeclared identifier is reported only once
> conftest.c:106: error: for each function it appears in.)
> conftest.c:106: error: 'DB_VERSION_MINOR' undeclared (first use in this
> function)
> configure:12786: $? = 1
> configure: program exited with status 1

If it is installed, try adding -I/sw/include/db43 or something like that to
CPPFLAGS, such as:

./configure --with-libdb-prefix=/sw/ CPPFLAGS=-I/sw/include/db43

The exact -I option depends on how the fink package is laid out, which I
do not know (and I don't have time to figure this week-end).

-- 
Matthias Andree



More information about the Bogofilter mailing list