Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Aug 2010 08:27:13 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-stable@freebsd.org
Cc:        stable@freebsd.org, sam@freebsd.org, "Mikhail T." <mi+thunw@aldan.algebra.com>
Subject:   Re: Can't compile ath(4) into kernel
Message-ID:  <201008250827.13482.jhb@freebsd.org>
In-Reply-To: <4C749E8C.1020506@aldan.algebra.com>
References:  <4C749E8C.1020506@aldan.algebra.com>

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



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