Skip to contentSkip to conversation

still cant compile new code

ath9k-devel Dmitri Seletski 5 participants 10 messages Aug 2, 2009 – Aug 20, 2009

lore
Share & tools
lore
#0 lore raw

New code still doesnt compile:

CC [M]
/home/dimko/compat-wireless-2009-08-01/net/mac80211/rc80211_pid_algo.o
CC [M]
/home/dimko/compat-wireless-2009-08-01/net/mac80211/rc80211_minstrel.o
LD [M] /home/dimko/compat-wireless-2009-08-01/net/mac80211/mac80211.o CC [M] /home/dimko/compat-wireless-2009-08-01/net/rfkill/core.o
/home/dimko/compat-wireless-2009-08-01/net/rfkill/core.c:150: error:
redefinition of 'backport_rfkill_get_led_trigger_name' /home/dimko/compat-wireless-2009-08-01/include/linux/rfkill_backport.h:378:
error: previous definition of 'backport_rfkill_get_led_trigger_name' was here /home/dimko/compat-wireless-2009-08-01/net/rfkill/core.c:156: error:
redefinition of 'backport_rfkill_set_led_trigger_name' /home/dimko/compat-wireless-2009-08-01/include/linux/rfkill_backport.h:384:
error: previous definition of 'backport_rfkill_set_led_trigger_name' was here
make[3]: *** [/home/dimko/compat-wireless-2009-08-01/net/rfkill/core.o] Error 1
make[2]: *** [/home/dimko/compat-wireless-2009-08-01/net/rfkill] Error 2 make[1]: *** [_module_/home/dimko/compat-wireless-2009-08-01] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.30'
make: *** [modules] Error 2

#1 lore raw

Dmitri
I haven't been able to follow up with the latest compat-wireless due to other commitments. I shall try compiling the latest compat on 2.6.30 as you are doing. If you can compile the wireless-testing kernel, that would be of great help.

Senthil

Quoted 25 lines · Dmitri Seletski

New code still doesnt compile:

CC [M]
/home/dimko/compat-wireless-2009-08-01/net/mac80211/rc80211_pid_algo.o
CC [M]
/home/dimko/compat-wireless-2009-08-01/net/mac80211/rc80211_minstrel.o
LD [M] /home/dimko/compat-wireless-2009-08-01/net/mac80211/mac80211.o CC [M] /home/dimko/compat-wireless-2009-08-01/net/rfkill/core.o
/home/dimko/compat-wireless-2009-08-01/net/rfkill/core.c:150: error:
redefinition of 'backport_rfkill_get_led_trigger_name' /home/dimko/compat-wireless-2009-08-01/include/linux/rfkill_backport.h:378:
error: previous definition of 'backport_rfkill_get_led_trigger_name' was here /home/dimko/compat-wireless-2009-08-01/net/rfkill/core.c:156: error:
redefinition of 'backport_rfkill_set_led_trigger_name' /home/dimko/compat-wireless-2009-08-01/include/linux/rfkill_backport.h:384:
error: previous definition of 'backport_rfkill_set_led_trigger_name' was here
make[3]: *** [/home/dimko/compat-wireless-2009-08-01/net/rfkill/core.o] Error 1
make[2]: *** [/home/dimko/compat-wireless-2009-08-01/net/rfkill] Error 2 make[1]: *** [_module_/home/dimko/compat-wireless-2009-08-01] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.30'
make: *** [modules] Error 2

Quoted 5 lines

_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20090804/ae0e55c0/attachment.htm

#2 lore raw

Hello Senthilkumar.

I am not sure what do you mean?
Is there some sort of experimental branch of kernel, that dedicated to wireless testing of some kind?
Can i have a link please? Id be happy to compile it.

Regards
Dmitri

Quoted 48 lines · Senthilkumar Balasubramanian

Dmitri

