Subject: Kernels with FAST_IPSEC do not compile.
To: None <current-users@netbsd.org>
From: M.Jessa <lists@yazzy.org>
List: current-users
Date: 12/03/2005 22:03:26
Hi guys.

Seems like the latest changes in the ieee80211 code make it impossible to
compile kernels with options FAST_IPSEC.
This is the error message I get trying to compile the latest sources:

#   compile  WIFIBSD_LIVE_CD/exec_subr.o
/usr/tools/bin/i386--netbsdelf-gcc -ffreestanding -Os -mcpu=i486 -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/usr/src/sys/arch -I/usr/src/sys -nostdinc
-DNMBCLUSTERS=25600 -DTIMER_FREQ=1189200 -DDUMMY_NOPS -DPPPOE_SERVER
-DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c /usr/src/sys/kern/exec_subr.c
#   compile  WIFIBSD_LIVE_CD/init_main.o
/usr/tools/bin/i386--netbsdelf-gcc -ffreestanding -Os -mcpu=i486 -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/usr/src/sys/arch -I/usr/src/sys -nostdinc
-DNMBCLUSTERS=25600 -DTIMER_FREQ=1189200 -DDUMMY_NOPS -DPPPOE_SERVER
-DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c /usr/src/sys/kern/init_main.c
In file included from /usr/src/sys/kern/init_main.c:150:
/usr/src/sys/net80211/ieee80211_netbsd.h:262: error: conflicting types for
`m_getcl'
/usr/src/sys/netipsec/ipsec_osdep.h:129: error: previous declaration of
`m_getcl'

*** Failed target:  init_main.o
*** Failed command: echo '# ' "compile WIFIBSD_LIVE_CD/init_main.o"; echo
/usr/tools/bin/i386--netbsdelf-gcc -ffreestanding -Os -mcpu=i486 -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/usr/src/sys/arch -I/usr/src/sys -nostdinc
-DNMBCLUSTERS="25600" -DTIMER_FREQ="1189200" -DDUMMY_NOPS -DPPPOE_SERVER
-DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c /usr/src/sys/kern/init_main.c;
/usr/tools/bin/i386--netbsdelf-gcc -ffreestanding -Os -mcpu=i486 -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/usr/src/sys/arch -I/usr/src/sys -nostdinc
-DNMBCLUSTERS="25600" -DTIMER_FREQ="1189200" -DDUMMY_NOPS -DPPPOE_SERVER
-DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c /usr/src/sys/kern/init_main.c
*** Error code 1

Stop.
nbmake: stopped in /usr/obj/sys/arch/i386/compile/WIFIBSD_LIVE_CD

ERROR: Failed to make all in /usr/obj/sys/arch/i386/compile/WIFIBSD_LIVE_CD
*** BUILD ABORTED ***


Cheers,
Marcin Jessa.