DB_PRIVATE

Matthias Andree matthias.andree at gmx.de
Sat Dec 4 21:02:24 CET 2004


James Burns <burns at attitudejim.com> writes:

> Fedora 2
> I built DB-4.3.21.
>
> ../dist/configure
> make
> make install
>
> No flags.
> No errors on the build or install.
>
>
> I installed bogofilter from the bogofilter-0.93.2-1.i586.rpm.
> No errors here either.

First of all, this means that it will use Berkeley DB 4.2 no matter what
you do.

> [root at dns1 spam]# uname -a
> Linux dns1.attitudejim.com 2.6.9-1.6_FC2 #1 Thu Nov 18 22:02:27 EST 2004 
> i586 i586 i386 GNU/Linux

While I cannot explain this (and I'm not sure if Fedora or Red Hat guys
have actually read or patched their db4 source code), it appears as
though your computer wasn't supporting NPTL (native POSIX threading
library).

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=91933 gives that as
reason why db4 doesn't work on some kernel/processor combinations.
Fedora and Red Hat insist on using POSIX-threads and -mutexes.

Bug #91933 appears to assume there's a run-time switch, although I don't
see where this would be in the Berkeley DB source code.

Anyways, as you've already got BerkeleyDB 4.3 installed, the solution
is: remove the binary bogofilter package, i. e. rpm -e bogofilter, then
download the bogofilter source from
http://prdownloads.sourceforge.net/bogofilter/bogofilter-0.93.2.tar.bz2?download

unpack it then recompile and install bogofilter like this:

(as unprivileged user)
./configure --with-libdb-prefix=/usr/local/BerkeleyDB.4.3
make
make check

(obtain root privileges, sudo, su, or login as root user)
make install-strip || make install

HTH,

-- 
Matthias Andree



More information about the Bogofilter mailing list