paths.h

John Poltorak jp at warpix.org
Sat Nov 22 21:05:15 CET 2003


On Sat, Nov 22, 2003 at 02:21:39PM -0500, David Relson wrote:
> John,
> 
> Unfortunately I have neither BSD experience nor a BSD machine.  Matthias
> handles that part of bogofilter development.  I'm sure he'll have an
> answer as soon as he sees your message.
> 
> The path is shown in the gcc command and it looks correct.  I don't
> think modifying C_INCLUDE_PATH will have any effect.
> 
> 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:-



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 'degen.c' || echo './'`degen.c
u:\posix2\include\mathx.h: In function `acosh':
In file included from u:\posix2\include\math.h:412,
                 from degen.c:74:
u:\posix2\include\mathx.h:222: warning:  ediv singularity error
u:\posix2\include\mathx.h:222: warning:  ediv singularity error
u:\posix2\include\mathx.h: In function `atanh':
u:\posix2\include\mathx.h:231: warning:  ediv singularity error
u:\posix2\include\mathx.h:232: warning:  ediv singularity error
u:\posix2\include\mathx.h: In function `acoshl':
u:\posix2\include\mathx.h:259: warning:  ediv singularity error
u:\posix2\include\mathx.h:259: warning:  ediv singularity error
u:\posix2\include\mathx.h: In function `atanhl':
u:\posix2\include\mathx.h:268: warning:  ediv singularity error
u:\posix2\include\mathx.h:269: 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






More information about the Bogofilter mailing list