2009-06-03 11:06:46

by Bringfried Stecklum

[permalink] [raw]
Subject: compile error: compat-wireless-2009-06-03

When trying to compile the latest compat-wireless package on an Ubuntu 8.10
64bit system running linux kernel 2.6.27-12 I get the following error

stecklum@extragalactix:~/System/src/compat-wireless-2009-06-03$ make
make -C /lib/modules/2.6.27-12-mygeneric/build
M=/home/stecklum/System/src/compat-wireless-2009-06-03 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.27-12-mygeneric'
CC [M]
/home/stecklum/System/src/compat-wireless-2009-06-03/drivers/net/wireless/ath/ath9k/hw.o
In file included from
/home/stecklum/System/src/compat-wireless-2009-06-03/drivers/net/wireless/ath/ath9k/hw.c:20:
/home/stecklum/System/src/compat-wireless-2009-06-03/drivers/net/wireless/ath/ath9k/ath9k.h:469:
error: field ‘ops’ has incomplete type
make[5]: ***
[/home/stecklum/System/src/compat-wireless-2009-06-03/drivers/net/wireless/ath/ath9k/hw.o]
Error 1
make[4]: ***
[/home/stecklum/System/src/compat-wireless-2009-06-03/drivers/net/wireless/ath/ath9k]
Error 2
make[3]: ***
[/home/stecklum/System/src/compat-wireless-2009-06-03/drivers/net/wireless/ath]
Error 2
make[2]: ***
[/home/stecklum/System/src/compat-wireless-2009-06-03/drivers/net/wireless] Error 2
make[1]: *** [_module_/home/stecklum/System/src/compat-wireless-2009-06-03] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-12-mygeneric'
make: *** [modules] Error 2


Regards,

Bringfried




2009-06-03 11:08:18

by Johannes Berg

[permalink] [raw]
Subject: Re: compile error: compat-wireless-2009-06-03

On Wed, 2009-06-03 at 13:06 +0200, Bringfried Stecklum wrote:
> When trying to compile the latest compat-wireless package on an Ubuntu 8.10
> 64bit system running linux kernel 2.6.27-12 I get the following error
>
> stecklum@extragalactix:~/System/src/compat-wireless-2009-06-03$ make
> make -C /lib/modules/2.6.27-12-mygeneric/build
> M=/home/stecklum/System/src/compat-wireless-2009-06-03 modules
> make[1]: Entering directory `/usr/src/linux-headers-2.6.27-12-mygeneric'
> CC [M]
> /home/stecklum/System/src/compat-wireless-2009-06-03/drivers/net/wireless/ath/ath9k/hw.o
> In file included from
> /home/stecklum/System/src/compat-wireless-2009-06-03/drivers/net/wireless/ath/ath9k/hw.c:20:
> /home/stecklum/System/src/compat-wireless-2009-06-03/drivers/net/wireless/ath/ath9k/ath9k.h:469:
> error: field ‘ops’ has incomplete type

That's rfkill, not sure what to do about it.

johannes


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

2009-06-03 15:48:36

by Hin-Tak Leung

[permalink] [raw]
Subject: Re: compile error: compat-wireless-2009-06-03

On Wed, Jun 3, 2009 at 12:08 PM, Johannes Berg
<[email protected]> wrote:
> On Wed, 2009-06-03 at 13:06 +0200, Bringfried Stecklum wrote:
>> When trying to compile the latest compat-wireless package on an Ubuntu 8.10
>> 64bit system running linux kernel 2.6.27-12 I get the following error
>>
>> stecklum@extragalactix:~/System/src/compat-wireless-2009-06-03$ make
>> make -C /lib/modules/2.6.27-12-mygeneric/build
>> M=/home/stecklum/System/src/compat-wireless-2009-06-03 modules
>> make[1]: Entering directory `/usr/src/linux-headers-2.6.27-12-mygeneric'
>> CC [M]
>> /home/stecklum/System/src/compat-wireless-2009-06-03/drivers/net/wireless/ath/ath9k/hw.o
>> In file included from
>> /home/stecklum/System/src/compat-wireless-2009-06-03/drivers/net/wireless/ath/ath9k/hw.c:20:
>> /home/stecklum/System/src/compat-wireless-2009-06-03/drivers/net/wireless/ath/ath9k/ath9k.h:469:
>> error: field ?ops? has incomplete type
>
> That's rfkill, not sure what to do about it.
>
> johannes

Yes, i saw the error too - I just git-format-patch'ed the rfkill
commit from wireless-testing and reverted it in compat-wireless. Then
compat-wireless built and worked ok.

The rfkill commit changed a two files (an include/net/* and an
Kconfig) which doesn't exist in compat-wireless (I just press return
to skip during the revert). I suppose the include will need to go to
the top of whatever files needing it, the Kconfig part will need to go
to config.mk ... but I haven't looked in detail and other change may
be needed.

The commit is this:
>From df1937eaa2b4f60ba9d8aedea1bd2e069ea31aae Mon Sep 17 00:00:00 2001
From: Johannes Berg <[email protected]>
Date: Tue, 2 Jun 2009 13:01:41 +0200
Subject: [PATCH] cfg80211: add rfkill support


Hin-Tak