Subject: Re: Kernel compilation fails
To: None <current-users@NetBSD.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: current-users
Date: 11/03/2003 08:10:28
Martti Kuparinen wrote:

> 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

I "fixed" this by compiling the userland and trying again to compile
the kernel...

Martti