On Thu, Feb 28, 2008 at 12:21:34AM +0200, Alan Barrett wrote:
> On Wed, 27 Feb 2008, Anthony Martinez wrote:
> > I'm cross-building -CURRENT on an Ubuntu Linux host. [...]
> > The failure is as follows:
> > # compile sh/init.o
> > /home/pi/netbsd/tooldir.i386/bin/i386--netbsdelf-gcc -O2 -Wall
> > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare
> > -Wno-traditional -Wreturn-type -Wswitch -Wshadow -Wcast-qual
> > -Wwrite-strings -Wextra -Wno-unused-parameter -std=gnu99 -Werror -DSHELL
> > -I. -I/home/pi/netbsd/src/bin/sh -nostdinc -isystem
> > /home/pi/netbsd/dest.i386/usr/include -c init.c
> > cc1: warnings being treated as errors
> > init.c: In function 'reset':
> > init.c:235: warning: function declaration isn't a prototype
> > init.c:235: warning: declaration of 'initshellproc' shadows a global
> > declaration
> > /home/pi/netbsd/src/bin/sh/init.h:39: warning: shadowed declaration is here
> > init.c:295: error: expected declaration or statement at end of input
>
> init.c is created by mkinit.sh. It appears that init.c is wrong. What
> host shell are you using (the "HOST_SH" line printed by build.sh when it
/bin/sh, which appears to be dash. I'll try again with HOST_SH=bash...
And that seems to have fixed it!
Thanks,
Pi
> starts), and do you see any obvious errors (such as mismatched begin/end
> curly braces or comments) in ${.OBJDIR}/init.c, in or near the reset()
> function which ends just before line 235?
>
> --apb (Alan Barrett)
>
--
<@feem> i had someone claim to me the other day that pi was the longest
irrational number in existence
<@feem> and someone else said no e was
<@feem> and i stared at them
Attachment:
pgp8D10IYfPiY.pgp
Description: PGP signature