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:


after update to kernel 3.8.2
madwifi fail to compile

/home/user/openwrt/trunk/build_dir/target-mips_r2_uClibc- error: expected '=', ',', ';', 'asm' or '__attribute__' before '__devinitdata'
/home/user/openwrt/trunk/build_dir/target-mips_r2_uClibc- error: 'ath_pci_id_table' undeclared here (not in a function)
/home/user/openwrt/trunk/build_dir/target-mips_r2_uClibc- 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-] Error 1
make[6]: *** [/home/user/openwrt/trunk/build_dir/target-mips_r2_uClibc-] Error 2
make[5]: *** [_module_/home/user/openwrt/trunk/build_dir/target-mips_r2_uClibc-] Error 2
make[5]: Leaving directory `/home/user/openwrt/trunk/build_dir/target-mips_r2_uClibc-'
make[4]: *** [modules] Error 2
make[4]: Leaving directory `/home/user/openwrt/trunk/build_dir/target-mips_r2_uClibc-'
make[3]: *** [/home/user/openwrt/trunk/build_dir/target-mips_r2_uClibc-] 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-] 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

edit target/linux/ar71xx/Makefile, and change to:

Add Comment

Modify Ticket

as new .

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

Note: See TracTickets for help on using tickets.