Subject: cannot compile current kernel
To: None <>
From: Arto Selonen <>
List: current-users
Date: 01/25/2006 09:49:09

Did not notice anything relevant to this in either UPDATING or 
current-users list archive, so here goes:

Trying to compile a kernel from current sources fails with the following 
linker error (white space edited for this post):

# cd /usr/src
# ./ tools
# ./ -T /usr/obj/tools kernel=/root/BLAH

results in

#   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 -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/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'

I did not add the failed command here for brevity as I suspect it is not 
necessary for fixing this. I'd be happy to provide it if needed
(as well as the kernel config).

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.

Do I need to take some local steps to get the build running, or should I 
wait for a fix in sources? My current sources came from about an hour ago.

 	Arto Selonen
#######======------  --------========########
Everstinkuja 5 B 35                               Don't mind doing it.
FI-02600 Espoo         Don't mind not doing it.
Finland              tel +358 50 560 4826     Don't know anything about it.