Compilation problem with bogofilter-0.10.1.3 - tests still fail.
Matthias Andree
matthias.andree at gmx.de
Fri Jan 31 11:53:39 CET 2003
On Thu, 30 Jan 2003, Nick Simicich wrote:
> Fails to compile:
>
> In file included from globals.c:13:
> system.h:73: parse error before `uint32_t'
> system.h:73: warning: data definition has no type or storage class
> Makes the compilation work. Something wrong with the way you arrived at
> that, I think.
The problem is we didn't include sys/types.h before using u_int32_t,
that cannot work.
Please try this patch on the pristine tarball, it should help your
system compile without manual intervention.
If the tests still fail with the patch below, then please run the failed
tests manually like this:
: >typescript
script
cd tests/bogofilter
./t.lexer.mbx -v
./t.robx -v
exit
If you don't have "script", use some other means to redirect the output
of the two tests.
Then tar/gzip the resulting output directory and the typescript file and
tell us where we can pull it (FTP, HTTP) or send it to me and David
privately.
Index: system.h
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/system.h,v
retrieving revision 1.10
diff -u -r1.10 system.h
--- system.h~ 31 Jan 2003 02:36:53 -0000 1.10
+++ system.h 31 Jan 2003 10:40:48 -0000
@@ -26,6 +26,13 @@
# define __bool_true_false_are_defined 1
#endif
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#if HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
+
#if STDC_HEADERS
# include <string.h>
#else
--
Matthias Andree
More information about the Bogofilter
mailing list