Compiling problems

David Relson relson at osagesoftware.com
Sun Aug 22 18:53:13 CEST 2004


On Sun, 22 Aug 2004 19:35:45 +0300
Florin Braescu wrote:

> Pe data de Dum 22 Aug 2004 17:27, a-_i scris:
> > Here's the relevant section of config.log:

...[snip]...

> > 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"
> >
> 
>   David, thank you for your email. I have created a symlink like yours
>   in 
> usr/include. That resolved half of the problem.  As i said i use nptl
> enabled glibc. I have even reinstalled db4 with --enable-posixmutexes
> option. The problem have changed now as you can see in the attached
> config.log. I guess a -lpthread must be used in order to pass the
> test, but i can't figure how to do that. 
> 
>   Florin
> 

Florin,

Where is the shared library installed?  configure isn't finding the
shared library:

configure:11452: error:
====================================================================
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.
====================================================================

Rather than using "--with-libdb-prefix=/usr" and symlinks in /usr/...,
use the proper directory in the option.  You've not mentioned where db.h
and libdb-4.so really are.  For example, if you have
/opt/db-4.2.52/include/db.h and /opt/db-4.2.52/lib/libdb-4.so, try
"--with-libdb-prefix=/opt/db-4.2.52"

FWIW, I've got:

-rwxr-xr-x  1 root root  835816 Feb 26 18:58 /usr/lib/libdb-4.1.so*
lrwxrwxrwx  1 root root      12 Jun  6 13:59 /usr/lib/libdb-4.so ->
libdb-4.1.so*

HTH,

David



More information about the Bogofilter mailing list