Subject: cannot compile current kernel
To: None <current-users@netbsd.org>
From: Arto Selonen <arto@selonen.org>
List: current-users
Date: 01/25/2006 09:49:09
Hi!

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
# ./build.sh tools
# ./build.sh -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/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'

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. http://mail-index.netbsd.org/source-changes/2006/01/21/0000.html

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 
anoncvs2.us.NetBSD.org about an hour ago.


Thanks,
 	Arto Selonen
-- 
#######======------  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.