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 #1591 (new defect)

Opened 14 years ago

Last modified 14 years ago

git sources (git-sources-2.6.23-git7) fails to compile madwifi-ng svn

Reported by: anonymous Assigned to:
Priority: major Milestone:
Component: madwifi: other Version: trunk
Keywords: Cc:
Patch is attached: 0 Pending:

Description (Last modified by mrenzmann)

Here is the error when compile attempted with git sources. (This has been tested on git4 as well).

Checking requirements... ok.
Checking kernel configuration... ok.
make -C /usr/src/linux SUBDIRS=/root/trunk modules
make[1]: Entering directory `/usr/src/linux-2.6.23-git7'
  CC [M]  /root/trunk/ath/if_ath.o
  CC [M]  /root/trunk/ath/if_ath_pci.o
/root/trunk/ath/if_ath_pci.c: In function 'ath_pci_probe':
/root/trunk/ath/if_ath_pci.c:205: error: 'struct net_device' has no member named 'owner'
make[3]: *** [/root/trunk/ath/if_ath_pci.o] Error 1
make[2]: *** [/root/trunk/ath] Error 2
make[1]: *** [_module_/root/trunk] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.23-git7'
make: *** [modules] Error 2

I attempted to remove the line at 205; however, this caused further compile errors.

I guess the wireless modules have changed and the function which provides 'net_device' has changed return values.

Change History

10/17/07 06:59:12 changed by mrenzmann

  • description changed.

Which revision of trunk are you trying to build here?

10/17/07 08:14:45 changed by kelmo

Most likely fixed by r2754 in trunk.

10/17/07 08:29:37 changed by jkarlson

revision 2755 doesn't produce that error in question on 2.6.23-git4 (which all tested previous revs did), but still doesn't compile:

/usr/src/madwifi/net80211/ieee80211_linux.c: In function 'ieee80211_virtfs_latevattach':
/usr/src/madwifi/net80211/ieee80211_linux.c:791: error: 'proc_net' undeclared (first use in this function)
/usr/src/madwifi/net80211/ieee80211_linux.c:791: error: (Each undeclared identifier is reported only once
/usr/src/madwifi/net80211/ieee80211_linux.c:791: error: for each function it appears in.)
/usr/src/madwifi/net80211/ieee80211_linux.c: In function 'ieee80211_virtfs_vdetach':
/usr/src/madwifi/net80211/ieee80211_linux.c:929: error: 'proc_net' undeclared (first use in this function)

Don't know if this has been changed in a more recent git-version of linux.

10/17/07 16:32:08 changed by jkarlson

I got the same error for 2.6.23-git11 as expected ...

(follow-up: ↓ 6 ) 10/17/07 19:30:05 changed by jkarlson

revision 2755 works with 2.6.23-git11 if you replace the LINUX_VERSION_CODE on header (which will probably be updated on rc1)

on linux source directory

  sed -i 's/#define LINUX_VERSION_CODE 132633/#define LINUX_VERSION_CODE 132634/' include/linux/version.h

(in reply to: ↑ 5 ; follow-up: ↓ 7 ) 10/17/07 19:34:39 changed by jkarlson

revision 2756 that is, I failed

Replying to jkarlson:

revision 2755 works with 2.6.23-git11 if you replace the LINUX_VERSION_CODE on header (which will probably be updated on rc1) on linux source directory {{{ sed -i 's/#define LINUX_VERSION_CODE 132633/#define LINUX_VERSION_CODE 132634/' include/linux/version.h }}}

(in reply to: ↑ 6 ) 10/17/07 22:57:55 changed by anonymous

Replying to jkarlson:

revision 2756 that is, I failed Replying to jkarlson:

revision 2755 works with 2.6.23-git11 if you replace the LINUX_VERSION_CODE on header (which will probably be updated on rc1) on linux source directory {{{ sed -i 's/#define LINUX_VERSION_CODE 132633/#define LINUX_VERSION_CODE 132634/' include/linux/version.h }}}

git7 compiles with the above patch. (r2757)

10/24/07 09:52:28 changed by jkarlson

compile works out of the box on linux-2.6.24-rc1, as expected.