Subject: building kernel failed.
To: None <>
From: jiwon <>
List: current-users
Date: 05/28/2003 15:51:06
I tried to build kernel after building toolchain like following,
$> kernel=JIWON

but I got errors.
following is related error message.


/usr/src/tools/obj.i386/tools.NetBSD-1.6T-i386/bin/i386--netbsdelf-gcc  -ffr
eestanding  -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-ar
ith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -Wno-uninitia
lized  -Di386 -I.  -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DDEBU
G -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT   -c /usr/src/sys/netsmb/smb_conn.c
cc1: warnings being treated as errors
/usr/src/sys/netsmb/smb_conn.c:341: warning: `smb_co_lockstatus' defined but
not used
*** Error code 1

smb_co_lockstatus is definitely used in the same file (smb_conn.c) in
smb_co_addchild, as a parameter to macro KASSERT, so I have no idea why it
gives me warnings.