mac80211-7.0.4 ieee80211_ptr trouble
Hi all,
I'm trying to compile compatible mac80211 modules with linux-2.6.20-gentoo-r6 but I'm missing the ieee80211_ptr in struct net_device.
/var/tmp/portage/net-wireless/mac80211-7.0.4/work/mac80211-7.0.4/compatible/net/mac80211/ieee80211_ioctl.c: In functie 'ieee80211_ioctl_get_hw_features':/var/tmp/portage/net-wireless/mac80211-7.0.4/work/mac80211-7.0.4/compatible/net/mac80211/ieee80211_ioctl.c:119: fout: 'struct net_device' has no member named 'ieee80211_ptr' /var/tmp/portage/net-wireless/mac80211-7.0.4/work/mac80211-7.0.4/compatible/net/mac80211/ieee80211_ioctl.c: In functie 'ieee80211_ioctl_scan':/var/tmp/portage/net-wireless/mac80211-7.0.4/work/mac80211-7.0.4/compatible/net/mac80211/ieee80211_ioctl.c:172: fout: 'struct net_device' has no member named 'ieee80211_ptr'
What am I doing wrong, what happened to ieee80211_ptr?
Thanks in advance,
Dick
Quoted 6 lines · Dick
Hi all,
I'm trying to compile compatible mac80211 modules with linux-2.6.20-gentoo-r6 but I'm missing the
ieee80211_ptrin structnet_device.
Quoted 6 lines
/var/tmp/portage/net-wireless/mac80211-7.0.4/work/mac80211-7.0.4/compatible/net/mac80211/ieee80211_ioctl.c: In functie 'ieee80211_ioctl_get_hw_features':/var/tmp/portage/net-wireless/mac80211-7.0.4/work/mac80211-7.0.4/compatible/net/mac80211/ieee80211_ioctl.c:119: fout: 'structnet_device' has no member named 'ieee80211_ptr'/var/tmp/portage/net-wireless/mac80211-7.0.4/work/mac80211-7.0.4/compatible/net/mac80211/ieee80211_ioctl.c: In functie 'ieee80211_ioctl_scan':/var/tmp/portage/net-wireless/mac80211-7.0.4/work/mac80211-7.0.4/compatible/net/mac80211/ieee80211_ioctl.c:172: fout: 'structnet_device' has no member named 'ieee80211_ptr'What am I doing wrong, what happened to
ieee80211_ptr?
You'll have to ask the gentoo guys...
John
Signature · 2 lines
John W. Linville [email protected]
Quoted 8 lines · John W. Linville
Quoted 6 lines
/var/tmp/portage/net-wireless/mac80211-7.0.4/work/mac80211-7.0.4/compatible/net/mac80211/ieee80211_ioctl.c: In functie 'ieee80211_ioctl_get_hw_features':/var/tmp/portage/net-wireless/mac80211-7.0.4/work/mac80211-7.0.4/compatible/net/mac80211/ieee80211_ioctl.c:119: fout: 'structnet_device' has no member named 'ieee80211_ptr'/var/tmp/portage/net-wireless/mac80211-7.0.4/work/mac80211-7.0.4/compatible/net/mac80211/ieee80211_ioctl.c: In functie 'ieee80211_ioctl_scan':/var/tmp/portage/net-wireless/mac80211-7.0.4/work/mac80211-7.0.4/compatible/net/mac80211/ieee80211_ioctl.c:172: fout: 'structnet_device' has no member named 'ieee80211_ptr'What am I doing wrong, what happened to
ieee80211_ptr?You'll have to ask the gentoo guys...
Nah, he's compiling James's stuff against a kernel that doesn't have ieee80211_ptr, afaik James used ax25_ptr for this or something... Looks like you forgot some header file.
johannes
A message that is not in the archive (sent off-list or not yet received): 1177186573.13434.5.camel@localhost
Never ever remove a mailing list from the CC unless you have good reasons to and or the stuff you're discussing is actually private.
Quoted 5 lines
Thank you for your reactions, I can't find a header file where
ieee80211_ptris defined. So I figured it might be renamed or removed by Gentoo or linux-2.6.20.
Either way this should be fixed in the compat version. I hope someone can point me in the right direction ;)
No, you misunderstood me. The compat package includes a header file that does these defines, but apparently you're missing it.
johannes
Quoted 6 lines · Dick
Hi all,
I'm trying to compile compatible mac80211 modules with linux-2.6.20-gentoo-r6 but I'm missing the
ieee80211_ptrin structnet_device.
Quoted 6 lines
/var/tmp/portage/net-wireless/mac80211-7.0.4/work/mac80211-7.0.4/compatible/net/mac80211/ieee80211_ioctl.c: In functie 'ieee80211_ioctl_get_hw_features':/var/tmp/portage/net-wireless/mac80211-7.0.4/work/mac80211-7.0.4/compatible/net/mac80211/ieee80211_ioctl.c:119: fout: 'structnet_device' has no member named 'ieee80211_ptr'/var/tmp/portage/net-wireless/mac80211-7.0.4/work/mac80211-7.0.4/compatible/net/mac80211/ieee80211_ioctl.c: In functie 'ieee80211_ioctl_scan':/var/tmp/portage/net-wireless/mac80211-7.0.4/work/mac80211-7.0.4/compatible/net/mac80211/ieee80211_ioctl.c:172: fout: 'structnet_device' has no member named 'ieee80211_ptr'What am I doing wrong, what happened to
ieee80211_ptr?
I have pristine 2.6.20-gentoo-r6 sources here (via 'ACCEPT_KEYWORDS=~amd64 emerge -av gentoo-sources') and am not seeing the above with a manual install of mac80211-7.0.4:
% cd mac80211-7.0.4
% make KSRC=/usr/src/linux-2.6.20-gentoo-r6 clean patch_kernel % cd /usr/src/linux-2.6.20-gentoo-r6
% make menuconfig # turned on MAC80211
% make -j9 ; make -j9 modules
No errors during compilation.
I haven't tried using mac80211 Gentoo packages.
Given that it works when done pristine, and that its failing with the ebuild, I'm guessing ebuild isn't quite right. The mac80211 build generates a source image specific to your target kernel. If the wrong target kernel is used as the source during the creation of the 'compatible' build target, the resulting build will fail.
It looks like with your system, compatible/ was built for a kernel that already has ieee80211_ptr defined in include/linux/netdevice.h.
James