I haven't been able to follow up with the latest compat-wireless due to other commitments. I shall try compiling the latest compat on 2.6.30 as you are doing. If you can compile the wireless-testing kernel, that would be of great help.

Senthil

On Sun, Aug 2, 2009 at 7:57 AM, Dmitri Seletski <[email protected] <mailto:[email protected]>> wrote:

    New code still doesnt compile:

     CC [M]
    /home/dimko/compat-wireless-2009-08-01/net/mac80211/rc80211_pid_algo.o
     CC [M]
    /home/dimko/compat-wireless-2009-08-01/net/mac80211/rc80211_minstrel.o
     LD [M]
     /home/dimko/compat-wireless-2009-08-01/net/mac80211/mac80211.o
     CC [M]  /home/dimko/compat-wireless-2009-08-01/net/rfkill/core.o
    /home/dimko/compat-wireless-2009-08-01/net/rfkill/core.c:150: error:
    redefinition of 'backport_rfkill_get_led_trigger_name'
    /home/dimko/compat-wireless-2009-08-01/include/linux/rfkill_backport.h:378:
    error: previous definition of
    'backport_rfkill_get_led_trigger_name' was
    here
    /home/dimko/compat-wireless-2009-08-01/net/rfkill/core.c:156: error:
    redefinition of 'backport_rfkill_set_led_trigger_name'
    /home/dimko/compat-wireless-2009-08-01/include/linux/rfkill_backport.h:384:
    error: previous definition of
    'backport_rfkill_set_led_trigger_name' was
    here
    make[3]: ***
    [/home/dimko/compat-wireless-2009-08-01/net/rfkill/core.o]
    Error 1
    make[2]: *** [/home/dimko/compat-wireless-2009-08-01/net/rfkill]
    Error 2
    make[1]: *** [_module_/home/dimko/compat-wireless-2009-08-01] Error 2
    make[1]: Leaving directory `/usr/src/linux-2.6.30'
    make: *** [modules] Error 2

    _______________________________________________
    ath9k-devel mailing list
    ath9k-devel at lists.ath9k.org <mailto:[email protected]>
    https://lists.ath9k.org/mailman/listinfo/ath9k-devel
#3 lore raw
Quoted 5 lines · Dmitri Seletski

Hello Senthilkumar.

I am not sure what do you mean?
Is there some sort of experimental branch of kernel, that dedicated to wireless testing of some kind?

http://wireless.kernel.org/en/developers/Documentation/git-guide

Quoted 1 line

Can i have a link please? Id be happy to compile it.

I believe I last tested compiling compat-wireless against 2.6.30 and addressed the issue you reported, will try to update it shortly against today's wireless-testing.

Luis

Quoted 58 lines

Regards
Dmitri

Quoted 38 lines · Senthilkumar Balasubramanian

Dmitri

I haven't been able to follow up with the latest compat-wireless due to other commitments. I shall try compiling the latest compat on 2.6.30 as you are doing. If you can compile the wireless-testing kernel, that would be of great help.

Senthil

On Sun, Aug 2, 2009 at 7:57 AM, Dmitri Seletski <[email protected] <mailto:[email protected]>> wrote:

    New code still doesnt compile:

     CC [M]
    /home/dimko/compat-wireless-2009-08-01/net/mac80211/rc80211_pid_algo.o
     CC [M]
    /home/dimko/compat-wireless-2009-08-01/net/mac80211/rc80211_minstrel.o
     LD [M]
     /home/dimko/compat-wireless-2009-08-01/net/mac80211/mac80211.o
     CC [M]  /home/dimko/compat-wireless-2009-08-01/net/rfkill/core.o
    /home/dimko/compat-wireless-2009-08-01/net/rfkill/core.c:150: error:
    redefinition of 'backport_rfkill_get_led_trigger_name'
    /home/dimko/compat-wireless-2009-08-01/include/linux/rfkill_backport.h:378:
    error: previous definition of
    'backport_rfkill_get_led_trigger_name' was
    here
    /home/dimko/compat-wireless-2009-08-01/net/rfkill/core.c:156: error:
    redefinition of 'backport_rfkill_set_led_trigger_name'
    /home/dimko/compat-wireless-2009-08-01/include/linux/rfkill_backport.h:384:
    error: previous definition of
    'backport_rfkill_set_led_trigger_name' was
    here
    make[3]: ***
    [/home/dimko/compat-wireless-2009-08-01/net/rfkill/core.o]
    Error 1
    make[2]: *** [/home/dimko/compat-wireless-2009-08-01/net/rfkill]
    Error 2
Quoted 10 lines
    make[1]: *** [_module_/home/dimko/compat-wireless-2009-08-01] Error 2
    make[1]: Leaving directory `/usr/src/linux-2.6.30'
    make: *** [modules] Error 2

    _______________________________________________
    ath9k-devel mailing list
    ath9k-devel at lists.ath9k.org <mailto:[email protected]>
    https://lists.ath9k.org/mailman/listinfo/ath9k-devel

