2009-09-26 02:57:20

by Malte Gell

[permalink] [raw]
Subject: cannot compile compate-wirless snapshots

Hello,

actually I can build the stable compat-wirless-2.6.30.ta.bz2 just fine.

But I get make errors, when I try to build the daily snapshot, see below. I
use openSUSE on a 2.6.27 kernel.

Thanx, Malte


2[malte_gell@linux-61r3]12535 04:50~/download/src/wifi/compat-
wireless-2009-09-25> make
make -C /lib/modules/2.6.27.29-0.1-k7/build
M=/home/malte_gell/download/src/wifi/compat-wireless-2009-09-25 modules
make[1]: Entering directory `/usr/src/linux-2.6.27.29-0.1'
CC [M] /home/malte_gell/download/src/wifi/compat-
wireless-2009-09-25/drivers/net/wireless/ath/main.o
In file included from /home/malte_gell/download/src/wifi/compat-
wireless-2009-09-25/include/net/compat.h:19,
from <command-line>:0:
/home/malte_gell/download/src/wifi/compat-
wireless-2009-09-25/include/net/compat-2.6.28.h:152: error: redefinition of
'struct tracepoint'
In file included from /home/malte_gell/download/src/wifi/compat-
wireless-2009-09-25/include/net/compat.h:19,
from <command-line>:0:
/home/malte_gell/download/src/wifi/compat-
wireless-2009-09-25/include/net/compat-2.6.28.h:182:1: warning: "DEFINE_TRACE"
redefined
In file included from include/linux/module.h:19,
from include/linux/textsearch.h:7,
from include/linux/skbuff.h:26,
from /home/malte_gell/download/src/wifi/compat-
wireless-2009-09-25/include/net/compat-2.6.28.h:10,
from /home/malte_gell/download/src/wifi/compat-
wireless-2009-09-25/include/net/compat.h:19,
from <command-line>:0:
include/linux/tracepoint.h:86:1: warning: this is the location of the previous
definition
/home/malte_gell/download/src/wifi/compat-
wireless-2009-09-25/include/net/compat-2.6.28.h:186: error: redefinition of
'tracepoint_update_probe_range'
include/linux/tracepoint.h:100: error: previous definition of
'tracepoint_update_probe_range' was here
make[4]: *** [/home/malte_gell/download/src/wifi/compat-
wireless-2009-09-25/drivers/net/wireless/ath/main.o] Error 1
make[3]: *** [/home/malte_gell/download/src/wifi/compat-
wireless-2009-09-25/drivers/net/wireless/ath] Error 2
make[2]: *** [/home/malte_gell/download/src/wifi/compat-
wireless-2009-09-25/drivers/net/wireless] Error 2
make[1]: *** [_module_/home/malte_gell/download/src/wifi/compat-
wireless-2009-09-25] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.27.29-0.1'
make: *** [modules] Error 2


2009-09-29 19:00:52

by John W. Linville

[permalink] [raw]
Subject: Re: cannot compile compate-wirless snapshots

On Tue, Sep 29, 2009 at 08:27:20PM +0200, G?bor Stefanik wrote:
> On Tue, Sep 29, 2009 at 11:00 AM, Hin-Tak Leung <[email protected]> wrote:

> > The relevant config is probably /boot/config-`uname -r`, but, please
> > do *not* modify it.
> >
>
> It should be in /proc/config.gz. (/boot/config-* is an Ubuntuism.)

No -- it is at least that way in Fedora and RHEL as well.

John
--
John W. Linville Someday the world will need a hero, and you
[email protected] might be all we have. Be ready.

2009-09-29 08:47:53

by Malte Gell

[permalink] [raw]
Subject: Re: cannot compile compate-wirless snapshots

Hello, sorry for my late reply....

Hauke Mehrtens <[email protected]> wrote

> Malte Gell wrote:
> > Hello,
> >
> > actually I can build the stable compat-wirless-2.6.30.ta.bz2 just fine.
> >
> > But I get make errors, when I try to build the daily snapshot, see below.
> > I use openSUSE on a 2.6.27 kernel.

> what kernel are you using?

2.6.27.29-0.1 from openSUSE 11.1

> Does this file exists in your installation?
> /lib/modules/`uname -r`/build/include/linux/tracepoint.h ?

Yes ! The kernel tracepoint API is there in openSuSE11.1, but I still cannot
compile compat-wireless-2.6

Besides tracepoint thing, does ar9170us require 2.6.29? As said, tracepoint
does exist in my kernel....

thanx
Malte

2009-09-29 09:00:12

by Hin-Tak Leung

[permalink] [raw]
Subject: Re: cannot compile compate-wirless snapshots

On Tue, Sep 29, 2009 at 9:50 AM, Malte Gell <[email protected]> wrote:
>
> Hauke Mehrtens <[email protected]> wrote
>
>
>> Does this file exists in your installation?
>> /lib/modules/`uname -r`/build/include/linux/tracepoint.h ?
>
> Yes, but, look:
>
> cd /usr/src/linux
>
> grep -i tracepoint .config
>
> # CONFIG_TRACEPOINTS is not set
>
> Do I need to set it to yes?
>
> Malte
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>

No. You should not manually edit any kernel config file (the
compat-wireless module should be built against a config matching your
running kernel, not a massaged version of it) and what is in
/usr/src/linux is irrelevant , because that is not your running
kernel.

The relevant config is probably /boot/config-`uname -r`, but, please
do *not* modify it.

I already wrote - your best bet is simply deleting all the 'error
redefintion' parts from net/compat-2.6.28.h, since your kernel tree is
somewhere between 2.6.27 and 2.6.28 . (and also delete some part of
net/compat-2.6.28.c when possible later linker error arises).

2009-09-26 10:06:49

by Hauke Mehrtens

[permalink] [raw]
Subject: Re: cannot compile compate-wirless snapshots

Malte Gell wrote:
> Hello,
>
> actually I can build the stable compat-wirless-2.6.30.ta.bz2 just fine.
>
> But I get make errors, when I try to build the daily snapshot, see below. I
> use openSUSE on a 2.6.27 kernel.
>
> Thanx, Malte
>
>
> 2[malte_gell@linux-61r3]12535 04:50~/download/src/wifi/compat-
> wireless-2009-09-25> make
> make -C /lib/modules/2.6.27.29-0.1-k7/build
> M=/home/malte_gell/download/src/wifi/compat-wireless-2009-09-25 modules
> make[1]: Entering directory `/usr/src/linux-2.6.27.29-0.1'
> CC [M] /home/malte_gell/download/src/wifi/compat-
> wireless-2009-09-25/drivers/net/wireless/ath/main.o
> In file included from /home/malte_gell/download/src/wifi/compat-
> wireless-2009-09-25/include/net/compat.h:19,
> from <command-line>:0:
> /home/malte_gell/download/src/wifi/compat-
> wireless-2009-09-25/include/net/compat-2.6.28.h:152: error: redefinition of
> 'struct tracepoint'
> In file included from /home/malte_gell/download/src/wifi/compat-
> wireless-2009-09-25/include/net/compat.h:19,
> from <command-line>:0:
> /home/malte_gell/download/src/wifi/compat-
> wireless-2009-09-25/include/net/compat-2.6.28.h:182:1: warning: "DEFINE_TRACE"
> redefined
> In file included from include/linux/module.h:19,
> from include/linux/textsearch.h:7,
> from include/linux/skbuff.h:26,
> from /home/malte_gell/download/src/wifi/compat-
> wireless-2009-09-25/include/net/compat-2.6.28.h:10,
> from /home/malte_gell/download/src/wifi/compat-
> wireless-2009-09-25/include/net/compat.h:19,
> from <command-line>:0:
> include/linux/tracepoint.h:86:1: warning: this is the location of the previous
> definition
> /home/malte_gell/download/src/wifi/compat-
> wireless-2009-09-25/include/net/compat-2.6.28.h:186: error: redefinition of
> 'tracepoint_update_probe_range'
> include/linux/tracepoint.h:100: error: previous definition of
> 'tracepoint_update_probe_range' was here
Hi,

