build acx-mac80211-20130909 error
time-river opened this issue · comments
time-river commented
Details:
CC [M] /root/openwrt/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7688/acx-mac80211-20130909/main.o
/root/openwrt/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7688/acx-mac80211-20130909/main.c: In function 'acx_init_ieee80211':
/root/openwrt/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7688/acx-mac80211-20130909/main.c:500:12: error: invalid operands to binary & (have 'long unsigned int[2]' and 'int')
hw->flags &= ~IEEE80211_HW_RX_INCLUDES_FCS;
^
/root/openwrt/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7688/acx-mac80211-20130909/main.c:531:12: error: invalid operands to binary | (have 'long unsigned int[2]' and 'int')
hw->flags |= IEEE80211_HW_SIGNAL_UNSPEC;
^
/root/openwrt/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7688/acx-mac80211-20130909/main.c: In function 'acx_op_configure_filter':
/root/openwrt/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7688/acx-mac80211-20130909/main.c:951:19: error: 'FIF_PROMISC_IN_BSS' undeclared (first use in this function)
*total_flags &= (FIF_PROMISC_IN_BSS | FIF_ALLMULTI | FIF_FCSFAIL
^
/root/openwrt/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7688/acx-mac80211-20130909/main.c:951:19: note: each undeclared identifier is reported only once for each function it appears in
/root/openwrt/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7688/acx-mac80211-20130909/main.c: In function 'acx_op_hw_scan':
/root/openwrt/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7688/acx-mac80211-20130909/main.c:1089:3: warning: passing argument 2 of 'ieee80211_probereq_get' from incompatible pointer type [enabled by default]
req->ie_len);
^
In file included from /root/openwrt/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7688/acx-mac80211-20130909/main.c:22:0:
/root/openwrt/openwrt_widora/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include/mac80211/net/mac80211.h:4284:17: note: expected 'const u8 *' but argument is of type 'struct ieee80211_vif *'
struct sk_buff *ieee80211_probereq_get(struct ieee80211_hw *hw,
^
scripts/Makefile.build:257: recipe for target '/root/openwrt/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7688/acx-mac80211-20130909/main.o' failed
make[5]: *** [/root/openwrt/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7688/acx-mac80211-20130909/main.o] Error 1
Makefile:1381: recipe for target '_module_/root/openwrt/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7688/acx-mac80211-20130909' failed
make[4]: *** [_module_/root/openwrt/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7688/acx-mac80211-20130909] Error 2
make[4]: Leaving directory '/root/openwrt/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7688/linux-3.18.29'
Makefile:251: recipe for target '/root/openwrt/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7688/acx-mac80211-20130909/.built' failed
make[3]: *** [/root/openwrt/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7688/acx-mac80211-20130909/.built] Error 2
make[3]: Leaving directory '/root/openwrt/openwrt_widora/package/kernel/acx-mac80211'
package/Makefile:191: recipe for target 'package/kernel/acx-mac80211/compile' failed
make[2]: *** [package/kernel/acx-mac80211/compile] Error 2
make[2]: Leaving directory '/root/openwrt/openwrt_widora'
package/Makefile:188: recipe for target '/root/openwrt/openwrt_widora/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.package_compile' failed
make[1]: *** [/root/openwrt/openwrt_widora/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory '/root/openwrt/openwrt_widora'
/root/openwrt/openwrt_widora/include/toplevel.mk:181: recipe for target 'world' failed
make: *** [world] Error 2
Reason: upgrade kernel version to 3.18.x
Solution: just use package/kernel/acx-mac80211/ of all contents instead of original.