Subject: Re: Buid error - port-alpha - gawk
To: Bernd Ernesti <email@example.com>
From: Simon Burge <firstname.lastname@example.org>
Date: 08/16/1999 00:45:19
Bernd Ernesti wrote:
> On Sun Aug 15 03:24:57 1999, Paul Goyette wrote:
> > Got the following from sources supped today (manually rewrapped)
> > cc -O2 -Werror -DHAVE_CONFIG_H -DDEFPATH=\".:/usr/share/awk\"
> > -I/usr/src/gnu/usr.bin/gawk
> > -I/usr/src/gnu/usr.bin/gawk/../../dist/gawk
> > -c /usr/src/gnu/usr.bin/gawk/../../dist/gawk/io.c
> > In file included from /usr/include/machine/param.h:54,
> > from /usr/include/sys/param.h:142,
> > from /usr/src/gnu/usr.bin/gawk/../../dist/gawk/io.c:31:
> > /usr/include/machine/cpu.h:134: syntax error before `.'
> > *** Error code 1
> > Stop.
> > I also did a build on my i386 systems, and did not get this error, so
> > it is probably port specific.
> I fixed it. gawk use an internal symbol 'proc' so it conflicted with
> cpu.h. I therefore renamed 'proc' in gawk to 'awkproc'
Would not a better fix be to put the declaration in machine/cpu.h in
between a "#ifdef _KERNEL"/"#endif" pair? Just including <sys/param.h>
shouldn't cause that namespace problem, should it?