LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-02-2015, 09:40 AM   #1
tonj
Member
 
Registered: Sep 2008
Posts: 546

Rep: Reputation: 37
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.
 
Old 08-02-2015, 09:55 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
The c++ source code contains bugs, which can not be resolved easily.
 
Old 08-02-2015, 10:03 AM   #3
tonj
Member
 
Registered: Sep 2008
Posts: 546

Original Poster
Rep: Reputation: 37
when you say the 'c++ source code' does that mean the driver I downloaded? or is it code on my centos5 system?
 
Old 08-02-2015, 11:21 AM   #4
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
It is the driver source code.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Problem] Compiling/Installing ALFA Network driver Dark Page Linux - Newbie 5 06-22-2011 11:40 PM
DCOP errors when configuring ndiswrapper drivers for USB WLAN card (Kubuntu 10.04) netsense Linux - Networking 1 08-19-2010 07:56 PM
How To Install USB WLAN Driver for Xubuntu? ProNux Linux - Newbie 4 09-29-2008 05:53 AM
How To Install USB WLAN Driver for Xubuntu? ProNux General 1 09-28-2008 11:15 AM
Manually starting a USB WLAN key that uses the wlan-ng driver on Auditor PhantmShado Linux - Hardware 1 01-02-2006 05:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration