From owner-freebsd-current@FreeBSD.ORG Mon Jul 16 00:17:35 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 87B3616A402 for ; Mon, 16 Jul 2007 00:17:35 +0000 (UTC) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 6087D13C481 for ; Mon, 16 Jul 2007 00:17:35 +0000 (UTC) (envelope-from sam@errno.com) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id l6G0HXk6056597 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 15 Jul 2007 17:17:34 -0700 (PDT) (envelope-from sam@errno.com) Message-ID: <469AB9BD.3060300@errno.com> Date: Sun, 15 Jul 2007 17:20:13 -0700 From: Sam Leffler User-Agent: Thunderbird 2.0.0.0 (X11/20070530) MIME-Version: 1.0 To: Sven Braun References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: Problems with ath_hal-20070428 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jul 2007 00:17:35 -0000 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