scientificlinuxforum.org QR code
Scientific Linux Forum.org



  Reply to this topicStart new topicStart Poll

> imposible to compile compat-wireless
yoplaid
 Posted: Sep 18 2011, 02:40 PM
Quote Post


SLF Newbie


Group: Members
Posts: 8
Member No.: 850
Joined: 18-September 11









Hi, I'm an electronic enginiering student. I've recently switched from Archlinux to SL looking for the red hat linux compatibility of many comertial software. I installed SL6 on an eeepc 1005HA. My wifi driver is the ath9k, which s loaded out-fo-the-box. But, as in Debian squeeze, it seems to be an old version, very slow. In debian I just compiled the the compat-wireless package and loaded the new module to have it working with perfect performance. But here I'm not able to do so. In order to compile it i installed bin-utils by doing "yum goupinstall "development tools" I also tried to install kernel-headers but it looked ok. This is what i get when i try to compile.
CODE

[gerard@dhcppc2 compat-wireless-2011-08-27]$ make
./scripts/gen-compat-autoconf.sh config.mk > include/linux/compat_autoconf.h
make -C /lib/modules/2.6.32-131.12.1.el6.i686/build M=/home/gerard/Escritorio/compat-wireless-2011-08-27 modules
make[1]: se ingresa al directorio `/usr/src/kernels/2.6.32-131.12.1.el6.i686'
 LD      /home/gerard/Escritorio/compat-wireless-2011-08-27/compat/built-in.o
 CC [M]  /home/gerard/Escritorio/compat-wireless-2011-08-27/compat/main.o
In file included from /home/gerard/Escritorio/compat-wireless-2011-08-27/include/linux/compat-2.6.h:28,
                from <línea-de-orden>:0:
/home/gerard/Escritorio/compat-wireless-2011-08-27/include/linux/compat-2.6.33.h:58: error: redefinición de ‘netdev_alloc_skb_ip_align’
include/linux/skbuff.h:1485: nota: la definición previa de ‘netdev_alloc_skb_ip_align’ estaba aquí
/home/gerard/Escritorio/compat-wireless-2011-08-27/include/linux/compat-2.6.33.h:121: error: redefinición de ‘pci_pcie_cap’
include/linux/pci.h:1351: nota: la definición previa de ‘pci_pcie_cap’ estaba aquí
/home/gerard/Escritorio/compat-wireless-2011-08-27/include/linux/compat-2.6.33.h:132: error: redefinición de ‘pci_is_pcie’
include/linux/pci.h:1450: nota: la definición previa de ‘pci_is_pcie’ estaba aquí
En el fichero incluído de /home/gerard/Escritorio/compat-wireless-2011-08-27/include/linux/compat-2.6.h:29,
                de <línea-de-orden>:0:
/home/gerard/Escritorio/compat-wireless-2011-08-27/include/linux/compat-2.6.34.h:133:1: aviso: se redefinió "netif_vdbg"
En el fichero incluído de /home/gerard/Escritorio/compat-wireless-2011-08-27/include/linux/compat-2.6.29.h:5,
                de /home/gerard/Escritorio/compat-wireless-2011-08-27/include/linux/compat-2.6.h:24,
                de <línea-de-orden>:0:
include/linux/netdevice.h:2361:1: aviso: esta es la ubicación de la definición previa
In file included from /home/gerard/Escritorio/compat-wireless-2011-08-27/include/linux/compat-2.6.h:29,
                from <línea-de-orden>:0:
/home/gerard/Escritorio/compat-wireless-2011-08-27/include/linux/compat-2.6.34.h:231: error: redefinición de ‘dma_set_coherent_mask’
include/linux/dma-mapping.h:130: nota: la definición previa de ‘dma_set_coherent_mask’ estaba aquí
In file included from /home/gerard/Escritorio/compat-wireless-2011-08-27/include/linux/compat-2.6.h:32,
                from <línea-de-orden>:0:
/home/gerard/Escritorio/compat-wireless-2011-08-27/include/linux/compat-2.6.37.h:23: error: redefinición de ‘skb_checksum_none_assert’
include/linux/skbuff.h:2101: nota: la definición previa de ‘skb_checksum_none_assert’ estaba aquí
make[3]: *** [/home/gerard/Escritorio/compat-wireless-2011-08-27/compat/main.o] Error 1
make[2]: *** [/home/gerard/Escritorio/compat-wireless-2011-08-27/compat] Error 2
make[1]: *** [_module_/home/gerard/Escritorio/compat-wireless-2011-08-27] Error 2
make[1]: se sale del directorio `/usr/src/kernels/2.6.32-131.12.1.el6.i686'
make: *** [modules] Error 2


Sorry but the output is in spanish, any way to get it in english?
I really don't know what going wrong. Well let me thank you in adveance for your time and help.
PMEmail Poster
^
helikaon
 Posted: Sep 18 2011, 06:52 PM
