Compile problem - libdb

Henri van Riel bogo at vanriel.xs4all.nl
Sun Jan 18 12:37:39 CET 2004


Hello all,

I'm new to Bogofilter and I am trying to compile it on an old Linux
system. The system I want to compile it on is SuSE Linux 5.3 or at
least a system that is derived from that. The reason for that is that
I want to implement Bogofilter on the Fli4L router project
(www.fli4l.de for more info). It's a libc5 based system.

I'm trying to compile the stable version (0.15.13.2).

My config:
gcc=2.7.2.1
libdb=1.85.5
libc=5.4.13
kernel=2.2.22

I've started confire with the --with-libdb-prefix=/usr because
libdb.so lives in /usr/lib on my system.

Configure exits when it tries to figure out how to link with libdb.
Here a part from the config.log:

configure:10580: checking how to link with libdb
configure:10969: result: /usr/lib/libdb.so
configure:11019: gcc -o conftest -g -O2  -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-declarations -Wnested-externs -fno-common -Wchar-subscripts -Wcomment -Wimplicit -Wreturn-type   conftest.c -lm  >&5
conftest.c:94: warning: function declaration isn't a prototype
conftest.c: In function `main':
conftest.c:95: warning: implicit declaration of function `db_version'
/tmp/cca032541.o: In function `main':
/usr/src/bogofilter-0.15.13.2/conftest.c:95: undefined reference to `db_version'
configure:11025: $? = 1
configure: failed program was:
| /* confdefs.h.  */

It goes on for a while but the error on my screen is:

====================================================================
Cannot link against libdb? Try 'rm config.cache', then re-configure.
If the problem persists, report it to the bogofilter mailing list.
Remember to include your config.log.
====================================================================

Of course I have tried the suggested workaround but a config.cache
isn't even created so it doesn't work.

I don't now if this is the right list to post this question but can
anybody help me to solve this problem?

I have the complete config.log if you need it, it's a bit big to post
it here.

Many thanks!

-- 
Henri van Riel






More information about the Bogofilter mailing list