PATCH
Torsten Veller
ml-en at veller.net
Mon Nov 24 23:21:47 CET 2003
* Matthias Andree <matthias.andree at gmx.de>:
> Torsten Veller <ml-en at veller.net> writes:
>
> > If gsl is not installed:
> >
> > grep GSL src/Makefile
> > GSL_CFLAGS =
> > GSL_CONFIG = no
> > GSL_LIBS = libbf_gsl.a
> > [...]
> >
> > So, as David suggested, i added -lm to GSL_LIBS and bogofilter compiles fine.
>
> How about this patch?
Yes, it compiles. But it doesnot seem to be perfect.
I think '-lm' should be in LIBS?!
Have a look...
$ ./configure --with-database=tdb
[...]
configure: Using these settings:
configure: CPPFLAGS=
configure: CFLAGS=-march=athlon-xp -O2 -pipe -fomit-frame-pointer -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
$ make
cd . && /bin/sh /var/tmp/portage/bogofilter-0.15.9/work/bogofilter-0.15.9/missing --run aclocal-1.7
cd . && \
/bin/sh /var/tmp/portage/bogofilter-0.15.9/work/bogofilter-0.15.9/missing --run automake-1.7 --foreign Makefile
cd . && /bin/sh /var/tmp/portage/bogofilter-0.15.9/work/bogofilter-0.15.9/missing --run autoconf
/bin/sh ./config.status --recheck
running /bin/sh ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-database=tdb CC=gcc CFLAGS=-march=athlon-xp -O2 -pipe -fomit-frame-pointer host_alias=i686-pc-linux-gnu --no-create --no-recursion
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
[...]
configure: Using these settings:
configure: CPPFLAGS=
configure: CFLAGS=-march=athlon-xp -O2 -pipe -fomit-frame-pointer -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 -lm
cd . && /bin/sh ./config.status Makefile
config.status: creating Makefile
Making all in trio
make[1]: Entering directory `/var/tmp/portage/bogofilter-0.15.9/work/bogofilter-0.15.9/trio'
cd .. && \
/bin/sh /var/tmp/portage/bogofilter-0.15.9/work/bogofilter-0.15.9/missing --run automake-1.7 --foreign trio/Makefile
cd .. && /bin/sh ./config.status trio/Makefile
config.status: creating trio/Makefile
make[1]: Leaving directory `/var/tmp/portage/bogofilter-0.15.9/work/bogofilter-0.15.9/trio'
make[1]: Entering directory `/var/tmp/portage/bogofilter-0.15.9/work/bogofilter-0.15.9/trio'
[...]
success :)
******************
These are the configure settings --with-database=db
configure: Using these settings:
configure: CPPFLAGS=
configure: CFLAGS=-march=athlon-xp -O2 -pipe -fomit-frame-pointer -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=-lm
configure: DB_LIB=-ldb
configure: GSL_LIBS=libbf_gsl.a
Your patch changes it to:
configure: LDFLAGS=
configure: LIBS=-lm
configure: DB_LIB=-ldb
configure: GSL_LIBS=libbf_gsl.a -lm
cd . && /bin/sh ./config.status Make
--
.: Torsten Veller | Those who can, do; those who can't, simulate. :.
More information about the Bogofilter
mailing list