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
Quoted 36 lines · Malte Gell
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/buildM=/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 frominclude/linux/module.h:19,
frominclude/linux/textsearch.h:7,
frominclude/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,
Quoted 8 lines
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
Hello, sorry for my late reply....
Hauke Mehrtens <[email protected]> wrote
Quoted 9 lines
Quoted 6 lines · Malte Gell
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
Quoted 2 lines
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
Hauke Mehrtens <[email protected]> wrote
Quoted 2 lines
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
Quoted 15 lines · Malte Gell
Hauke Mehrtens <[email protected]> wrote
Quoted 2 lines
Does this file exists in your installation?
/lib/modules/uname -r/build/include/linux/tracepoint.h ?Yes, but, look:
cd
/usr/src/linuxgrep -i tracepoint .config
#
CONFIG_TRACEPOINTSis not set
Quoted 8 lines
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).
Quoted 25 lines · Hin-Tak Leung
Quoted 15 lines · Malte Gell
Hauke Mehrtens <[email protected]> wrote
Quoted 2 lines
Does this file exists in your installation?
/lib/modules/uname -r/build/include/linux/tracepoint.h ?Yes, but, look:
cd
/usr/src/linuxgrep -i tracepoint .config
#
CONFIG_TRACEPOINTSis not setQuoted 8 lines
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
Quoted 9 lines
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/linuxis 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.)
Quoted 9 lines
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 ofnet/compat-2.6.28.cwhen 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
Signature · 1 line
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
Quoted 7 lines · Gábor Stefanik
Quoted 3 lines · Hin-Tak Leung
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
Signature · 2 lines
John W. Linville Someday the world will need a hero, and you [email protected] might be all we have. Be ready.
2009/9/29 Gábor Stefanik <[email protected]>:
Quoted 7 lines · Hin-Tak Leung
Quoted 4 lines
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.