2007-06-08 18:52:46

by zergavis

[permalink] [raw]
Subject: mac80211 "wme.c:398" error

Hi,

My name is Pawel Bieniek, and I'm new on this list.

Today I was trying to compile mac80211 into my kernel (2.6.21.4) on
archlinux. I need it to run intel 4965AGN on my toshiba satelite A200
notebook.

Unfortunately, it returns an error during compilation:

net/mac80211/wme.c: In function 'wme_qdiscop_destroy':
net/mac80211/wme.c:358: warning: implicit declaration of function
'tcf_destroy_chain'
net/mac80211/wme.c: In function 'wme_qdiscop_init':
net/mac80211/wme.c:398: warning: dereferencing 'void *' pointer
net/mac80211/wme.c:398: error: request for member 'wiphy' in something not
a structure or union

Could someone help me handle with this?

Regards,
Pawel



2007-06-09 13:08:58

by zergavis

[permalink] [raw]
Subject: Re[2]: mac80211 "wme.c:398" error

Witam!

W li=9Ccie datowanym 8 czerwca 2007 (20:48:23) napisano:

> zergavis wrote:
>> Hi,
>>=20
>> My name is Pawel Bieniek, and I'm new on this list.
>>=20
>> Today I was trying to compile mac80211 into my kernel (2.6.21.4) on
>> archlinux. I need it to run intel 4965AGN on my toshiba satelite A20=
0
>> notebook.
>>=20
>> Unfortunately, it returns an error during compilation:
> I did a run-time test on 2.6.21-rc1 (32-bit) w/ iwl3945 and CONFIG_NE=
T_SCHED=3Dy

> Let me know if you have any more build issues.

On 2.6.21.4 build ran just perfect.

There were problems with build debug output for mac80211 (same wme.c -
request for member 'wiphy'). I was enab=80le it to compile for test.
Without debug output, it works fine.

Thanks,
pawel


2007-06-08 19:17:58

by Johannes Berg

[permalink] [raw]
Subject: Re: mac80211 "wme.c:398" error

On Fri, 2007-06-08 at 20:50 +0200, zergavis wrote:

> net/mac80211/wme.c: In function 'wme_qdiscop_destroy':
> net/mac80211/wme.c:358: warning: implicit declaration of function
> 'tcf_destroy_chain'
> net/mac80211/wme.c: In function 'wme_qdiscop_init':
> net/mac80211/wme.c:398: warning: dereferencing 'void *' pointer
> net/mac80211/wme.c:398: error: request for member 'wiphy' in something not
> a structure or union
>
> Could someone help me handle with this?

enable CONFIG_NET_SCHED for now.

johannes


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

2007-06-08 21:47:56

by zergavis

[permalink] [raw]
Subject: Re[2]: mac80211 "wme.c:398" error

> If you turn *off* CONFIG_NET_SCHED, it should build and run fine

Thanks, it works :) There was a problem with:

et/built-in.o: In function `rtnl_setlink':
rtnetlink.c:(.text+0x157bb): undefined reference to `wireless_rtnetlink_set'
net/built-in.o: In function `rtnl_getlink':
rtnetlink.c:(.text+0x15980): undefined reference to `wireless_rtnetlink_get'

but swiching off rtnetlink in wireless drivers fix it.

I will try mac80211-8.0.1 version in a few hours.

thanks,
pawel


2007-06-08 19:34:48

by James Ketrenos

[permalink] [raw]
Subject: Re: mac80211 "wme.c:398" error

Johannes Berg wrote:
> On Fri, 2007-06-08 at 20:50 +0200, zergavis wrote:
>
>> net/mac80211/wme.c: In function 'wme_qdiscop_destroy':
>> net/mac80211/wme.c:358: warning: implicit declaration of function
>> 'tcf_destroy_chain'
>> net/mac80211/wme.c: In function 'wme_qdiscop_init':
>> net/mac80211/wme.c:398: warning: dereferencing 'void *' pointer
>> net/mac80211/wme.c:398: error: request for member 'wiphy' in something not
>> a structure or union
>>
>> Could someone help me handle with this?
>
> enable CONFIG_NET_SCHED for now.
>
> johannes

