From owner-freebsd-stable@FreeBSD.ORG Wed Aug 25 12:27:47 2010 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB480106566C; Wed, 25 Aug 2010 12:27:46 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id AB4A98FC22; Wed, 25 Aug 2010 12:27:46 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 5299D46B81; Wed, 25 Aug 2010 08:27:46 -0400 (EDT) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 8CE4C8A04F; Wed, 25 Aug 2010 08:27:45 -0400 (EDT) From: John Baldwin To: freebsd-stable@freebsd.org Date: Wed, 25 Aug 2010 08:27:13 -0400 User-Agent: KMail/1.13.5 (FreeBSD/7.3-CBSD-20100819; KDE/4.4.5; amd64; ; ) References: <4C749E8C.1020506@aldan.algebra.com> In-Reply-To: <4C749E8C.1020506@aldan.algebra.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201008250827.13482.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Wed, 25 Aug 2010 08:27:45 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: stable@freebsd.org, sam@freebsd.org, "Mikhail T." Subject: Re: Can't compile ath(4) into kernel X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2010 12:27:47 -0000 On Wednesday, August 25, 2010 12:39:40 am Mikhail T. wrote: > My laptop's kernel config file reads: > > device wlan # 802.11 support > device ath > device ath_ar5212 > device ath_rate_onoe > > Config raises no objections and the compilation succeeds, but linking > the kernel breaks: > > ... > linking kernel.debug > ah.o(.text+0x218): In function `ath_hal_rfprobe': > /home/mi/src/sys/dev/ath/ath_hal/ah.c:142: undefined reference to > `__start_set_ah_rfs' > ah.o(.text+0x21d):/home/mi/src/sys/dev/ath/ath_hal/ah.c:142: > undefined reference to `__stop_set_ah_rfs' > ah.o(.text+0x236):/home/mi/src/sys/dev/ath/ath_hal/ah.c:142: > undefined reference to `__stop_set_ah_rfs' > *** Error code 1 > > What could this be? All modules (including ath_hal) build correctly... > Thank you! You are missing: options AH_SUPPORT_AR5416 # enable AR5416 tx/rx descriptors For the 6.x -> 8 upgrade you are doing, I strongly suggest looking at the changes to GENERIC across your upgrade. It would save you several e-mails to the mailing list. -- John Baldwin