Date: Wed, 26 Mar 2008 19:56:43 -0700 (PDT) From: Derek Kulinski <takeda@takeda.tk> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/122145: error while compiling with device ath_rate_amrr Message-ID: <200803270256.m2R2uhrh066782@chinatsu.takeda.tk> Resent-Message-ID: <200803270300.m2R3036a078218@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803270256.m2R2uhrh066782>