paths.h

John Poltorak jp at warpix.org
Sat Nov 22 21:46:02 CET 2003


On Sat, Nov 22, 2003 at 03:24:39PM -0500, David Relson wrote:
> > > 
> > > As a detail, <syslog.h> doesn't really need to be included from
> > > "common.h".  Try the attached patch (which takes it out) and let me
> > > know if it helps.  
> > 
> > The changes don't seem appropriate. You must be using more recent
> > source code than me.
> > 
> > I manually changed common.h and the previous error disappeared, so the
> > 
> > paths.h problems seems to be sorted.
> > 
> > 
> > Now I get as far as:-

> > u:\posix2\include\mathx.h:222: warning:  ediv singularity error
> > source='error.c' object='error.o' libtool=no \
> > depfile='.deps/error.Po' tmpdepfile='.deps/error.TPo' \
> > depmode=gcc u:/bin/sh ../depcomp \
> > gcc -DHAVE_CONFIG_H -I. -I. -I.  -I../trio -I..   -DBOGOFILTER -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 -c `test -f 'error.c' || echo './'`error.c error.c: In
> > function `print_error': error.c:47: warning: implicit declaration of
> > function `syslog' error.c:47: `LOG_INFO' undeclared (first use in this
> > function) error.c:47: (Each undeclared identifier is reported only
> > once error.c:47: for each function it appears in.)
> > make[2]: *** [error.o] Error 1
> > make[2]: Leaving directory `U:/unixos2/workdir/bogofilter-0.15.8/src'
> > make[1]: *** [install-recursive] Error 1
> > make[1]: Leaving directory `U:/unixos2/workdir/bogofilter-0.15.8/src'
> > make: *** [install-recursive] Error 1
> > 
> > 
> > I have no idea about what any of this means, and it may well be a
> > problem with Posix/2, but I'll ask here first in case anyone knows...
> > 
> > It could be due to some of the patches provided not being made since I
> > 
> > only changed common.h.
> > 
> > 
> > > David
> 
> John,
> 
> LOG_INFO is a call for syslog.h.  I'd suggest getting 0.15.8 (if you've
> got older) and working from there...

I am using 0.15.8, but your patches seemed to be for something newer since 
they would not apply.

my copy of error.c has:-

#include <stdarg.h>
#include <unistd.h>
#include <ctype.h>

#include "error.h"



I'll add <syslog.h> and see if the error disappears...

 
> I have no idea what "ediv singularity error" means.

OK, I'll forward that msg to the Posix/2 maintainers. It might not be 
particularly significant.

 
> David


-- 
John






More information about the Bogofilter mailing list