Bug 133892

Summary: /usr/src/sys/dev/ath/if_ath.c:3414: error: 'const struct ath_rx_status' has no member named 'rs_flags'
Product: Base System Reporter: goffredo
Component: kernAssignee: freebsd-wireless (Nobody) <wireless>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: avos
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description goffredo 2009-04-21 14:20:00 UTC
I've made csup to the latest version, RELENG_7, "made buildkernel", and happened this:

"
cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -march=athlon64 -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  -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Werror  /usr/src/sys/dev/ath/if_ath.c -I/usr/src/sys/dev/ath
/usr/src/sys/dev/ath/if_ath.c: In function 'ath_rx_tap':
/usr/src/sys/dev/ath/if_ath.c:3414: error: 'const struct ath_rx_status' has no member named 'rs_flags'
/usr/src/sys/dev/ath/if_ath.c:3416: error: 'const struct ath_rx_status' has no member named 'rs_flags'
*** Error code 1

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

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

Stop in /usr/src.
"

Fix: 

May be inserting 'const struct ath_rx_status' has in 'rs_flags'
How-To-Repeat: recompilation repeat this error.
Comment 1 ru freebsd_committer freebsd_triage 2009-04-21 14:49:29 UTC
On Tue, Apr 21, 2009 at 01:11:05PM +0000, João Rocha Braga Filho wrote:
> >Number:         133892
> >Category:       kern
> >Synopsis:       /usr/src/sys/dev/ath/if_ath.c:3414: error: 'const struct ath_rx_status' has no member named 'rs_flags'
> >Confidential:   no
> >Severity:       critical
> >Priority:       medium
> >Responsible:    freebsd-bugs
> >State:          open
> >Quarter:        
> >Keywords:       
> >Date-Required:
> >Class:          sw-bug
> >Submitter-Id:   current-users
> >Arrival-Date:   Tue Apr 21 13:20:00 UTC 2009
> >Closed-Date:
> >Last-Modified:
> >Originator:     João Rocha Braga Filho
> >Release:        FreeBSD 7.1 AMD64
> >Organization:
> Paraty.com
> >Environment:
> FreeBSD super.paraty.com 7.1-STABLE FreeBSD 7.1-STABLE #1: Wed Feb 11 18:11:05 BRST 2009     root@super.paraty.com:/usr/obj/usr/src/sys/SUPER  amd64
> 
> >Description:
> I've made csup to the latest version, RELENG_7, "made buildkernel", and happened this:
> 
> "
> cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -march=athlon64 -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  -mcmodel=kernel -mno-red-zone  -mfpmath= 387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Werror  /usr/src/sys/dev/ath/if_ath.c -I/usr/src/sys/dev/ath
> /usr/src/sys/dev/ath/if_ath.c: In function 'ath_rx_tap':
> /usr/src/sys/dev/ath/if_ath.c:3414: error: 'const struct ath_rx_status' has no member named 'rs_flags'
> /usr/src/sys/dev/ath/if_ath.c:3416: error: 'const struct ath_rx_status' has no member named 'rs_flags'
> *** Error code 1
> 
> Stop in /usr/obj/usr/src/sys/SUPER.
> *** Error code 1
> 
I've reported this to Sam a while ago.  The solution exists, but is not
immediate (not in SVN/CVS yet).  In the mean time you can do:

rm -rf /usr/obj

Then your buildkernel will complete successfully.


Cheers,
-- 
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer
Comment 2 ru freebsd_committer freebsd_triage 2009-04-21 16:36:47 UTC
On Tue, Apr 21, 2009 at 11:41:23AM -0300, Joao Rocha Braga Filho wrote:
> 2009/4/21 Ruslan Ermilov <ru@freebsd.org>:
> > On Tue, Apr 21, 2009 at 01:11:05PM +0000, João Rocha Braga Filho wrote:
> >> >Number:     133892
> >> >Category:    kern
> >> >Synopsis:    /usr/src/sys/dev/ath/if_ath.c:3414: error: 'const struct ath_rx_status' has no member named 'rs_flags'
> >> >Confidential:  no
> >> >Severity:    critical
> >> >Priority:    medium
> >> >Responsible:  freebsd-bugs
> >> >State:     open
> >> >Quarter:
> >> >Keywords:
> >> >Date-Required:
> >> >Class:     sw-bug
> >> >Submitter-Id:  current-users
> >> >Arrival-Date:  Tue Apr 21 13:20:00 UTC 2009
> >> >Closed-Date:
> >> >Last-Modified:
> >> >Originator:   João Rocha Braga Filho
> >> >Release:    FreeBSD 7.1 AMD64
> >> >Organization:
> >> Paraty.com
> >> >Environment:
> >> FreeBSD super.paraty.com 7.1-STABLE FreeBSD 7.1-STABLE #1: Wed Feb 11 18:11:05 BRST 2009   root@super.paraty.com:/usr/obj/usr/src/sys/SUPER amd64
> >>
> >> >Description:
> >> I've made csup to the latest version, RELENG_7, "made buildkernel", and happened this:
> >>
> >> "
> >> cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -march=athlon64 -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 -mcmodel=kernel -mno-red-zone -mfpma th=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Werror /usr/src/sys/dev/ath/if_ath.c -I/usr/src/sys/dev/ath
> >> /usr/src/sys/dev/ath/if_ath.c: In function 'ath_rx_tap':
> >> /usr/src/sys/dev/ath/if_ath.c:3414: error: 'const struct ath_rx_status' has no member named 'rs_flags'
> >> /usr/src/sys/dev/ath/if_ath.c:3416: error: 'const struct ath_rx_status' has no member named 'rs_flags'
> >> *** Error code 1
> >>
> >> Stop in /usr/obj/usr/src/sys/SUPER.
> >> *** Error code 1
> >>
> > I've reported this to Sam a while ago. The solution exists, but is not
> > immediate (not in SVN/CVS yet). In the mean time you can do:
> >
> > rm -rf /usr/obj
> >
> > Then your buildkernel will complete successfully.
> 
> Thanks, but...
> 
> didn't worked.
> 
> I will wait a while.
> 
Then please add "options AH_SUPPORT_AR5416" to your kernel config.
It's actually not optional now, due to above mentioned problem.


Cheers,
-- 
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer
Comment 3 ru freebsd_committer freebsd_triage 2009-04-22 07:05:23 UTC
Responsible Changed
From-To: freebsd-bugs->sam

A friendly reminder that "option AH_SUPPORT_AR5416" should actually 
be made optional.
Comment 4 Adrian Chadd freebsd_committer freebsd_triage 2012-11-29 20:27:35 UTC
Responsible Changed
From-To: sam->adrian

I've been meaning to tidy this code up so the 802.11n stuff becomes 
correctly optional again. 

Thus, I'll nab this, and attack it with a slightly larger stick. 
(Since my 802.11n TX aggregation code makes the driver not compile 
without AH_SUPPORT_AR5416 enabled.)
Comment 5 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:46 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 6 Andriy Voskoboinyk freebsd_committer freebsd_triage 2019-01-25 13:16:17 UTC
The option does nothing since base r318857 (and I'm going to remove it in the near time).