Compiling problems
David Relson
relson at osagesoftware.com
Sun Aug 22 16:27:20 CEST 2004
On Sun, 22 Aug 2004 09:03:31 +0300
Florin Braescu wrote:
> Hi everybody,
>
> I have a system with 2.6.8.1 kernel, gcc 3.4.1, glibc 2.3.3 with
> nptl
> support and db 4.2.52. I have tried to install the new bogofilter
> 0.92.5 version. It fails with a message saying that it cannot link
> with the libdb.
> I attach here the config.log file. Thank you for the support.
>
> Florin
Hi Florin,
Here's the relevant section of config.log:
configure:11372: gcc -o conftest -O3 -mtune=athlon-xp -march=athlon-xp
-funroll-loops -fomit-frame-pointer -mmmx -msse -m3dnow -mfpmath=sse,387
-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 -s
conftest.c -lm >&5
conftest.c:83:16: db.h: No such file or directory
conftest.c:86: warning: function declaration isn't a prototype
conftest.c: In function `main':
conftest.c:87: warning: implicit declaration of function `db_version'
conftest.c:87: warning: nested extern declaration of `db_version'
configure:11378: $? = 1
configure: failed program was:
The significant line is:
conftest.c:83:16: db.h: No such file or directory
Looks like you need to locate db.h on your system and then use
configure's "--with-libdb-prefix=DIR" option.
My workstation has files:
lrwxrwxrwx 1 root root 8 Jun 6 14:07 /usr/include/db.h -> db4/db.h
-r--r--r-- 1 root root 75839 Feb 26 18:54 /usr/include/db4/db.h
Since /usr/include is a standard location known to gcc, ./configure
doesn't need help finding it. I notice that your PATH includes
/opt/lunar and /usr/local. On your system, ./configure may need an
option like "--with-libdb-prefix=/usr/local" or
"--with-libdb-prefix=/opt/lunar/db"
HTH,
David
P.S. I'd recommend subscribing to the bogofilter mailing list (via
message to bogofilter-subscribe at bogofilter.org) so that your posts
aren't held up pending moderator approval.
More information about the Bogofilter
mailing list