Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jul 2007 17:20:13 -0700
From:      Sam Leffler <sam@errno.com>
To:        Sven Braun <braun.sven@googlemail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Problems with ath_hal-20070428
Message-ID:  <469AB9BD.3060300@errno.com>
In-Reply-To: <bf9eeaf30707150110m5c0bb79fv525f8eeaa4803987@mail.gmail.com>
References:  <bf9eeaf30707150110m5c0bb79fv525f8eeaa4803987@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?469AB9BD.3060300>