Ticket #1434 (closed defect: invalid)

Opened 3 years ago

Last modified 3 years ago

Compilation failures kernel 2.6.22

Reported by: mingus@orcon.net.nz Assigned to:
Priority: major Milestone:
Component: madwifi: other Version: v0.9.3
Keywords: Cc:
Patch is attached: 0 Pending:

Description

When trying to compile MadWifi against kernel 2.6.22, I get the following error:

zaphod:/usr/src/modules/madwifi# make
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /usr/src/linux SUBDIRS=/usr/src/modules/madwifi modules
make[1]: Entering directory `/usr/src/linux-2.6.22'
  CC [M]  /usr/src/modules/madwifi/ath/if_ath_pci.o
cc1: warnings being treated as errors
/usr/src/modules/madwifi/ath/if_ath_pci.c: In function 'ath_pci_probe':
/usr/src/modules/madwifi/ath/if_ath_pci.c:210: warning: 'deprecated_irq_flag' is deprecated (declared at include/linux/interrupt.h:66)
make[3]: *** [/usr/src/modules/madwifi/ath/if_ath_pci.o] Error 1
make[2]: *** [/usr/src/modules/madwifi/ath] Error 2
make[1]: *** [_module_/usr/src/modules/madwifi] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.22'
make: *** [modules] Error 2

So I replace interrupt.h with one from a previous kernel version (2.6.18), and run again. This time another error:

zaphod:/usr/src/modules/madwifi# make
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /usr/src/linux SUBDIRS=/usr/src/modules/madwifi modules
make[1]: Entering directory `/usr/src/linux-2.6.22'
  CC [M]  /usr/src/modules/madwifi/ath/if_ath_pci.o
cc1: warnings being treated as errors
/usr/src/modules/madwifi/ath/if_ath_pci.c: In function 'ath_pci_probe':
/usr/src/modules/madwifi/ath/if_ath_pci.c:210: warning: passing argument 2 of 'request_irq' from incompatible pointer type
make[3]: *** [/usr/src/modules/madwifi/ath/if_ath_pci.o] Error 1
make[2]: *** [/usr/src/modules/madwifi/ath] Error 2
make[1]: *** [_module_/usr/src/modules/madwifi] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.22'
make: *** [modules] Error 2

At one point I had this error as well, but can't seem to replicate it anymore:

zaphod:/usr/src/modules/madwifi# make
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /usr/src/linux SUBDIRS=/usr/src/modules/madwifi modules
make[1]: Entering directory `/usr/src/linux-2.6.22'
  CC [M]  /usr/src/modules/madwifi/net80211/ieee80211_input.o
/usr/src/modules/madwifi/net80211/ieee80211_input.c: In function 'ieee80211_deliver_data':
/usr/src/modules/madwifi/net80211/ieee80211_input.c:1139: error: 'struct sk_buff' has no member named 'mac'
/usr/src/modules/madwifi/net80211/ieee80211_input.c:1140: error: 'struct sk_buff' has no member named 'nh'
/usr/src/modules/madwifi/net80211/ieee80211_input.c: In function 'forward_mgmt_to_app':
/usr/src/modules/madwifi/net80211/ieee80211_input.c:2262: error: 'struct sk_buff' has no member named 'mac'
/usr/src/modules/madwifi/net80211/ieee80211_input.c: In function 'ieee80211_deliver_l2uf':
/usr/src/modules/madwifi/net80211/ieee80211_input.c:2537: error: 'struct sk_buff' has no member named 'mac'
/usr/src/modules/madwifi/net80211/ieee80211_input.c: In function 'ath_eth_type_trans':
/usr/src/modules/madwifi/net80211/ieee80211_input.c:3716: error: 'struct sk_buff' has no member named 'mac'
/usr/src/modules/madwifi/net80211/ieee80211_input.c:3723: error: 'struct sk_buff' has no member named 'mac'
make[3]: *** [/usr/src/modules/madwifi/net80211/ieee80211_input.o] Error 1
make[2]: *** [/usr/src/modules/madwifi/net80211] Error 2
make[1]: *** [_module_/usr/src/modules/madwifi] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.22'
make: *** [modules] Error 2

Any help would be much appreciated - this is on Debian Lenny.

Attachments

Change History

07/10/07 23:09:45 changed by ed.howland@gmail.com

I had the same problem but resolved it via adding -Wno-error to EXTRA_CFLAGS on line 64 of ath/Makefile. No idea why it thinks -Werror (treat all warnings as errors,) is set here, maybe that is the default for gcc-4.1.1 (fedora core 6).

Now I am getting the third error you reported. Looks like the kernel/include/linux/skbuff.h removed/(changed?) some struct members. But not sure how to fix this. It seems that the .22 tree is trying to fix some byte offsets when compiling a 64 bit kernel. The MAC address wasn't formatted properly when read from the skb->mac struct directly. Now they have created inline functions to access it. (If I read the changelog correctly.)

07/11/07 02:25:42 changed by mentor

Try with trunk. 0.9.3 was never intended to work with kernel versions that didn't exist when it was released.

07/11/07 02:27:45 changed by mentor

  • summary changed from Won't compile against kernel 2.6.22 to Compilation failures kernel 2.6.22.

(follow-up: ↓ 7 ) 07/11/07 10:58:28 changed by mingus@orcon.net.nz

I can confirm that trunk revision 2572 compiles correctly against the 2.6.22 kernel (pending testing of the modules).

Thanks guys,

07/11/07 14:20:44 changed by mentor

  • status changed from new to closed.
  • resolution set to invalid.

np

(follow-up: ↓ 8 ) 07/13/07 18:55:57 changed by anonymous

The new madwifi doesn't let you create a monitor interface in 2.6.22.1 without hitting a kernel panic.

(in reply to: ↑ 4 ; follow-up: ↓ 9 ) 07/14/07 02:07:16 changed by brucembeach@gmail.com

Where or how can I get trunk revision 2572 since I would like to compile it against kernel 2.6.22.x

(in reply to: ↑ 6 ) 07/16/07 08:57:45 changed by mrenzmann

Replying to anonymous:

The new madwifi doesn't let you create a monitor interface in 2.6.22.1 without hitting a kernel panic.

This is unrelated to the original ticket. Please open a new ticket and provide a dump of the oops message that is generated along with the panic. Thanks.

(in reply to: ↑ 7 ; follow-up: ↓ 10 ) 07/16/07 09:00:05 changed by mrenzmann

Replying to brucembeach@gmail.com:

Where or how can I get trunk revision 2572

UserDocs/GettingMadwifi, check sections "Downloading via Subversion" and "Downloading the latest Snapshots".

(in reply to: ↑ 9 ) 07/17/07 02:08:41 changed by brucembeach@gmail.com

Replying to mrenzmann:

Replying to brucembeach@gmail.com:

Where or how can I get trunk revision 2572

UserDocs/GettingMadwifi, check sections "Downloading via Subversion" and "Downloading the latest Snapshots".

Thanks. I got "madwifi-trunk-current" and it built cleanly against linux-2.6.22.1. I can not try it until I get the kernel itself running later on. B.T.W. I am running a D-LINK wd-1330 Wireless G pcmcia adapter which seems to run more or less perfectly. There seems to be some issues with hotplugging but I would suspect that to be a kernel issue


Add/Change #1434 (Compilation failures kernel 2.6.22)