Current-Users archive

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

Re: Cross-build failure on i386 in sh/init.c

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  It appears that init.c is wrong.  What
host shell are you using (the "HOST_SH" line printed by when it
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)

Home | Main Index | Thread Index | Old Index