Re: problem when trying to build metamail package with unstable
>cc -c -I../. -g -I. metamail.c
>In file included from metamail.c:47:
>/usr/include/signal.h:117: parse error before `-'
>/usr/include/signal.h:117: parse error before `int'
>make: *** [metamail.o] Error 1
>make: Leaving directory
>make: *** [basics] Error 2
>I would have fixed that when a '-' would have been in line 117 of signal.h,
>but there is none. Any suggestions?
Try 'cc -E -I.. metamail.c' to look at what the preprocessor outputs:
extern int kill(-( __pid_t __pgrp ), ( int __sig )) ;
'cc -E -dD -I.. metamail.c' (show macro definitions) has the
illuminating line in ../config.h:
#define killpg(a, b) kill(-(a), (b))
... which triggers on a definition, not just on a call. D'oh.
config.h seems to think Linux is SysV (well, it sort of is ...), and
redefines loads of stuff Linux already has. Getting rid of that causes
more problems, though (starting with parameter types to signal() being
wrong); let us know how far you get.
Colin Watson [firstname.lastname@example.org]