what kernel are you using? It looks to me you are using 2.6.27, but the
2.6.27 mainline kernel does *not* contain the tracepoint infrastructure
and include/linux/tracepoint.h, like your kernel. Did you made some big
modifications to your kernel or is it the default openSUSE kernel?

Does this file exists in your installation?
/lib/modules/`uname -r`/build/include/linux/tracepoint.h ?

Compat-wireless checks the kernel version and adds some compat code
based on the things the mainline kernel misses in this version, but this
is not working correctly with kernel, because it looks like it contains
some "bad" modifications.

Hauke


Attachments:
signature.asc (898.00 B)
OpenPGP digital signature

2009-09-29 18:27:36

by Gábor Stefanik

[permalink] [raw]
Subject: Re: cannot compile compate-wirless snapshots

On Tue, Sep 29, 2009 at 11:00 AM, Hin-Tak Leung <[email protected]> wrote:
> On Tue, Sep 29, 2009 at 9:50 AM, Malte Gell <[email protected]> wrote:
>>
>> Hauke Mehrtens <[email protected]> wrote
>>
>>
>>> Does this file exists in your installation?
>>> /lib/modules/`uname -r`/build/include/linux/tracepoint.h ?
>>
>> Yes, but, look:
>>
>> cd /usr/src/linux
>>
>> grep -i tracepoint .config
>>
>> # CONFIG_TRACEPOINTS is not set
>>
>> Do I need to set it to yes?
>>
>> Malte
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
>> the body of a message to [email protected]
>> More majordomo info at ?http://vger.kernel.org/majordomo-info.html
>>
>
> No. You should not manually edit any kernel config file (the
> compat-wireless module should be built against a config matching your
> running kernel, not a massaged version of it) and what is in
> /usr/src/linux is irrelevant , because that is not your running
> kernel.
>
> The relevant config is probably /boot/config-`uname -r`, but, please
> do *not* modify it.
>