CONFIG_NET_SCHED being set is the problem w/ older kernels. We missed backporting tcf_destroy_chain and missed an ieee80211_ptr reference (and that code path is only included if CONFIG_NET_SCHED=y).

If you turn *off* CONFIG_NET_SCHED, it should build and run fine (which is what I'm doing on 2.6.18 and 2.6.20 systems currently)

I'm testing a fix for that now, which will be in mac80211-8.0.1.

James

2007-06-08 19:36:21

by Johannes Berg

[permalink] [raw]
Subject: Re: mac80211 "wme.c:398" error

On Fri, 2007-06-08 at 10:33 -0700, James Ketrenos wrote:
> Johannes Berg wrote:
> > On Fri, 2007-06-08 at 20:50 +0200, zergavis wrote:
> >
> >> net/mac80211/wme.c: In function 'wme_qdiscop_destroy':
> >> net/mac80211/wme.c:358: warning: implicit declaration of function
> >> 'tcf_destroy_chain'
> >> net/mac80211/wme.c: In function 'wme_qdiscop_init':
> >> net/mac80211/wme.c:398: warning: dereferencing 'void *' pointer
> >> net/mac80211/wme.c:398: error: request for member 'wiphy' in something not
> >> a structure or union
> >>
> >> Could someone help me handle with this?
> >
> > enable CONFIG_NET_SCHED for now.
> >
> > johannes
>
> CONFIG_NET_SCHED being set is the problem w/ older kernels. We missed
> backporting tcf_destroy_chain and missed an ieee80211_ptr reference
> (and that code path is only included if CONFIG_NET_SCHED=y).
>
> If you turn *off* CONFIG_NET_SCHED, it should build and run fine
> (which is what I'm doing on 2.6.18 and 2.6.20 systems currently)

Uh, oops, sorry about that. I figured since the symbol wasn't really
declared properly it would be missing, not too much :)

johannes


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

2007-06-08 19:24:31

by John W. Linville

[permalink] [raw]
Subject: Re: mac80211 "wme.c:398" error

On Fri, Jun 08, 2007 at 08:50:31PM +0200, zergavis wrote:

> My name is Pawel Bieniek, and I'm new on this list.
>
> Today I was trying to compile mac80211 into my kernel (2.6.21.4) on
> archlinux. I need it to run intel 4965AGN on my toshiba satelite A200
> notebook.
>
> Unfortunately, it returns an error during compilation:
>
> net/mac80211/wme.c: In function 'wme_qdiscop_destroy':
> net/mac80211/wme.c:358: warning: implicit declaration of function
> 'tcf_destroy_chain'
> net/mac80211/wme.c: In function 'wme_qdiscop_init':
> net/mac80211/wme.c:398: warning: dereferencing 'void *' pointer
> net/mac80211/wme.c:398: error: request for member 'wiphy' in something not
> a structure or union
>
> Could someone help me handle with this?

Sounds like the intellinuxwireless.org guys need to add something to
their kcompat patches...

John
--
John W. Linville
[email protected]

2007-06-08 20:49:21

by James Ketrenos

[permalink] [raw]
Subject: Re: mac80211 "wme.c:398" error

zergavis wrote:
> Hi,
>
> My name is Pawel Bieniek, and I'm new on this list.
>
> Today I was trying to compile mac80211 into my kernel (2.6.21.4) on
> archlinux. I need it to run intel 4965AGN on my toshiba satelite A200
> notebook.
>
> Unfortunately, it returns an error during compilation:
>
> net/mac80211/wme.c: In function 'wme_qdiscop_destroy':
> net/mac80211/wme.c:358: warning: implicit declaration of function
> 'tcf_destroy_chain'
> net/mac80211/wme.c: In function 'wme_qdiscop_init':
> net/mac80211/wme.c:398: warning: dereferencing 'void *' pointer
> net/mac80211/wme.c:398: error: request for member 'wiphy' in something not
> a structure or union
>
> Could someone help me handle with this?

I just uploaded mac80211-8.0.1.tgz at:

http://intellinuxwireless.org/?p=mac80211?n=downloads

I ran a build tests against 2.6.18 and 2.6.21-rc1.

I did a run-time test on 2.6.21-rc1 (32-bit) w/ iwl3945 and CONFIG_NET_SCHED=y

Let me know if you have any more build issues.

Thanks,
James