_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

#4 lore raw

Hi guys.

I have used git to download code
Went into directory where code is.

wireless-testing # make
scripts/kconfig/conf -s arch/x86/Kconfig
***
*** You have not yet configured your kernel!
*** (missing kernel config file ".config")
***
*** Please run some configurator (e.g. "make oldconfig" or *** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target include/config/auto.conf', needed by include/config/kernel.release'. Stop.

ls /usr/src/linux/.config
/usr/src/linux/.config

So looks like it is failing there again. let me know when its fixed so i could try again please

Regards
Dmitri

Quoted 80 lines · Luis R. Rodriguez
Quoted 6 lines · Dmitri Seletski

Hello Senthilkumar.

I am not sure what do you mean?
Is there some sort of experimental branch of kernel, that dedicated to wireless testing of some kind?

http://wireless.kernel.org/en/developers/Documentation/git-guide

Quoted 2 lines

Can i have a link please? Id be happy to compile it.

I believe I last tested compiling compat-wireless against 2.6.30 and addressed the issue you reported, will try to update it shortly against today's wireless-testing.

Luis

Quoted 59 lines

Regards
Dmitri

Quoted 38 lines · Senthilkumar Balasubramanian

Dmitri

I haven't been able to follow up with the latest compat-wireless due to other commitments. I shall try compiling the latest compat on 2.6.30 as you are doing. If you can compile the wireless-testing kernel, that would be of great help.

Senthil

On Sun, Aug 2, 2009 at 7:57 AM, Dmitri Seletski <[email protected] <mailto:[email protected]>> wrote:

    New code still doesnt compile:

     CC [M]
    /home/dimko/compat-wireless-2009-08-01/net/mac80211/rc80211_pid_algo.o
     CC [M]
    /home/dimko/compat-wireless-2009-08-01/net/mac80211/rc80211_minstrel.o
     LD [M]
     /home/dimko/compat-wireless-2009-08-01/net/mac80211/mac80211.o
     CC [M]  /home/dimko/compat-wireless-2009-08-01/net/rfkill/core.o
    /home/dimko/compat-wireless-2009-08-01/net/rfkill/core.c:150: error:
    redefinition of 'backport_rfkill_get_led_trigger_name'
    /home/dimko/compat-wireless-2009-08-01/include/linux/rfkill_backport.h:378:
    error: previous definition of
    'backport_rfkill_get_led_trigger_name' was
    here
    /home/dimko/compat-wireless-2009-08-01/net/rfkill/core.c:156: error:
    redefinition of 'backport_rfkill_set_led_trigger_name'
    /home/dimko/compat-wireless-2009-08-01/include/linux/rfkill_backport.h:384:
    error: previous definition of
    'backport_rfkill_set_led_trigger_name' was
    here
    make[3]: ***
    [/home/dimko/compat-wireless-2009-08-01/net/rfkill/core.o]
    Error 1
    make[2]: *** [/home/dimko/compat-wireless-2009-08-01/net/rfkill]
    Error 2
Quoted 11 lines
    make[1]: *** [_module_/home/dimko/compat-wireless-2009-08-01] Error 2
    make[1]: Leaving directory `/usr/src/linux-2.6.30'
    make: *** [modules] Error 2

    _______________________________________________
    ath9k-devel mailing list
    ath9k-devel at lists.ath9k.org <mailto:[email protected]>
    https://lists.ath9k.org/mailman/listinfo/ath9k-devel

_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

#5 lore raw
Quoted 22 lines · Dmitri Seletski

Hi guys.

I have used git to download code
Went into directory where code is.

wireless-testing # make
scripts/kconfig/conf -s arch/x86/Kconfig
***
*** You have not yet configured your kernel!
*** (missing kernel config file ".config")
***
*** Please run some configurator (e.g. "make oldconfig" or *** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target include/config/auto.conf', needed by include/config/kernel.release'. ?Stop.

Quoted 6 lines

ls /usr/src/linux/.config
/usr/src/linux/.config

So looks like it is failing there again. let me know when its fixed so i could try again please

wireless-testing is a git tree based on Linus Torval's own git tree for Linux development. It contains the entire kernel. On top of Linus' stuff are the patches being queued up for the wireless subsystem for the next kernel release, in this case right now for 2.6.32.

Compiling wireless-testing means compiling your own kernel. To compile your own kernel you need to configure the kernel first. To do that you can read the documentation on how to do that on README. A quick way would be to cp your current kernel's .config to the wireless-testing/.config and then run 'make menuconfig;' and exit. That would then base your current kernel configuration based on your distribution's kernel. The compile will take significantly long but it'll be close to what your distribution has today. After you are done configuring your kernel you run:

make
sudo make modules_install install

Now, the install target will only do the full job if your distribution has an appropriate /sbin/installkernel. What I mean by doing a full job I mean copying the kernel to /boot/ but also building the initramfs for it, putting into /boot/ and updating your grub menu.lst file. Fedora has an /sbin/installkernel file so you should be fine with that. Ubuntu does't. I've sent a patch to add it but that patch has been ignored. I'm attaching my /sbin/installkernel in case you have Ubuntu.

compat-wireless exists to help you just compile the wireless subsystem from wireless-testing, even on older kernels. I suspect its easier for you to just use compat-wireless than building your own kernel from wireless-testing if you've never done that before.

Anyway I've updated compat-wireless to reflect John's new updates on wireless-testing. I've also added a new ./scripts/driver-select on compat-wireless which lets you select the driver you want so you do not have to compile all wireless drivers.

In your case you can run:

./scripts/driver-select ath9k

Run it with no arguments to get a list of supported stuff.

Origin remote URL:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-testing.git
git-describe for wireless-testing.git says: v2.6.31-rc5-30113-gf1aa58f This is a bleeding edge compat-wireless release based on: master-2009-08-04 This is compat-release: master-2009-08-04-8-gd596eac

Luis

#7 lore raw
In reply to Luis R. Rodriguez
Quoted 75 lines · Luis R. Rodriguez
Quoted 22 lines · Dmitri Seletski

Hi guys.

I have used git to download code
Went into directory where code is.

wireless-testing # make
scripts/kconfig/conf -s arch/x86/Kconfig
***
*** You have not yet configured your kernel!
*** (missing kernel config file ".config")
***
*** Please run some configurator (e.g. "make oldconfig" or *** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target include/config/auto.conf', needed by include/config/kernel.release'. Stop.

Quoted 7 lines

ls /usr/src/linux/.config
/usr/src/linux/.config

So looks like it is failing there again. let me know when its fixed so i could try again please

wireless-testing is a git tree based on Linus Torval's own git tree for Linux development. It contains the entire kernel. On top of Linus' stuff are the patches being queued up for the wireless subsystem for the next kernel release, in this case right now for 2.6.32.

Compiling wireless-testing means compiling your own kernel. To compile your own kernel you need to configure the kernel first. To do that you can read the documentation on how to do that on README. A quick way would be to cp your current kernel's .config to the wireless-testing/.config and then run 'make menuconfig;' and exit. That would then base your current kernel configuration based on your distribution's kernel. The compile will take significantly long but it'll be close to what your distribution has today. After you are done configuring your kernel you run:

make
sudo make modules_install install

Now, the install target will only do the full job if your distribution has an appropriate /sbin/installkernel. What I mean by doing a full job I mean copying the kernel to /boot/ but also building the initramfs for it, putting into /boot/ and updating your grub menu.lst file. Fedora has an /sbin/installkernel file so you should be fine with that. Ubuntu does't. I've sent a patch to add it but that patch has been ignored. I'm attaching my /sbin/installkernel in case you have Ubuntu.

compat-wireless exists to help you just compile the wireless subsystem from wireless-testing, even on older kernels. I suspect its easier for you to just use compat-wireless than building your own kernel from wireless-testing if you've never done that before.

Anyway I've updated compat-wireless to reflect John's new updates on wireless-testing. I've also added a new ./scripts/driver-select on compat-wireless which lets you select the driver you want so you do not have to compile all wireless drivers.

In your case you can run:

./scripts/driver-select ath9k

Run it with no arguments to get a list of supported stuff.

Quoted 8 lines

Origin remote URL:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-testing.git
git-describe for wireless-testing.git says: v2.6.31-rc5-30113-gf1aa58f This is a bleeding edge compat-wireless release based on: master-2009-08-04 This is compat-release: master-2009-08-04-8-gd596eac

Luis

HelloLuis,
I am not using Ubuntu, in fact I am using Gentoo.
I have downloaded that kernel, compiled it and installed it. Linux dimko 2.6.31-rc5-wl #1 SMP PREEMPT Wed Aug 5 03:12:10 IST 2009 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 6000+ AuthenticAMD GNU/Linux Ihave installed ath9k as module from kernel(i guess there is no need to download anything else, is there?)
I shall send another email with ongoing problem i have.
Regards
Dmitri

#8 lore raw

I have the same issue, using kernel 2.6.28.5:

/root/wifi/compat-wireless-2009-08-19/net/rfkill/core.c:150: error:
redefinition of ?backport_rfkill_get_led_trigger_name? /root/wifi/compat-wireless-2009-08-19/include/linux/rfkill_backport.h:378:
note: previous definition of ?backport_rfkill_get_led_trigger_name? was here /root/wifi/compat-wireless-2009-08-19/net/rfkill/core.c:156: error:
redefinition of ?backport_rfkill_set_led_trigger_name? /root/wifi/compat-wireless-2009-08-19/include/linux/rfkill_backport.h:384:
note: previous definition of ?backport_rfkill_set_led_trigger_name? was here -------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20090820/3229c013/attachment.htm

#9 lore raw
Quoted 10 lines · Xaero

I have the same issue, using kernel 2.6.28.5:

/root/wifi/compat-wireless-2009-08-19/net/rfkill/core.c:150: error:
redefinition of ?backport_rfkill_get_led_trigger_name? /root/wifi/compat-wireless-2009-08-19/include/linux/rfkill_backport.h:378:
note: previous definition of ?backport_rfkill_get_led_trigger_name? was here /root/wifi/compat-wireless-2009-08-19/net/rfkill/core.c:156: error:
redefinition of ?backport_rfkill_set_led_trigger_name? /root/wifi/compat-wireless-2009-08-19/include/linux/rfkill_backport.h:384:
note: previous definition of ?backport_rfkill_set_led_trigger_name? was here

Please post your .config somewhere so I can download and use.

Luis