Modify

Opened 5 years ago

Last modified 5 years ago

#13135 new defect

ar71xx Fail to build madwifi in kernel 3.8.2

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: Cc:

Description

after update to kernel 3.8.2
madwifi fail to compile

/home/user/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/madwifi-trunk-r3314/ath/if_ath_pci.c:97:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__devinitdata'
/home/user/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/madwifi-trunk-r3314/ath/if_ath_pci.c:379:14: error: 'ath_pci_id_table' undeclared here (not in a function)
/home/user/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/madwifi-trunk-r3314/ath/if_ath_pci.c:375:1: error: '__mod_pci_device_table' aliased to undefined symbol 'ath_pci_id_table'
make[7]: *** [/home/user/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/madwifi-trunk-r3314/ath/if_ath_pci.o] Error 1
make[6]: *** [/home/user/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/madwifi-trunk-r3314/ath] Error 2
make[5]: *** [_module_/home/user/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/madwifi-trunk-r3314] Error 2
make[5]: Leaving directory `/home/user/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.8.2'
make[4]: *** [modules] Error 2
make[4]: Leaving directory `/home/user/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/madwifi-trunk-r3314'
make[3]: *** [/home/user/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/madwifi-trunk-r3314/.built] Error 2
make[3]: Leaving directory `/home/user/openwrt/trunk/feeds/packages/net/madwifi'
make[2]: *** [package/feeds/packages/madwifi/compile] Error 2
make[2]: Leaving directory `/home/user/openwrt/trunk'
make[1]: *** [/home/user/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/user/openwrt/trunk'
make: *** [world] Error 2

If build with IGNORE_ERRORS, the image is not workable and brick the device.

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by anonymous

The preprocessor macro __devinitdata may be the culprit here.

It seems like it is being removed when people are getting rid of the kernel flag CONFIG_HOTPLUG. Is it required?

comment:2 Changed 5 years ago by anonymous

any quick fix?

comment:3 Changed 5 years ago by anonymous

workaround:
edit target/linux/ar71xx/Makefile, and change to:
LINUX_VERSION:=3.7.10

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.