2007-04-21 08:30:39

by Dick

[permalink] [raw]
Subject: 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



2007-04-21 19:51:31

by Johannes Berg

[permalink] [raw]
Subject: Re: mac80211-7.0.4 ieee80211_ptr trouble

On Sat, 2007-04-21 at 14:56 -0400, John W. Linville wrote:

> > /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?
>
> 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


Attachments:
signature.asc (190.00 B)
This is a digitally signed message part

2007-04-23 17:14:10

by James Ketrenos

[permalink] [raw]
Subject: Re: mac80211-7.0.4 ieee80211_ptr trouble

Dick wrote:
> 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?

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

2007-04-21 19:15:33

by John W. Linville

[permalink] [raw]
Subject: Re: mac80211-7.0.4 ieee80211_ptr trouble

On Sat, Apr 21, 2007 at 10:27:32AM +0200, Dick wrote:
> 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?

You'll have to ask the gentoo guys...

John
--
John W. Linville
[email protected]