Subject: NetBSD Security Advisory 2004-002 breaks kernel build ?
To: None <tech-security@NetBSD.org>
From: Adrian Portelli <adrianp@stindustries.net>
List: tech-security
Date: 02/19/2004 15:33:07
I followed the instructions in 'NetBSD Security Advisory 2004-002' and 
this is what I got when rebuilding my kernel:

cc  -ffreestanding  -O2 -Werror -Wall -Wno-main -Wno-format-zero-length 
-Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes 
-Wno-uninitialized  -Di386 -I.  -I../../../../arch -I../../../.. 
-nostdinc  -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT   -c 
/usr/src/sys/arch/i386/compile/FOOBAR/../../../../netinet/ip_input.c
cc1: warnings being treated as errors
/usr/src/sys/arch/i386/compile/FOOBAR/../../../../netinet/ip_input.c: In 
function `ip_sysctl':
/usr/src/sys/arch/i386/compile/FOOBAR/../../../../netinet/ip_input.c:1808: 
warning: implicit declaration of function `rt_timer_queue_remove_all'
*** Error code 1

I tried a second CVS update on the files mentioned but this did not get 
anything new.  I've also 'rm -rf /usr/src/sys/arch/i386/compile/FOOBAR' 
and started fresh just in case there was anything in there causing it to 
barf. I'm _assuming_ that the CVS update from 2004-002 is causing this 
as 'netinet' is one of the directories updated.

This is a stock 1.6.1 box on i386 with all security patches applied, up 
to and including 2004-001, 2004-003 and 2004-004.

Anyone else seen this or 'is it just me ?'  :)

BTW: Someone may want to change the 'cd ../../compile/KERNELCONF' 
references in 2004-002 to 'cd ../compile/KERNELCONF' just in case some 
people get confused.

thanks,

adrian.