Subject: Problems with ath
To: NetBSD-current <current-users@NetBSD.org>
From: Marcin Jessa <lists@yazzy.org>
List: current-users
Date: 06/20/2005 22:26:21
Hi.

I've problems compiling a kernel with ath.  I just updated my CURRENT source tree and this is what I get with PF[1] or IPF[2] included into the kernel (kernel does not compile without any firewalling either, the problem seems to be in athhal_osdep.c): 

[1]:
#   compile  WIFIBSD_SMALL/athhal_osdep.o
/usr/src/obj/tooldir.NetBSD-3.99.3-i386/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/../contrib/sys/dev/ic/athhal_osdep.c
/usr/src/contrib/sys/dev/ic/athhal_osdep.c: In function `sysctl_ath_hal':
/usr/src/contrib/sys/dev/ic/athhal_osdep.c:130: warning: passing arg 4 of `sysctl_createv' from incompatible pointer type
/usr/src/contrib/sys/dev/ic/athhal_osdep.c:138: warning: passing arg 4 of `sysctl_createv' from incompatible pointer type
/usr/src/contrib/sys/dev/ic/athhal_osdep.c:147: warning: passing arg 4 of `sysctl_createv' from incompatible pointer type

*** Failed target:  athhal_osdep.o
*** Failed command: echo '# ' "compile WIFIBSD_SMALL/athhal_osdep.o"; echo /usr/src/obj/tooldir.NetBSD-3.99.3-i386/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/../contrib/sys/dev/ic/athhal_osdep.c; /usr/src/obj/tooldir.NetBSD-3.99.3-i386/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 -DM!
 AXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/dist/pf -c /usr/src/sys/../contrib/sys/dev/ic/athhal_osdep.c
*** Error code 1

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

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

[2]:
#   compile  WIFIBSD_SMALL/athcompat.o
/usr/src/obj/tooldir.NetBSD-3.99.3-i386/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/ipf -c /usr/src/sys/dev/ic/athcompat.c
#   compile  WIFIBSD_SMALL/athhal_osdep.o
/usr/src/obj/tooldir.NetBSD-3.99.3-i386/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/ipf -c /usr/src/sys/../contrib/sys/dev/ic/athhal_osdep.c
/usr/src/contrib/sys/dev/ic/athhal_osdep.c: In function `sysctl_ath_hal':
/usr/src/contrib/sys/dev/ic/athhal_osdep.c:130: warning: passing arg 4 of `sysctl_createv' from incompatible pointer type
/usr/src/contrib/sys/dev/ic/athhal_osdep.c:138: warning: passing arg 4 of `sysctl_createv' from incompatible pointer type
/usr/src/contrib/sys/dev/ic/athhal_osdep.c:147: warning: passing arg 4 of `sysctl_createv' from incompatible pointer type

*** Failed target:  athhal_osdep.o
*** Failed command: echo '# ' "compile WIFIBSD_SMALL/athhal_osdep.o"; echo /usr/src/obj/tooldir.NetBSD-3.99.3-i386/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/ipf -c /usr/src/sys/../contrib/sys/dev/ic/athhal_osdep.c; /usr/src/obj/tooldir.NetBSD-3.99.3-i386/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 -D!
 MAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/dist/ipf -c /usr/src/sys/../contrib/sys/dev/ic/athhal_osdep.c
*** Error code 1

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

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