Bug 90701

Summary: 6.0 compile arror with ath driver
Product: Base System Reporter: Hans-Werner Braun <hwb>
Component: i386Assignee: freebsd-i386 (Nobody) <i386>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Hans-Werner Braun 2005-12-20 19:00:10 UTC
              cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -g -nostdinc -I-  -I. -I../../.. -I../../../contrib/dev/acpica -I../../../contrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -I../../../dev/twa -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 -ffreestanding -Werror  vers.c
linking kernel.debug
if_ath.o(.text+0x5cf): In function `ath_attach':
./../../dev/ath/if_ath.c:447: undefined reference to `ath_rate_attach'
if_ath.o(.text+0xac3): In function `ath_detach':
./../../dev/ath/if_ath.c:627: undefined reference to `ath_rate_detach'
if_ath.o(.text+0x35d5): In function `ath_node_alloc':
./../../dev/ath/if_ath.c:2430: undefined reference to `ath_rate_node_init'
if_ath.o(.text+0x3633): In function `ath_node_free':
./../../dev/ath/if_ath.c:2444: undefined reference to `ath_rate_node_cleanup'
if_ath.o(.text+0x4772): In function `ath_tx_start':
./../../dev/ath/if_ath.c:3320: undefined reference to `ath_rate_findrate'
if_ath.o(.text+0x4b1f):../../../dev/ath/if_ath.c:3510: undefined reference to `ath_rate_setupxtxdesc'
if_ath.o(.text+0x504d): In function `ath_tx_processq':
./../../dev/ath/if_ath.c:3679: undefined reference to `ath_rate_tx_complete'
if_ath.o(.text+0x5ab3): In function `ath_newstate':
./../../dev/ath/if_ath.c:4111: undefined reference to `ath_rate_newstate'
if_ath.o(.text+0x5bcb):../../../dev/ath/if_ath.c:4141: undefined reference to `ath_rate_newstate'
if_ath.o(.text+0x5de9): In function `ath_newassoc':
./../../dev/ath/if_ath.c:4259: undefined reference to `ath_rate_newassoc'
*** Error code 1

Stop in /usr/src/sys/i386/compile/KOL.
#kol:/usr/src/sys/i386/compile/KOL 10:53 1:

Fix: 

No idea, looks like some definition(s) are missing.
How-To-Repeat:               make
Comment 1 hwb 2005-12-20 19:09:05 UTC
Sorry, looks like that was false alarm. It compiled after adding

  device ath_rate_onoe

to the config file. Worked without that in 5.4. Sorry for the report.

Hans-Werner
Comment 2 Tilman Keskinoz freebsd_committer freebsd_triage 2005-12-22 17:57:24 UTC
State Changed
From-To: open->closed

problem resolved by adding at_rate