Quote Post


SLF Moderator
******

Group: Moderators
Posts: 521
Member No.: 4
Joined: 8-April 11









Hi,
it complains about some incompatibilities between SL 2.6.32 kernel sources and the wireless compat sources that is supposed to be for 2.6.33. You can even see the file names and row numbers in files that have conflict.

This is question for some programmer / debugger, cant help with this i'm afraid ...

cheers,



--------------------
PMEmail Poster
^
yoplaid
 Posted: Sep 18 2011, 07:34 PM
Quote Post


SLF Newbie


Group: Members
Posts: 8
Member No.: 850
Joined: 18-September 11









Thank you very much, i doesn't let me compile the wired driver to, i'll try to reinstall and compile it without updating the system. One never really knows what is the good combination of factors XD.
PMEmail Poster
^
michiel_ph
 Posted: Sep 19 2011, 10:13 AM
Quote Post


SLF Newbie


Group: Members
Posts: 14
Member No.: 833
Joined: 13-September 11









Without knowing the details of what you are trying to build, but looking at the output, i would check config.mk first. I guess you have to tweak it before you build the drivers.
PMEmail Poster
^
helikaon
 Posted: Sep 19 2011, 10:49 AM
Quote Post


SLF Moderator
******

Group: Moderators
Posts: 521
Member No.: 4
Joined: 8-April 11









QUOTE (michiel_ph @ Sep 19 2011, 10:13 AM)
Without knowing the details of what you are trying to build, but looking at the output, i would check config.mk first. I guess you have to tweak it before  you build the drivers.



I tried to compile this driver on my home desktop with SL 6.1, just for fun and it ends in same way. Problem is it looks for some functions in kernel headers, but, since these are headers comming with 2.6.32xxx, it simply says, it is different.

To solve this, i can see 2 ways:
- check the source files of the compat wireless - more likely question for developer, or skilled programmer, if you're neither, i'd try to ask on developer forum of the compat wireless and post this problem there
- or install nonstandard kernel to your SL 6 directly from kernel.org, e.g. install and run 2.6.36 vanilla kernel and install compat wireless drivers with corresponding number

either is not that easy to do (well maybe good programmer could fix it in no time)
In my case, if i wanted this 'speed up' in driver, i'd take option 2, which is doable for me, since i cant fix source....

cheeers,


--------------------
PMEmail Poster
^
michiel_ph
 Posted: Sep 19 2011, 11:41 AM
Quote Post


SLF Newbie


Group: Members
Posts: 14
Member No.: 833
Joined: 13-September 11









Just out of curiosity i tried to build the driver (from linuxwireless.org: http://www.orbit-lab.org/kernel/compat-wireless-2.6-stable/v2.6.32/compat-wireless-2.6.32.16.tar.bz2). It failed at the end:
CODE

/us1/home01/michiel/compat-wireless-2.6.32.16/drivers/net/wireless/ipw2x00/ipw2100.c: In function ‘ipw2100_alloc_device’:
/us1/home01/michiel/compat-wireless-2.6.32.16/drivers/net/wireless/ipw2x00/ipw2100.c:6060: error: ‘struct iw_public_data’ has no member named ‘ieee80211’
make[4]: *** [/us1/home01/michiel/compat-wireless-2.6.32.16/drivers/net/wireless/ipw2x00/ipw2100.o] Error 1
make[3]: *** [/us1/home01/michiel/compat-wireless-2.6.32.16/drivers/net/wireless/ipw2x00] Error 2
make[2]: *** [/us1/home01/michiel/compat-wireless-2.6.32.16/drivers/net/wireless] Error 2
make[1]: *** [_module_/us1/home01/michiel/compat-wireless-2.6.32.16] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-131.12.1.el6.x86_64'
make: *** [modules] Error 2
-bash-4.1$ pwd


From looking at the site, i suppose you need the driver for the 'older stable release' kernel version 2.6.32.

Since the hardware is not available here anyway, i stopped going any further.
PMEmail Poster
^
yoplaid
 Posted: Sep 19 2011, 02:38 PM
Quote Post


SLF Newbie


Group: Members
Posts: 8
Member No.: 850
Joined: 18-September 11









Hi, In theory, in the README file says it should work on any kernel above 2.6.24 and I have 2.6.32.

I reinstalled but I can't try to compile it because I'm not able to to do yum groupinstall "development tools" because in gets to slow and ends up failing.
I'll try to download the rpm's of make, gcc, linix-headers and se what happens.
PMEmail Poster
^
tux99
 Posted: Sep 20 2011, 12:49 AM
Quote Post


SLF Guru
********

Group: Members
Posts: 1253
Member No.: 224
Joined: 28-May 11









It seems there is a compat-wireless package for RHEL6 here:
http://people.redhat.com/sgruszka/compat-wireless-next/RHEL6/
Try installing that one, since it's for RHEL6 it should also work with SL6.

Here is the related web page:
http://people.redhat.com/sgruszka/compat_wireless.html


--------------------
My personal SL6 repository, specialized in audio/video software: http://pkgrepo.linuxtech.net/el6/
(can be used together with EPEL and ELRepo repositories)
PM
^
yoplaid
 Posted: Sep 21 2011, 08:45 PM
Quote Post


SLF Newbie


Group: Members
Posts: 8
Member No.: 850
Joined: 18-September 11









Thank you very much.
I added the sugested repositories in the link given (having to change the path to point to RHEL6) and installed kmod-compat-wireless and kmod-compat-wireless-next, and it is still slow like hell. Any other piece of advice??
PMEmail Poster
^
tux99
 Posted: Sep 22 2011, 04:40 AM
Quote Post


SLF Guru
********

Group: Members
Posts: 1253
Member No.: 224
Joined: 28-May 11









QUOTE (yoplaid @ Sep 21 2011, 09:45 PM)
Thank you very much.
I added the sugested repositories in the link given (having to change the path to point to RHEL6) and installed kmod-compat-wireless and kmod-compat-wireless-next, and it is still slow like hell. Any other  piece of advice??


Maybe try contacting the author of those packages:
Stanislaw Gruszka: sgruszka at redhat.com

Mod's edit: edited the mailaddress wink.gif

Tux99's comment to Mod's edit: I did consider disguising that email address, but it's already all over google (that's how I found it), so being here won't make any difference to the spam load it certainly already gets (it's a work email anyway, not a private one, and I would expect that redhat has good spam filters like most big companies).


