From nobody@FreeBSD.org  Wed Dec  1 10:01:54 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id DDD0D106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  1 Dec 2010 10:01:54 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id BFC888FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  1 Dec 2010 10:01:54 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id oB1A1stM098034
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 1 Dec 2010 10:01:54 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id oB1A1ssq098033;
	Wed, 1 Dec 2010 10:01:54 GMT
	(envelope-from nobody)
Message-Id: <201012011001.oB1A1ssq098033@red.freebsd.org>
Date: Wed, 1 Dec 2010 10:01:54 GMT
From: David Demelier <demelier.david@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Kernel fails to build without AH_SUPPORT_AR5416
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         152736
>Category:       kern
>Synopsis:       Kernel fails to build without AH_SUPPORT_AR5416
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    brucec
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 01 10:10:08 UTC 2010
>Closed-Date:    Wed Dec 01 10:18:39 UTC 2010
>Last-Modified:  Wed Dec 01 10:18:39 UTC 2010
>Originator:     David Demelier
>Release:        8.1-RELEASE-p1
>Organization:
>Environment:
FreeBSD Melon.malikania.fr 8.1-RELEASE-p1 FreeBSD 8.1-RELEASE-p1 #0: Sun Nov 28 21:07:08 UTC 2010     root@:/usr/obj/usr/src/sys/Melon  amd64

>Description:
As read here :

http://lists.freebsd.org/pipermail/freebsd-current/2009-May/006417.html

We could compile kernel without AH_SUPPORT_AR5416, but here it still fails to build :

cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99  -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  -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror  /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c -I/usr/src/sys/dev/ath -I/usr/src/sys/dev/ath/ath_hal
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c: In function 'ar5416ProcRxDesc':
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:111: error: 'struct ath_rx_status' has no member named 'rs_flags'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:119: error: 'struct ath_rx_status' has no member named 'rs_rssi_ctl'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:120: error: 'struct ath_rx_status' has no member named 'rs_rssi_ctl'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:121: error: 'struct ath_rx_status' has no member named 'rs_rssi_ctl'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:122: error: 'struct ath_rx_status' has no member named 'rs_rssi_ext'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:123: error: 'struct ath_rx_status' has no member named 'rs_rssi_ext'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:124: error: 'struct ath_rx_status' has no member named 'rs_rssi_ext'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:135: error: 'struct ath_rx_status' has no member named 'rs_isaggr'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:136: error: 'struct ath_rx_status' has no member named 'rs_moreaggr'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:140: error: 'struct ath_rx_status' has no member named 'rs_flags'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:142: error: 'struct ath_rx_status' has no member named 'rs_flags'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:145: error: 'struct ath_rx_status' has no member named 'rs_flags'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:147: error: 'struct ath_rx_status' has no member named 'rs_flags'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:149: error: 'struct ath_rx_status' has no member named 'rs_flags'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:151: error: 'struct ath_rx_status' has no member named 'rs_flags'
*** Error code 1

Stop in /usr/obj/usr/src/sys/Melon.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src
>How-To-Repeat:

>Fix:
Include AH_SUPPORT_AR5416 by default.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: brucec 
State-Changed-When: Wed Dec 1 10:16:30 UTC 2010 
State-Changed-Why:  



Responsible-Changed-From-To: freebsd-bugs->brucec 
Responsible-Changed-By: brucec 
Responsible-Changed-When: Wed Dec 1 10:16:30 UTC 2010 
Responsible-Changed-Why:  
Track. 

As documented in ath(4) "options AH_SUPPORT_AR5416" is required if you want to 
build the ath(4) driver even if you don't have AR5416 hardware. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=152736 
>Unformatted:
