LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   errors compiling driver for alfa wlan usb (https://www.linuxquestions.org/questions/linux-hardware-18/errors-compiling-driver-for-alfa-wlan-usb-4175549632/)

tonj 08-02-2015 09:40 AM

errors compiling driver for alfa wlan usb
 
I'm running centos 5.10 64 bit and trying to compile a driver for an alfa usb wlan device, model AWUS036H.
#uname -r gives 2.6.18-371.12.1.el5 so I downloaded and extracted rtl8187L_linux_1041.0209.2012.tar.gz from the alfa website however I've getting a ton or errors when I run make:
Code:

# make
make[1]: Entering directory `/usr/src/kernels/2.6.18-371.12.1.el5-x86_64'
  CC [M]  /home/packages/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.o
In file included from /home/packages/rtl8187L_linux_1041.0209.2012/rtl8187/r8187.h:62,
                from /home/packages/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:60:
/home/packages/rtl8187L_linux_1041.0209.2012/rtl8187/../ieee80211/ieee80211.h:54: error: redeclaration of enumerator ‘false’
include/linux/stddef.h:16: error: previous definition of ‘false’ was here
/home/packages/rtl8187L_linux_1041.0209.2012/rtl8187/../ieee80211/ieee80211.h:54: error: redeclaration of enumerator ‘true’
include/linux/stddef.h:18: error: previous definition of ‘true’ was here
/home/packages/rtl8187L_linux_1041.0209.2012/rtl8187/../ieee80211/ieee80211.h:54: error: conflicting types for ‘bool’
include/linux/types.h:36: error: previous declaration of ‘bool’ was here
/home/packages/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c: In function ‘rtl8180_tx’:
/home/packages/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:1382: warning: cast from pointer to integer of different size
/home/packages/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c: In function ‘rtl8187_usb_initendpoints’:
/home/packages/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:1588: warning: cast from pointer to integer of different size
/home/packages/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c: In function ‘GPIOChangeRFWorkItemCallBack’:
/home/packages/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:4247: warning: unused variable ‘ieee’
make[2]: *** [/home/packages/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.o] Error 1
make[1]: *** [_module_/home/packages/rtl8187L_linux_1041.0209.2012/rtl8187] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-371.12.1.el5-x86_64'
make: *** [all] Error 2

I've been trawling google but can't find a solution to this, maybe I'm missing some simple package but i don't know what it is. I have gcc and gcc-c++ and kernel-devel installed, thanks for any help.

Keruskerfuerst 08-02-2015 09:55 AM

The c++ source code contains bugs, which can not be resolved easily.

tonj 08-02-2015 10:03 AM

when you say the 'c++ source code' does that mean the driver I downloaded? or is it code on my centos5 system?

Keruskerfuerst 08-02-2015 11:21 AM

It is the driver source code.


All times are GMT -5. The time now is 09:48 PM.