libdb / configure problem...

Erik Inge Bolsø knan at mo.himolde.no
Wed Jul 14 12:36:42 EDT 2004


Hello!

On a homemade linux distro, I have a problem configuring bogofilter
0.92.1, related to libdb (db-3.3.11.1).

>From reading config.log, it turns out that anything that links to -ldb
on this system also must link to -lpthread ... But I'm not enough of an
autoconf/automake guru to code the additional test in configure.ac.

Could anyone help me out here?

pasted config.log snippet:

configure:11417: i486-pc-linux-gnu-gcc -o conftest -g -O2  -Wpointer-arith
-ggdb -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wshadow
-Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings
-Waggregate-return -Wmissing-declarations -Wmissing-format-attribute
-Wnested-externs -fno-common -Wchar-subscripts -Wcomment -Wimplicit
-Wsequence-point -Wreturn-type -Wno-system-headers -Wformat   conftest.c
-lm  -ldb >&5
conftest.c:86: warning: function declaration isn't a prototype
/usr/lib/gcc-lib/i486-pc-linux-gnu/3.3.4/../../../libdb.so: undefined
reference to `pthread_condattr_setpshared'
/usr/lib/gcc-lib/i486-pc-linux-gnu/3.3.4/../../../libdb.so: undefined
reference to `pthread_mutexattr_destroy'
/usr/lib/gcc-lib/i486-pc-linux-gnu/3.3.4/../../../libdb.so: undefined
reference to `pthread_mutexattr_setpshared'
/usr/lib/gcc-lib/i486-pc-linux-gnu/3.3.4/../../../libdb.so: undefined
reference to `pthread_mutexattr_init'
/usr/lib/gcc-lib/i486-pc-linux-gnu/3.3.4/../../../libdb.so: undefined
reference to `pthread_mutex_trylock'
collect2: ld returned 1 exit status
configure:11423: $? = 1
configure: failed program was:

--
Erik I. Bolsø | email: <knan at mo.himolde.no>
The UNIX philosophy basically involves giving you enough rope to
hang yourself.  And then a couple of feet more, just to be sure.


More information about the Bogofilter mailing list