--------------------
My personal SL6 repository, specialized in audio/video software: http://pkgrepo.linuxtech.net/el6/
(can be used together with EPEL and ELRepo repositories)
PM
^
redman
 Posted: Sep 22 2011, 10:52 AM
Quote Post


SLF Admin
********

Group: Admins
Posts: 1924
Member No.: 2
Joined: 8-April 11









QUOTE (tux99 @ Sep 22 2011, 06:40 AM)
I did consider disguising that email address, but it's already all over google (that's how I found it), so being here won't make any difference to the spam load it certainly already gets (it's a work email anyway, not a private one, and I would expect that redhat has good spam filters like most big companies).

Of course I didn't check if it is already available on the internet.
Nevertheless, I consider it to be polite to disguise it anyway wink.gif


--------------------
What is SL? - Forum Rules - Info on 3rd Party Repos - How to post images - How to post large text / config files

Desktop: ASUS P5QPL-AM, Intel Dual-Core E6500, 4GB DDR2, ASUS GeForce GT 430 1GB, SL6.5 x86_64
Laptop: ASUS X58L, Intel Dual-Core T3200, 3GB DDR2, Intel GMA X3100, RHEL6.5 x86_64
Test box: Intel S5000PSL, 2x Intel Xeon E5310, 8GB ECC DDR2 FB-DIMM, ASUS GeForce GT 220 1GB, RHEL7 x86_64 Beta
PMEmail Poster
^
yoplaid
 Posted: Sep 22 2011, 02:20 PM
Quote Post


SLF Newbie


Group: Members
Posts: 8
Member No.: 850
Joined: 18-September 11









I'll try not to bother him unless it is absolutly necessary. Today i'll give a try to compile form a new instalation now from dvd and with the system updated from a lan, not from the wifi.
PD: Today at the university i gave a try to SL 5 in the microelectronic design lab and I liked, I'm looking forward having a full working setup on my netbook. smile.gif
PMEmail Poster
^
yoplaid
 Posted: Sep 22 2011, 02:51 PM
Quote Post


SLF Newbie


Group: Members
Posts: 8
Member No.: 850
Joined: 18-September 11









HI! Today I got a diferent error:

CODE

[gerard@gerard-netbook compat-wireless-3.1-rc1-1]$ make
/home/gerard/Descargas/compat-wireless-3.1-rc1-1/config.mk:212: "WARNING: CONFIG_CFG80211_WEXT will be deactivated or not working because kernel was compiled with CONFIG_WIRELESS_EXT=n. Tools using wext interface like iwconfig will not work. To activate it build your kernel e.g. with CONFIG_LIBIPW=m."
./scripts/gen-compat-autoconf.sh config.mk > include/linux/compat_autoconf.h
make -C /lib/modules/2.6.32-131.0.15.el6.i686/build M=/home/gerard/Descargas/compat-wireless-3.1-rc1-1 modules
make: *** /lib/modules/2.6.32-131.0.15.el6.i686/build: No existe el fichero o el directorio.  Alto.
make: *** [modules] Error 2

uname -r outputs 2.6.32-131.0.15.el6.i686

