Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #2436 (new defect)

Opened 11 years ago

Last modified 11 years ago

build error on gentoo x86_64, gcc-4.4.4, kernel: 2.6.34

Reported by: trog@swmud.pl Assigned to:
Priority: critical Milestone:
Component: madwifi: other Version: trunk
Keywords: build failed Cc:
Patch is attached: 0 Pending: 0

Description

> make
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.34-gentoo-r12/build SUBDIRS=/root/Desktop/madwifi modules
make[1]: Entering directory `/usr/src/linux-2.6.34-gentoo-r12'
  CC [M]  /root/Desktop/madwifi/ath/if_ath.o
  CC [M]  /root/Desktop/madwifi/ath/if_ath_radar.o
  CC [M]  /root/Desktop/madwifi/ath/if_ath_hal_extensions.o
  CC [M]  /root/Desktop/madwifi/ath/if_ath_pci.o
  LD [M]  /root/Desktop/madwifi/ath/ath_pci.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ah.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ah_eeprom_v1.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ah_eeprom_v14.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ah_eeprom_v3.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ah_os.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ah_regdomain.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5210/ar5210_attach.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5210/ar5210_beacon.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5210/ar5210_interrupts.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5210/ar5210_keycache.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5210/ar5210_misc.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5210/ar5210_phy.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5210/ar5210_power.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5210/ar5210_recv.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5210/ar5210_reset.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5210/ar5210_xmit.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5211/ar5211_attach.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5211/ar5211_beacon.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5211/ar5211_interrupts.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5211/ar5211_keycache.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5211/ar5211_misc.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5211/ar5211_phy.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5211/ar5211_power.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5211/ar5211_recv.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5211/ar5211_reset.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5211/ar5211_xmit.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5212/ar2316.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5212/ar2317.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5212/ar2413.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5212/ar2425.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5212/ar5111.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5212/ar5112.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5212/ar5212_ani.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5212/ar5212_attach.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5212/ar5212_beacon.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5212/ar5212_eeprom.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5212/ar5212_gpio.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5212/ar5212_interrupts.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5212/ar5212_keycache.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5212/ar5212_misc.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5212/ar5212_phy.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5212/ar5212_power.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5212/ar5212_recv.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5212/ar5212_reset.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5212/ar5212_rfgain.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5212/ar5212_xmit.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5212/ar5413.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5416/ar2133.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5416/ar5416_ani.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5416/ar5416_attach.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5416/ar5416_beacon.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5416/ar5416_cal.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5416/ar5416_cal_adcdc.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5416/ar5416_cal_adcgain.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5416/ar5416_cal_iq.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5416/ar5416_eeprom.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5416/ar5416_gpio.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5416/ar5416_interrupts.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5416/ar5416_keycache.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5416/ar5416_misc.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5416/ar5416_phy.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5416/ar5416_power.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5416/ar5416_recv.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5416/ar5416_reset.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5416/ar5416_xmit.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5416/ar9160_attach.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5416/ar9280.o
  CC [M]  /root/Desktop/madwifi/ath_hal/ar5416/ar9280_attach.o
  LD [M]  /root/Desktop/madwifi/ath_hal/ath_hal.o
  CC [M]  /root/Desktop/madwifi/ath_rate/amrr/amrr.o
  LD [M]  /root/Desktop/madwifi/ath_rate/amrr/ath_rate_amrr.o
  CC [M]  /root/Desktop/madwifi/ath_rate/minstrel/minstrel.o
  LD [M]  /root/Desktop/madwifi/ath_rate/minstrel/ath_rate_minstrel.o
  CC [M]  /root/Desktop/madwifi/ath_rate/onoe/onoe.o
  LD [M]  /root/Desktop/madwifi/ath_rate/onoe/ath_rate_onoe.o
  CC [M]  /root/Desktop/madwifi/ath_rate/sample/sample.o
  LD [M]  /root/Desktop/madwifi/ath_rate/sample/ath_rate_sample.o
  CC [M]  /root/Desktop/madwifi/net80211/if_media.o
  CC [M]  /root/Desktop/madwifi/net80211/ieee80211_skb.o
  CC [M]  /root/Desktop/madwifi/net80211/ieee80211.o
  CC [M]  /root/Desktop/madwifi/net80211/ieee80211_beacon.o
  CC [M]  /root/Desktop/madwifi/net80211/ieee80211_crypto.o
  CC [M]  /root/Desktop/madwifi/net80211/ieee80211_crypto_none.o
  CC [M]  /root/Desktop/madwifi/net80211/ieee80211_input.o
  CC [M]  /root/Desktop/madwifi/net80211/ieee80211_node.o
  CC [M]  /root/Desktop/madwifi/net80211/ieee80211_output.o
  CC [M]  /root/Desktop/madwifi/net80211/ieee80211_power.o
  CC [M]  /root/Desktop/madwifi/net80211/ieee80211_proto.o
  CC [M]  /root/Desktop/madwifi/net80211/ieee80211_scan.o
  CC [M]  /root/Desktop/madwifi/net80211/ieee80211_wireless.o
/root/Desktop/madwifi/net80211/ieee80211_wireless.c:5747: error: unknown field 'private' specified in initializer
cc1: warnings being treated as errors
/root/Desktop/madwifi/net80211/ieee80211_wireless.c:5747: error: initialization from incompatible pointer type
/root/Desktop/madwifi/net80211/ieee80211_wireless.c:5748: error: unknown field 'num_private' specified in initializer
/root/Desktop/madwifi/net80211/ieee80211_wireless.c:5748: error: excess elements in struct initializer
/root/Desktop/madwifi/net80211/ieee80211_wireless.c:5748: error: (near initialization for 'ieee80211_iw_handler_def')
/root/Desktop/madwifi/net80211/ieee80211_wireless.c:5749: error: unknown field 'private_args' specified in initializer
/root/Desktop/madwifi/net80211/ieee80211_wireless.c:5749: error: excess elements in struct initializer
/root/Desktop/madwifi/net80211/ieee80211_wireless.c:5749: error: (near initialization for 'ieee80211_iw_handler_def')
/root/Desktop/madwifi/net80211/ieee80211_wireless.c:5750: error: unknown field 'num_private_args' specified in initializer
/root/Desktop/madwifi/net80211/ieee80211_wireless.c:5750: error: excess elements in struct initializer
/root/Desktop/madwifi/net80211/ieee80211_wireless.c:5750: error: (near initialization for 'ieee80211_iw_handler_def')
make[3]: *** [/root/Desktop/madwifi/net80211/ieee80211_wireless.o] Error 1
make[2]: *** [/root/Desktop/madwifi/net80211] Error 2
make[1]: *** [_module_/root/Desktop/madwifi] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.34-gentoo-r12'
make: *** [modules] Error 2
> gcc -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/gcc-4.4.4/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.4 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.4 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.4/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.4/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --without-ppl --without-cloog --enable-nls --without-included-gettext --with-system-zlib --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.4.4/python --enable-checking=release --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=censored --with-pkgversion='Gentoo 4.4.4-r2 p1.2, pie-0.4.5'
Thread model: posix
gcc version 4.4.4 (Gentoo 4.4.4-r2 p1.2, pie-0.4.5) 
> uname -a
Linux deathstar 2.6.34-gentoo-r12 #7 SMP PREEMPT Sat Nov 6 17:05:56 CET 2010 x86_64 Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz GenuineIntel GNU/Linux

This was from svn, but with:

madwifi-ng-0.9.4.4119.20100201.ebuild
madwifi-ng-0.9.4.4133.20100621.ebuild

the result is the same.

Change History

11/07/10 13:39:57 changed by trog@swmud.pl

> egrep -e CONFIG_CFG80211_WEXT -e CONFIG_WIRELESS_EXT .config
CONFIG_WIRELESS_EXT=y
CONFIG_CFG80211_WEXT=y
# CONFIG_WIRELESS_EXT_SYSFS is not set

11/25/10 08:56:41 changed by trog@swmud.pl

SOLVED: I found out that madwifi-ng require not only CONFIG_WIRELESS_EXT, but also CONFIG_WEXT_PRIV (and probably some more options). It's strange though that CONFIG_WEXT_PRIV cannot be explicitly set in the kernel and requires Cisco/Aironed wireless option in menu, in order to implicitly attach CONFIG_WEXT_PRIV.

madwifi team, please check in your makefiles also for: CONFIG_WEXT_PRIV in the kernel conf.