Subject: Kernel compilation fails
To: None <current-users@NetBSD.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: current-users
Date: 11/02/2003 14:48:10
Hi!

I can't compile kernel with the latest sources from anoncvs. I haven't 
rebuilt userland yet so e.g. my gcc is still 2.95.3.

ROOT h118:/usr/src> uname -srm
NetBSD 1.6ZE i386
ROOT h118:/usr/src> cvs update -dPA
ROOT h118:/usr/src>
ROOT h118:/usr/src> cd sys/arch/i386/conf/
ROOT h118:/usr/src/sys/arch/i386/conf> config GENERIC
Build directory is ../compile/GENERIC
Don't forget to run "make depend"
ROOT h118:/usr/src/sys/arch/i386/conf> cd ../compile/GENERIC
ROOT h118:/usr/src/sys/arch/i386/compile/GENERIC> make dependall install
[...]
cc      -ffreestanding  -O2 -Werror -Wall -Wno-main 
-Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes 
-Wstrict-prototypes -Wno-sign-compare  -Di386 -I.  -I../../../../arch 
-I../../../.. -nostdinc -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT   -c 
../../../../netsmb/smb_rq.c
cc1: warnings being treated as errors
../../../../netsmb/smb_rq.c: In function `smb_rq_simple':
../../../../netsmb/smb_rq.c:173: warning: `error' might be used 
uninitialized in this function
*** Error code 1