Subject: TCP_SIGNATURE on sparc64?
To: NetBSD Current Users <current-users@netbsd.org>
From: Peter Eisch <peter@boku.net>
List: current-users
Date: 07/29/2004 14:31:59
I need to get a kernel that I can use zebra for BGP with MD5 tcp checksums
running.  Does anyone have a kernel rev that works with zebra/quagga?

Adding:

  option  TCP_SIGNATURE

In my kernel which trips up here:

===> build.sh command: /builds/current/src/build.sh -u -U -x -M
/builds/current/sparc64/obj -m sparc64 -D /builds/current/sparc64/dest -R
/builds/current/sparc64/release -N 1 -T /builds/current/sparc64/tools
kernel=PETER-FW
===> build.sh started: Thu Jul 29 14:20:34 CDT 2004
===> MACHINE:          sparc64
===> MACHINE_ARCH:     sparc64
===> TOOLDIR path:     /builds/current/sparc64/tools
===> DESTDIR path:     /builds/current/sparc64/dest
===> RELEASEDIR path:  /builds/current/sparc64/release
===> makewrapper:      /builds/current/sparc64/tools/bin/nbmake-sparc64
===> Updated /builds/current/sparc64/tools/bin/nbmake-sparc64
===> Building kernel without building new tools
===> Building kernel:  PETER-FW
===> Build directory:
/builds/current/sparc64/obj/builds/current/src/sys/arch/sparc64/compile/PETE
R-FW
Build directory is 
/builds/current/sparc64/obj/builds/current/src/sys/arch/sparc64/compile/PETE
R-FW
Don't forget to run "make depend"
depending the kern library objects
depending the compat library objects
[...MUNCH...]
    compile  PETER-FW/locore.o
    compile  PETER-FW/param.o
    compile  PETER-FW/tcp_input.o
/builds/current/src/sys/netinet/tcp_input.c: In function
`tcp_signature_getsav':
/builds/current/src/sys/netinet/tcp_input.c:2610: warning: implicit
declaration of function `key_allocsa'
/builds/current/src/sys/netinet/tcp_input.c:2612: warning: assignment makes
pointer from integer without a cast
/builds/current/src/sys/netinet/tcp_input.c:2616: warning: assignment makes
pointer from integer without a cast
/builds/current/src/sys/netinet/tcp_input.c: In function `tcp_signature':
/builds/current/src/sys/netinet/tcp_input.c:2685: warning: implicit
declaration of function `_KEYBUF'
/builds/current/src/sys/netinet/tcp_input.c:2685: error: dereferencing
pointer to incomplete type
/builds/current/src/sys/netinet/tcp_input.c:2685: warning: implicit
declaration of function `_KEYLEN'
/builds/current/src/sys/netinet/tcp_input.c:2685: error: dereferencing
pointer to incomplete type
/builds/current/src/sys/netinet/tcp_input.c:2685: warning: passing arg 2 of
`MD5Update' makes pointer from integer without a cast
/builds/current/src/sys/netinet/tcp_input.c: In function `tcp_dooptions':
/builds/current/src/sys/netinet/tcp_input.c:2844: warning: implicit
declaration of function `key_freesav'
/builds/current/src/sys/netinet/tcp_input.c:2879: warning: implicit
declaration of function `key_sa_recordxfer'

*** Failed target:  tcp_input.o
*** Failed command: echo ' ' "compile PETER-FW/tcp_input.o"; : echo
/builds/current/sparc64/tools/bin/sparc64--netbsd-gcc -mcmodel=medlow
-mno-fpu -ffreestanding -O2 -Werror -Wall -Wno-main -Wno-format-zero-length
-Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare
-fno-zero-initialized-in-bss -Dsparc64 -D__sparc64__ -D_LP64 -Wa,-Av9a -I.
-I/builds/current/src/sys/arch -I/builds/current/src/sys -nostdinc -DLKM
-DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT -c
/builds/current/src/sys/netinet/tcp_input.c;
/builds/current/sparc64/tools/bin/sparc64--netbsd-gcc -mcmodel=medlow
-mno-fpu -ffreestanding -O2 -Werror -Wall -Wno-main -Wno-format-zero-length
-Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare
-fno-zero-initialized-in-bss -Dsparc64 -D__sparc64__ -D_LP64 -Wa,-Av9a -I.
-I/builds/current/src/sys/arch -I/builds/current/src/sys -nostdinc -DLKM
-DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT -c
/builds/current/src/sys/netinet/tcp_input.c
*** Error code 1

Stop.
nbmake: stopped in 
/builds/current/sparc64/obj/builds/current/src/sys/arch/sparc64/compile/PETE
R-FW

ERROR: Failed to make all in
/builds/current/sparc64/obj/builds/current/src/sys/arch/sparc64/compile/PETE
R-FW
*** BUILD ABORTED ***