and ls -la /lib/modules/2.6.32-131.0.15.el6.i686/

CODE

total 3120
drwxr-xr-x.  6 root root   4096 sep 22 16:08 .
dr-xr-xr-x.  5 root root   4096 sep 22 16:12 ..
lrwxrwxrwx.  1 root root     49 sep 21 18:34 build -> ../../../usr/src/kernels/2.6.32-131.0.15.el6.i686
drwxr-xr-x.  2 root root   4096 may 21 17:23 extra
drwxr-xr-x. 10 root root   4096 sep 21 18:34 kernel
-rw-r--r--.  1 root root 522026 sep 22 16:08 modules.alias
-rw-r--r--.  1 root root 503056 sep 22 16:08 modules.alias.bin
-rw-r--r--.  1 root root   1364 may 21 17:23 modules.block
-rw-r--r--.  1 root root     69 sep 22 16:08 modules.ccwmap
-rw-r--r--.  1 root root 187784 sep 22 16:08 modules.dep
-rw-r--r--.  1 root root 277773 sep 22 16:08 modules.dep.bin
-rw-r--r--.  1 root root     68 may 21 17:23 modules.drm
-rw-r--r--.  1 root root    665 sep 22 16:08 modules.ieee1394map
-rw-r--r--.  1 root root    141 sep 22 16:08 modules.inputmap
-rw-r--r--.  1 root root   1852 sep 22 16:08 modules.isapnpmap
-rw-r--r--.  1 root root     29 may 21 17:23 modules.modesetting
-rw-r--r--.  1 root root   1738 may 21 17:23 modules.networking
-rw-r--r--.  1 root root     74 sep 22 16:08 modules.ofmap
-rw-r--r--.  1 root root  73468 may 21 17:23 modules.order
-rw-r--r--.  1 root root 362916 sep 22 16:08 modules.pcimap
-rw-r--r--.  1 root root    883 sep 22 16:08 modules.seriomap
-rw-r--r--.  1 root root 182076 sep 22 16:08 modules.symbols
-rw-r--r--.  1 root root 233669 sep 22 16:08 modules.symbols.bin
-rw-r--r--.  1 root root 773602 sep 22 16:08 modules.usbmap
lrwxrwxrwx.  1 root root      5 sep 21 18:34 source -> build
drwxr-xr-x.  2 root root   4096 may 21 17:23 updates
drwxr-xr-x.  2 root root   4096 sep 21 18:34 vdso

Where
lrwxrwxrwx. 1 root root 49 sep 21 18:34 build -> ../../../usr/src/kernels/2.6.32-131.0.15.el6.i686
is in red.
In /usr/kernels/ i onli have 2.6.32-131.12.1.el6.i686 so I supose that i need to get the kernel sources of the 2.6.32-131.0.15.el6.i686 version, any idea of how to get it?
Thank you very much
Thanks

PMEmail Poster
^
tux99
 Posted: Sep 22 2011, 03:50 PM
Quote Post


SLF Guru
********

Group: Members
Posts: 1253
Member No.: 224
Joined: 28-May 11









When building kernel modules the kernel source must match the currently installed and active kernel.


Apart from that I very much doubt that your new attempt will succeed. If you look at the source rpm from Stanislaw you will notice that he uses a rather big patch file to get the original code to build. This means the original code won't build on RHEL6/SL6 without patches.


--------------------
My personal SL6 repository, specialized in audio/video software: http://pkgrepo.linuxtech.net/el6/
(can be used together with EPEL and ELRepo repositories)
PM
^
yoplaid
 Posted: Sep 22 2011, 03:51 PM
Quote Post


SLF Newbie


Group: Members
Posts: 8
Member No.: 850
Joined: 18-September 11









I solved the kernel issue but when i compile gives the same error as the begining. I'm starting to think that it is imposible.
PMEmail Poster
^
yoplaid
 Posted: Sep 23 2011, 10:21 PM
Quote Post


SLF Newbie


Group: Members
Posts: 8
Member No.: 850
Joined: 18-September 11









Finally a compiled it! i just used a version for this kernel, but it must be and old one because the performance is still very poor.
PMEmail Poster
^
helikaon
 Posted: Sep 24 2011, 05:46 AM
Quote Post


SLF Moderator
******

Group: Moderators
Posts: 521
Member No.: 4
Joined: 8-April 11









QUOTE (yoplaid @ Sep 23 2011, 10:21 PM)
Finally a compiled it! i just used  a version for this kernel, but it must be and old one because the performance is still very poor.


Exactly. If you look for the new driver feature, you need newer source, if you compile newer source, it wont compile .... etc :-)
Anyway, have you thought about compiling vanilla kernel and then on top of it this driver? It would mean heavy customization, but i'd do it if i wanted that speed up as much as you ...

cheers,


--------------------
PMEmail Poster
^
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll