kern/122145: error while compiling with device ath_rate_amrr

Derek Kulinski takeda at takeda.tk
Thu Mar 27 03:00:03 UTC 2008


>Number:         122145
>Category:       kern
>Synopsis:       error while compiling with device ath_rate_amrr
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 27 03:00:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Derek Kulinski
>Release:        FreeBSD 7.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD chinatsu.takeda.tk 7.0-RELEASE FreeBSD 7.0-RELEASE #2: Thu Mar 20 23:18:07 PDT 2008 root at chinatsu.takeda.tk:/usr/obj/usr/src/sys/CHINATSU i386


>Description:
	When kernel has a line:
	device         ath_rate_amrr
	The compilation stops with following error:
	cc -c -O2 -fno-strict-aliasing -pipe -march=pentiumpro -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  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/dev/ath/ath_rate/amrr/amrr.c
	In file included from /usr/src/sys/dev/ath/if_athvar.h:38,
	                 from /usr/src/sys/dev/ath/ath_rate/amrr/amrr.c:79:
	/usr/src/sys/contrib/dev/ath/ah.h:62:22: error: ah_osdep.h: No such file or directory
	*** Error code 1
>How-To-Repeat:
	define "device ath_rate_amrr"
	and build kernel with "make buildkernel"
>Fix:
	Well:
	- modify ah.h so it points to right file
	- create link to ah_osdep.h
	- modify Makefile to add -I/usr/src/sys/dev to the compiler
	- ???
	I think you guys know far better than me how to fix it in a nice way :)

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list