It should be in /proc/config.gz. (/boot/config-* is an Ubuntuism.)

> I already wrote - your best bet is simply deleting all the 'error
> redefintion' parts from net/compat-2.6.28.h, since your kernel tree is
> somewhere between 2.6.27 and 2.6.28 . (and also delete some part of
> net/compat-2.6.28.c when possible later linker error arises).
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to [email protected]
> More majordomo info at ?http://vger.kernel.org/majordomo-info.html
>



--
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)

2009-09-29 08:50:53

by Malte Gell

[permalink] [raw]
Subject: Re: cannot compile compate-wirless snapshots


Hauke Mehrtens <[email protected]> wrote


> Does this file exists in your installation?
> /lib/modules/`uname -r`/build/include/linux/tracepoint.h ?

Yes, but, look:

cd /usr/src/linux

grep -i tracepoint .config

# CONFIG_TRACEPOINTS is not set

Do I need to set it to yes?

Malte

2009-09-30 01:19:37

by Hin-Tak Leung

[permalink] [raw]
Subject: Re: cannot compile compate-wirless snapshots

2009/9/29 G?bor Stefanik <[email protected]>:
> On Tue, Sep 29, 2009 at 11:00 AM, Hin-Tak Leung <[email protected]> wrote:

>> The relevant config is probably /boot/config-`uname -r`, but, please
>> do *not* modify it.
>>
>
> It should be in /proc/config.gz. (/boot/config-* is an Ubuntuism.)

John pointed out Fedora & RHEL does /boot/config-* . (and don't
provide /proc/config.gz). I don't know which distro does
/proc/config.gz Obviously neither Ubuntu nor Fedora/RHEL; maybe one of
Mandriva/Debian/Suse?

As a point of interest, /boot also contains the init ramdisk, the
kernel symbol map besides the kernel image (beside some
grub/boot-loader files), so it isn't too much to have another kernel
related file. For the purist, building the kernel to have
self-knowledge of its own config under /proc is a neat thing, but
OTOH, it uses kernel memory to provide what is very static unchanging
info under /proc, which is unwise.