Subject: Re: problem building f2c
To: Brad Salai <email@example.com>
From: None <firstname.lastname@example.org>
Date: 07/23/1998 10:35:49
On Thu, 23 Jul 1998, Brad Salai wrote:
> from sources supped Thursday morning, I get:
> cc -c -DSkip_f2c_Undefs -O2 -DNO_ONEXIT signal_.c
> In file included from /usr/include/signal.h:42,
> from signal1.h:6,
> from signal_.c:2:
> /usr/include/sys/signal.h:157: syntax error before `size_t'
> *** Error code 1
On my machine (NetBSD/mac68k 1.3), I must have a different signal.h:
grep size_t /usr/include/sys/signal.h
shows nothing (ie, no 'size_t' to be found in that file).
For what its worth, I have
/* $NetBSD: signal.h,v 1.23 1997/05/14 16:12:15 christos Exp $ */
and -current has
/* $NetBSD: signal.h,v 1.31 1998/06/25 23:40:59 thorpej Exp $ */
so, I grabbed <sys/signal.h> and <sys/featurelist.h> (-current) and
pointed to those instead and now I get the same message.
dan@dinah-moe (175)-% cc -c -DSkip_f2c_Undefs -O2 -DNO_ONEXIT signal_.c
In file included from signal1.h:6,
signal.h:171: syntax error before `size_t'
The problems is that 'size_t' needs to be defined somewhere. That
somewhere is in <sys/types.h> which is not included.
If you add
at the top of 'signal1.h' in the f2c/libF77 directory, f2c will compile
correctly. I don't know if the right answer is to add one more patch file
to the f2c package for -current support or if the right answer is to add
Any comments from someone who is qualified to answer this one (I'm
btw, what sort of machine is this on Brad? Not that it should matter, but
I'm just curious.