[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: problem when trying to build metamail package with unstable



On Sun, Dec 31, 2000 at 02:55:23PM +0000, Colin Watson wrote:
> e9625136@stud3.tuwien.ac.at wrote:
> >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[1]: *** [metamail.o] Error 1
> >make[1]: Leaving directory
> >`/home/potato/dist/home/mike/debian/metamail-2.7/metamail'
> >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.
> 
Thanx for that answere, nevertheless I have traced it myself to config.h
and I decided to convert all that stuff over to automake&autoconf so that
problems with mutiple #define .... are not going to happen anymore in
future.

-- 
kind regards,
Michael Moerz



Reply to: