Subject: kern/34287: ipf/ippool enabled kernel fails build.sh build due to use of "version" variable name
To: None <email@example.com, firstname.lastname@example.org,>
From: None <email@example.com>
Date: 08/26/2006 02:25:00
>Synopsis: ipf/ippool enabled kernel fails build.sh build due to use of "version" variable name
>Arrival-Date: Sat Aug 26 02:25:00 +0000 2006
>Originator: Gene ENonymous
NetBSD bloody 4.99.1 NetBSD 4.99.1 (BLOODY) #0: Thu Aug 24 05:38:08 EDT 2006 root@bloody:/usr/obj/sys/arch/i386/compile/BLOODY i386
When I enabled ippool, by adding "options IPFILTER_LOOKUP" to GENERIC,
the kernel build failed because subroutines in the following files:
contained redeclarations of "version" which shadowed a global extern
in one of the system .h files (sorry, I already forgot which...try the
compile and it will tell you).
1) Add options IPFILTER_LOOKUP to the GENERIC kernel config
2) build the kernel with build shell
./build.sh -O ../obj -T ../tools kernel=GENERIC
you will get a build failed message at:
and if you fix that, again at:
My fix was to rename the variable in the subroutines from "version"
to "ipversion" (since this was just an int that held 4 or 6 depending
on which version ip protocol was being processed).
Once I did that the compiles proceeded.
I can verify that pr's 34283, 34284 and 34286 apply to current
as well as 3_Stable