tdb compile error

Torsten Veller ml-en at veller.net
Mon Nov 24 13:02:31 CET 2003


Hallo,

i have some problems with bogofilter-0.15.9 and tdb support.

i did 

$ ./configure --with-database=tdb
$ make

[...]

if gcc -DHAVE_CONFIG_H -I. -I. -I.  -I../trio -I..   -DBOGOFILTER -g -O2  -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 -ggdb -fno-common -Wchar-subscripts -Wcomment -Wimplicit -Wsequence-point -Wreturn-type -Wfloat-equal -Wpointer-arith -Wno-system-headers -MT strlcat.o -MD -MP -MF ".deps/strlcat.Tpo" \
  -c -o strlcat.o `test -f 'strlcat.c' || echo './'`strlcat.c; \
then mv -f ".deps/strlcat.Tpo" ".deps/strlcat.Po"; \
else rm -f ".deps/strlcat.Tpo"; exit 1; \
fi
gcc -DBOGOFILTER -g -O2  -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 -ggdb -fno-common -Wchar-subscripts -Wcomment -Wimplicit -Wsequence-point -Wreturn-type -Wfloat-equal -Wpointer-arith -Wno-system-headers   -o bogofilter  bogofilter.o main.o method.o graham.o robinson.o fisher.o libbogofilter.a  strlcpy.o strlcat.o /usr/lib/libtdb.so libbf_gsl.a
robinson.o(.text+0x7d3): In function `rob_get_spamicity':
/var/tmp/portage/bogofilter-0.15.9/work/bogofilter-0.15.9/src/robinson.c:305: undefined reference to `log'
robinson.o(.text+0x7f1):/var/tmp/portage/bogofilter-0.15.9/work/bogofilter-0.15.9/src/robinson.c:306: undefined reference to `log'
robinson.o(.text+0x815):/var/tmp/portage/bogofilter-0.15.9/work/bogofilter-0.15.9/src/robinson.c:308: undefined reference to `exp'
robinson.o(.text+0x830):/var/tmp/portage/bogofilter-0.15.9/work/bogofilter-0.15.9/src/robinson.c:309: undefined reference to `exp'
fisher.o(.text+0x50): In function `fis_get_spamicity':
/var/tmp/portage/bogofilter-0.15.9/work/bogofilter-0.15.9/src/fisher.c:126: undefined reference to `log'
fisher.o(.text+0x64):/var/tmp/portage/bogofilter-0.15.9/work/bogofilter-0.15.9/src/fisher.c:131: undefined reference to `log'
fisher.o(.text+0x7f):/var/tmp/portage/bogofilter-0.15.9/work/bogofilter-0.15.9/src/fisher.c:132: undefined reference to `log'
libbogofilter.a(rstats.o)(.text+0x50c): In function `rstats_print_histogram':
/var/tmp/portage/bogofilter-0.15.9/work/bogofilter-0.15.9/src/rstats.c:193: undefined reference to `exp'
libbogofilter.a(rstats.o)(.text+0x52c):/var/tmp/portage/bogofilter-0.15.9/work/bogofilter-0.15.9/src/rstats.c:194: undefined reference to `exp'
libbogofilter.a(rstats.o)(.text+0x58e):/var/tmp/portage/bogofilter-0.15.9/work/bogofilter-0.15.9/src/rstats.c:181: undefined reference to `log'
libbogofilter.a(rstats.o)(.text+0x5aa):/var/tmp/portage/bogofilter-0.15.9/work/bogofilter-0.15.9/src/rstats.c:182: undefined reference to `log'
libbogofilter.a(rstats.o)(.text+0x84f): In function `rstats_print_rtable':
/var/tmp/portage/bogofilter-0.15.9/work/bogofilter-0.15.9/src/rstats.c:270: undefined reference to `log'
libbogofilter.a(rstats.o)(.text+0x863):/var/tmp/portage/bogofilter-0.15.9/work/bogofilter-0.15.9/src/rstats.c:270: undefined reference to `log'
libbf_gsl.a(libbf_gsl_a-gamma.o)(.text+0x23b): In function `lngamma_lanczos':
../gsl/specfunc/gamma.c:719: undefined reference to `log'
libbf_gsl.a(libbf_gsl_a-gamma.o)(.text+0x250):../gsl/specfunc/gamma.c:720: more undefined references to `log' follow
libbf_gsl.a(libbf_gsl_a-gamma.o)(.text+0x89e): In function `gammastar_ser':
../gsl/specfunc/gamma.c:975: undefined reference to `exp'
libbf_gsl.a(libbf_gsl_a-gamma.o)(.text+0xb92): In function `gamma_xgthalf':
../gsl/specfunc/gamma.c:1089: undefined reference to `exp'
libbf_gsl.a(libbf_gsl_a-gamma.o)(.text+0xbdd):../gsl/specfunc/gamma.c:1100: undefined reference to `pow'
libbf_gsl.a(libbf_gsl_a-gamma.o)(.text+0xbf2):../gsl/specfunc/gamma.c:1101: undefined reference to `exp'

[...]

libbf_gsl.a(libbf_gsl_a-erfc.o)(.text+0x37e):../gsl/specfunc/erfc.c:85: undefined reference to `exp'
libbf_gsl.a(libbf_gsl_a-erfc.o)(.text+0x3bf):../gsl/specfunc/erfc.c:271: undefined reference to `exp'
libbf_gsl.a(libbf_gsl_a-erfc.o)(.text+0x5b2): In function `gsl_sf_log_erfc_e':
../gsl/specfunc/erfc.c:94: undefined reference to `log'
libbf_gsl.a(libbf_gsl_a-erfc.o)(.text+0x5e6):../gsl/specfunc/erfc.c:349: undefined reference to `log'
libbf_gsl.a(libbf_gsl_a-erfc.o)(.text+0x694): In function `gsl_sf_erf_Z_e':
../gsl/specfunc/erfc.c:380: undefined reference to `exp'
libbf_gsl.a(libbf_gsl_a-erfc.o)(.text+0x8d7): In function `gsl_sf_hazard_e':
../gsl/gsl_sf_exp.h:153: undefined reference to `exp'
collect2: ld returned 1 exit status
make[3]: *** [bogofilter] Fehler 1
make[3]: Leaving directory `/var/tmp/portage/bogofilter-0.15.9/work/bogofilter-0.15.9/src'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/bogofilter-0.15.9/work/bogofilter-0.15.9/src'
make[1]: *** [all] Fehler 2
make[1]: Leaving directory `/var/tmp/portage/bogofilter-0.15.9/work/bogofilter-0.15.9/src'
make: *** [all-recursive] Fehler 1



There is no gsl installed on my machine:

checking for gsl-config... no
checking for GSL - version >= 1.4... no
checking for gsl-config... (cached) no
checking for GSL - version >= 1.0... no

configure: Using these settings:
configure: CPPFLAGS=
configure:   CFLAGS=-g -O2  -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 -ggdb -fno-common -Wchar-subscripts -Wcomment -Wimplicit -Wsequence-point -Wreturn-type -Wfloat-equal -Wpointer-arith -Wno-system-headers
configure:  LDFLAGS=
configure:     LIBS=
configure:   DB_LIB=/usr/lib/libtdb.so
configure: GSL_LIBS=libbf_gsl.a



Any idea what i can do? (With BerkeleyDB everything compiles fine.)
tdb-1.0.6 is installed.

-- 
.:  Regards   |  Honesty is the best policy,                       :.
.:   Torsten  |    but insanity is a better defense.               :.




More information about the Bogofilter mailing list