Subject: Re: cannot compile current kernel
To: None <current-users@netbsd.org>
From: Rui Paulo <rpaulo@fnop.net>
List: current-users
Date: 01/25/2006 15:13:07
Kurt Schreiner <ks@ub.uni-mainz.de> writes:

> Hi,
>
> On Wed, Jan 25, 2006 at 09:49:09AM +0200, Arto Selonen wrote:
>> 
>> #   compile  BLAH/vers.o
>> /obj/i386/tools/bin/i386--netbsdelf-gcc   -ffreestanding   -O2 -Werror 
>> -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith 
>> -Wmissing-prototypes -Wstrict-prototypes -Wreturn-type -Wswitch -Wshadow 
>> -Wcast-qual -Wwrite-strings -Wno-sign-compare  -fno-zero-initialized-in-bss 
>> -Di386 -I.
>> -I/cvs/src/sys/arch 
>> -I/cvs/src/sys -nostdinc -DLKM -DDIAGNOSTIC -DDEBUG -DMAXUSERS=64 -D_KERNEL 
>> -D_KERNEL_OPT -I/cvs/src/sys/lib/libkern/../../../common/lib/libc/quad 
>> -I/cvs/src/sys/lib/libkern/../../../common/lib/libc/string 
>> -I/cvs/src/sys/lib/libkern/../../../common/lib/libc/arch/i386/string
>> -I/cvs/src/sys/dist/ipf  -c vers.c
>> #      link  BLAH/netbsd
>> /obj/i386/tools/bin/i386--netbsdelf-ld -T
>> /cvs/src/sys/arch/i386/conf/kern.ldscript -Ttext c0100000
>> -e start -X -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
>> key.o(.text+0x5bf): In function `key_allocsa':
>> : undefined reference to `sa6_recoverscope'
> The same happend here...
>
>> There were no changes to the kernel config, and the build was done on a 
>> 3.99.10 system, where a similar build succeeded with the same kernel 
>> config on Jan 18th, and started failing this Monday (Jan 23rd). My 
>> *guess* is that the recent ipv6 changes may have something to do with 
>> this, ie. http://mail-index.netbsd.org/source-changes/2006/01/21/0000.html
> Yep, compiles for me with the attached patch to src/sys/netkey/key.c
> Maybe I've put some more #ifdef INET6's in than really needed...

Should be fixed now.
Thanks


-- 
Rui Paulo - rpaulo@fnop.net