./configure problem on FreeBSD
Matthias Andree
matthias.andree at gmx.de
Thu Mar 6 12:13:11 CET 2003
On Tue, 04 Mar 2003, Terry Todd wrote:
> I have an older FreeBSD 3.2 system I am trying to get bogofilter to run on.
>
> I installed Berkeley DB 4.1.25 without any problems.
>
> bogofilter-0.11.1 configure runs fine until......
>
> $ ./configure --with-db=/usr/local/BerkeleyDB.4.1
> ..
> checking size of unsigned short... configure: error: cannot compute sizeof (unsigned short), 77
> See `config.log' for more details.
I have received Terry's config.log in private mail, excerpt:
[...]
configure:5752: checking size of unsigned short
configure:6027: 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 -ggdb -fno-common -Wchar-subscripts -Wcomment -Wimplicit -Wreturn-type -I/usr/local/BerkeleyDB.4.1/include -L/usr/local/BerkeleyDB.4.1/lib conftest.c -lm -ldb >&5
[...]
configure:6030: $? = 0
configure:6032: ./conftest
/usr/libexec/ld-elf.so.1: Shared object "libdb-4.1.so" not found
configure:6035: $? = 1
configure: program exited with status 1
[...]
I have been able to reproduce this on FreeBSD 4.8, and the fix on
FreeBSD 4.8 was to run (as root): ldconfig -R /usr/local/BerkeleyDB.4.1/lib
and then to retry the configure.
FreeBSD 3.2 might need ldconfig -elf -R /usr/local/BerkeleyDB.4.1/lib
or ldconfig -aout -R /usr/local/BerkeleyDB.4.1/lib -- I don't know.
Try running "file /usr/local/BerkeleyDB.4.1/lib/libdb-4.1.so" to figure,
it should tell you what type the library is (aout or ELF) -- you should
pass the corresponding option to ldconfig in case /etc/objformat and the
format of libdb-4.1.so do not match.
However, this is a problem with the BerkeleyDB install, and not a
bogofilter problem as far as I can tell.
--
Matthias Andree
More information about the Bogofilter
mailing list