Subject: Error compiling rtw and pf
To: NetBSD-current <current-users@NetBSD.org>
From: Marcin Jessa <lists@yazzy.org>
List: current-users
Date: 08/13/2005 00:39:13
I get this error trying to compile current with the rtw driver and pf enabled:

/usr/src/../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 -DTIMER_FREQ=1189200 -DDUMMY_NOPS -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/dist/pf -c /usr/src/sys/dev/ic/rtw.c
/usr/src/sys/dev/ic/rtw.c: In function `rtw_wep_decap':
/usr/src/sys/dev/ic/rtw.c:543: error: too few arguments to function
/usr/src/sys/dev/ic/rtw.c: In function `rtw_key_set':
/usr/src/sys/dev/ic/rtw.c:593: warning: assignment from incompatible pointer type
/usr/src/sys/dev/ic/rtw.c: In function `rtw_attach':
/usr/src/sys/dev/ic/rtw.c:4045: error: invalid type argument of `->'

*** Failed target:  rtw.o
*** Failed command: echo '# ' "compile WIFIBSD_LIVE_CD/rtw.o"; echo /usr/src/../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 -DTIMER_FREQ="1189200" -DDUMMY_NOPS -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/dist/pf -c /usr/src/sys/dev/ic/rtw.c; /usr/src/../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 -DTIMER_FREQ="1189200" -DDUMMY_NOPS -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/dist/pf -c /usr/src/sys/de
 v/ic/rtw.c
*** Error code 1

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

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