failure building static 0.15.9

Allyn Fratkin allyn at fratkin.com
Sat Dec 6 05:23:46 CET 2003


hi bogofilter-dev guys.

i'm having a problem compiling bogofilter 0.15.9 statically
on redhat 9.  i always build static versions of bogofilter for use on
my web host's system where my mail is delivered.  this hasn't
been a problem before (last version i built was 0.14.5.4).
but 0.15.9 is eluding me.

first problem to note is that there has always been an issue with
redhat (8 and 9) that i don't understand: a libdb.so is shipped
but not a libdb.a .  so i've always specifically had to modify the
Makefile to indicate -ldb-4.0 so the linker can find the archive
version of the db lib.

now there's a new --enable-static version of configure.  this problem
isn't fixed like i thought it would be.  so i've finally modified my
system to make a symlink from libdb.a pointing to libdb-4.0.a .
(but i still think this is a bug in configure).

unfortunately the compile still fails with the following errors:

gcc -DBOGOFILTER -g -O2  -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 -ggdb -fno-common -Wchar-subscripts -Wcomment -Wimplicit -Wsequence-point -Wreturn-type -Wfloat-equal -Wpointer-arith -Wno-system-headers   -o bogofilter_static -static bogofilter.o main.o method.o graham.o robinson.o fisher.o libbogofilter.a  strlcpy.o strlcat.o -ldb libbf_gsl.a -lm
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libdb.a(mut_pthread.o)(.text+0x83): In function `__db_pthread_mutex_init':
: undefined reference to `pthread_mutexattr_destroy'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libdb.a(mut_pthread.o)(.text+0xb4): In function `__db_pthread_mutex_init':
: undefined reference to `pthread_condattr_destroy'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libdb.a(mut_pthread.o)(.text+0xeb): In function `__db_pthread_mutex_init':
: undefined reference to `pthread_cond_init'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libdb.a(mut_pthread.o)(.text+0xfa): In function `__db_pthread_mutex_init':
: undefined reference to `pthread_condattr_init'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libdb.a(mut_pthread.o)(.text+0x113): In function `__db_pthread_mutex_init':
: undefined reference to `pthread_condattr_setpshared'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libdb.a(mut_pthread.o)(.text+0x128): In function `__db_pthread_mutex_init':
: undefined reference to `pthread_mutex_init'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libdb.a(mut_pthread.o)(.text+0x13a): In function `__db_pthread_mutex_init':
: undefined reference to `pthread_mutexattr_init'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libdb.a(mut_pthread.o)(.text+0x154): In function `__db_pthread_mutex_init':
: undefined reference to `pthread_mutexattr_setpshared'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libdb.a(mut_pthread.o)(.text+0x1b4): In function `__db_pthread_mutex_lock':
: undefined reference to `pthread_mutex_trylock'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libdb.a(mut_pthread.o)(.text+0x1c7): In function `__db_pthread_mutex_lock':
: undefined reference to `pthread_mutex_lock'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libdb.a(mut_pthread.o)(.text+0x1f8): In function `__db_pthread_mutex_lock':
: undefined reference to `pthread_cond_wait'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libdb.a(mut_pthread.o)(.text+0x22d): In function `__db_pthread_mutex_lock':
: undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libdb.a(mut_pthread.o)(.text+0x2be): In function `__db_pthread_mutex_unlock':
: undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libdb.a(mut_pthread.o)(.text+0x2e0): In function `__db_pthread_mutex_unlock':
: undefined reference to `pthread_mutex_lock'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libdb.a(mut_pthread.o)(.text+0x2f6): In function `__db_pthread_mutex_unlock':
: undefined reference to `pthread_cond_signal'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libdb.a(mut_pthread.o)(.text+0x307): In function `__db_pthread_mutex_unlock':
: undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libdb.a(mut_pthread.o)(.text+0x336): In function `__db_pthread_mutex_destroy':
: undefined reference to `pthread_mutex_destroy'
collect2: ld returned 1 exit status

any ideas?  thanks.
-- 
Allyn Fratkin             allyn at fratkin.com
Escondido, CA             http://www.fratkin.com/






More information about the bogofilter-dev mailing list