Re: Problems with ath_hal-20070428

From: Sam Leffler <sam_at_errno.com>
Date: Sun, 15 Jul 2007 17:20:13 -0700
Sven Braun wrote:
> Hello everybody,
> 
> I downloaded ath_hal-20070428.tgz by Sam Leffler and hoped it will
> work with my Atheros AR5008 in my Macbook, 2nd generation.
> 
> I went ahead in the following way:
> 
> fetch http://people.freebsd.org/~sam/ath_hal-20070428.tgz
> tar xfz ath_hal-20070428.tgz
> cd ath_hal-20070428
> cp -R *.* /usr/src/sys/contrib/dev/ath/
> cd /usr/src
> make buildkernel
> 
> and got the following error:
> 
> rm -f hack.c
> MAKE=make sh /usr/src/sys/conf/newvers.sh MACBOOK
> cc -c -O -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs
> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline
> -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc
> -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL
> -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common
> -finline-limit=8000 --param inline-unit-growth=100 --param
> large-function-growth=1000 -mno-align-long-strings
> -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2
> -mno-sse3 -ffreestanding -Werror  vers.c
> linking kernel.debug
> if_ath.o(.text+0x6b98): In function 'ath_getchannels':
> /usr/src/sys/dev/ath/if_ath.c:5490: undefined reference to 
> 'ath_hal_isgsmsku'
> *** Error code 1
> 
> Stop in /usr/obj/usr/src/sys/MACBOOK.
> *** Error code 1
> 
> Stop in /usr/src.
> *** Error code 1
> 
> Stop in /usr/src.
> 
> 
> 
> I tried to fix the problem, but my C programming skills are
> unfortunately low, so  I ask you:
> Do you know how to fix the problem?

rm -rf /usr/obj/.../compile/MACBOOK

and try doing make buildkernel again.  if_ath.c needs to get the correct 
value of HAL_ABI_VERSION from sys/contrib/ah.h or you can get symptoms 
like this.

	Sam
Received on Sun Jul 15 2007 - 22:17:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:14 UTC