Subject: Re: cannot compile current kernel
To: Kurt Schreiner <ks@ub.uni-mainz.de>
From: Arto Selonen <arto@selonen.org>
List: current-users
Date: 01/25/2006 14:04:58
Hi!
On Wed, 25 Jan 2006, Kurt Schreiner wrote:
> 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...
> 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...
Your patch fixes the problem for me, too. Looking at the patch, I guess I
could work around this by adding INET6 to my kernel config.
Thanks for the support!
Artsi
--
#######======------ http://www.selonen.org/arto/ --------========########
Everstinkuja 5 B 35 Don't mind doing it.
FI-02600 Espoo arto@selonen.org Don't mind not doing it.
Finland tel +358 50 560 4826 Don't know anything about it.