Date: Fri, 6 Jan 2012 15:13:34 -0800 From: Adrian Chadd <adrian@freebsd.org> To: "O. Hartmann" <ohartman@zedat.fu-berlin.de> Cc: Current FreeBSD <freebsd-current@freebsd.org> Subject: Re: kernel: build fails in most recent sources in ath Message-ID: <CAJ-Vmomka17kQO9_chc4ZGEeRqGgUyHF5QeCZ4xkp_0-dEXnfw@mail.gmail.com> In-Reply-To: <4F077C2D.6040309@zedat.fu-berlin.de> References: <4F077C2D.6040309@zedat.fu-berlin.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, You need to build the system with: options AH_SUPPORT_AR5416 .. even if you're not building _with_ the ath device. This is a byproduct of how the modules are currently built. I'm sorry for introducing this breakage. I'm going to try and fix the driver soon but it's going to require a little more extensive code shuffling and changes to make it "neat" to do. Adrian On 6 January 2012 14:56, O. Hartmann <ohartman@zedat.fu-berlin.de> wrote: > Hello, > I receive this error since I reeled in the most recent sources for FBSD > 10.0-CURRENT/amd64. I build the system with CLANG. > > > > clang -O2 -pipe -O2 -fno-strict-aliasing -pipe -pipe -O3 > -fno-strict-aliasing -march=3Dnative -D_KERNEL -DKLD_MODULE -nostdinc =A0= -I. > -I/usr/src/sys/modules/ath/../../dev/ath > -I/usr/src/sys/modules/ath/../../dev/ath/ath_hal > -DHAVE_KERNEL_OPTION_HEADERS -include > /usr/obj/usr/src/sys/THOR/opt_global.h -I. -I@ -I@/contrib/altq > -fno-common =A0-fno-omit-frame-pointer -I/usr/obj/usr/src/sys/THOR > -mno-aes -mno-avx -mcmodel=3Dkernel -mno-red-zone -mno-mmx -msoft-float > -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector > -std=3Diso9899:1999 -fstack-protector -Wall -Wredundant-decls > -Wnested-externs -Wstrict-prototypes =A0-Wmissing-prototypes > -Wpointer-arith -Winline -Wcast-qual =A0-Wundef -Wno-pointer-sign > -fformat-extensions =A0-Wmissing-include-dirs -fdiagnostics-show-option > -Wno-error-tautological-compare -Wno-error-empty-body > -Wno-error-parentheses-equality =A0-c > /usr/src/sys/modules/ath/../../dev/ath/if_ath_sysctl.c > clang -O2 -pipe -O2 -fno-strict-aliasing -pipe -pipe -O3 > -fno-strict-aliasing -march=3Dnative -D_KERNEL -DKLD_MODULE -nostdinc =A0= -I. > -I/usr/src/sys/modules/ath/../../dev/ath > -I/usr/src/sys/modules/ath/../../dev/ath/ath_hal > -DHAVE_KERNEL_OPTION_HEADERS -include > /usr/obj/usr/src/sys/THOR/opt_global.h -I. -I@ -I@/contrib/altq > -fno-common =A0-fno-omit-frame-pointer -I/usr/obj/usr/src/sys/THOR > -mno-aes -mno-avx -mcmodel=3Dkernel -mno-red-zone -mno-mmx -msoft-float > -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector > -std=3Diso9899:1999 -fstack-protector -Wall -Wredundant-decls > -Wnested-externs -Wstrict-prototypes =A0-Wmissing-prototypes > -Wpointer-arith -Winline -Wcast-qual =A0-Wundef -Wno-pointer-sign > -fformat-extensions =A0-Wmissing-include-dirs -fdiagnostics-show-option > -Wno-error-tautological-compare -Wno-error-empty-body > -Wno-error-parentheses-equality =A0-c > /usr/src/sys/modules/ath/../../dev/ath/if_ath_tx.c > /usr/src/sys/modules/ath/../../dev/ath/if_ath_tx.c:3136:17: error: no > member named 'ts_flags' in 'struct ath_tx_status' > =A0 =A0 =A0 =A0hasba =3D !! (ts.ts_flags & HAL_TX_BA); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0~~ ^ > /usr/src/sys/modules/ath/../../dev/ath/if_ath_tx.c:3139:13: error: no > member named 'ts_ba_low' in 'struct ath_tx_status' > =A0 =A0 =A0 =A0ba[0] =3D ts.ts_ba_low; > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0~~ ^ > /usr/src/sys/modules/ath/../../dev/ath/if_ath_tx.c:3140:13: error: no > member named 'ts_ba_high' in 'struct ath_tx_status' > =A0 =A0 =A0 =A0ba[1] =3D ts.ts_ba_high; > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0~~ ^ > /usr/src/sys/modules/ath/../../dev/ath/if_ath_tx.c:3156:16: error: no > member named 'ts_tid' in 'struct ath_tx_status' > =A0 =A0 =A0 =A0if (tid !=3D ts.ts_tid) { > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ~~ ^ > /usr/src/sys/modules/ath/../../dev/ath/if_ath_tx.c:3158:25: error: no > member named 'ts_tid' in 'struct ath_tx_status' > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0__func__, tid, ts.ts_tid); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ~~ ^ > 5 errors generated. > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmomka17kQO9_chc4ZGEeRqGgUyHF5QeCZ4xkp_0-dEXnfw>