failure building static 0.15.9
Matthias Andree
matthias.andree at gmx.de
Sun Dec 7 20:03:02 CET 2003
On Sun, 07 Dec 2003, Andras Salamon wrote:
> gcc -DBOGOFILTER -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 -Wpointer-arith -o bogofilter_static -static bogofilter.o main.o method.o graham.o robinson.o fisher.o libbogofilter.a strlcpy.o strlcat.o /usr/local/BerkeleyDB.4.0/lib/libdb.so -Wl,-rpath -Wl,/usr/local/BerkeleyDB.4.0/lib libbf_gsl.a -lm
>
> Note the inclusion of
> /usr/local/BerkeleyDB.4.0/lib/libdb.so
> which should probably be
> /usr/local/BerkeleyDB.4.0/lib/libdb.a
...
> Substituting libdb.a for libdb.so in the above invocation of gcc results
> in a correctly linked static binary, which seems to work:
> cp -p src/bogofilter_static src/bogofilter; make check
> gives 31 passes, t.valgrind skipped.
>
> I don't know what needs to change in acinclude.m4 to make this work,
> but the lib-link.m4 code from gettext-0.11.3 seems suspect. I see
> gettext-0.13 was released on 30 November 2003, maybe an upgrade to a
> more recent version would solve the problem.
It's a good idea. I will have a look at the new gettext and see if the
macros have been updated. If they don't, I might want to look at
libtool to figure if it works.
--
Matthias Andree
Encrypt your mail: my GnuPG key ID is 0x052E7D95
More information about the bogofilter-dev
mailing list