LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-20-2008, 04:17 PM   #1
j_75080
Member
 
Registered: Aug 2003
Location: Richardson, Texas
Distribution: Fedora 14/PC Linux/Tiny Core//TinyMe
Posts: 87

Rep: Reputation: 15
Unhappy Realtek 8187B RHEL4 Driver Compile Problem


I have tried compiling the module for the Realtek 8187B using the rtl8187B_linux_26.1036.0708.2008.tar.gz file received from Realtek with compiling errors as shown:

[root@localhost rtl8187B_linux_26.1036.0708.2008]# ./makedrv
rm -fr *.mod.c *.mod *.o .*.cmd *.mod.* *.ko *.o *~
make -C /lib/modules/2.6.9-78.0.1.EL/build M=/root/Desktop/Realtek 8187B Linux D river/rtl8187B_linux_26.1036.0708.2008/ieee80211 CC=gcc modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-78.0.1.EL-i686'
make[1]: *** No rule to make target `8187B'. Stop.
make[1]: Leaving directory `/usr/src/kernels/2.6.9-78.0.1.EL-i686'
make: *** [modules] Error 2
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
make -C /lib/modules/2.6.9-78.0.1.EL/build M=/root/Desktop/Realtek 8187B Linux D river/rtl8187B_linux_26.1036.0708.2008/rtl8187 CC=gcc modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-78.0.1.EL-i686'
make[1]: *** No rule to make target `8187B'. Stop.
make[1]: Leaving directory `/usr/src/kernels/2.6.9-78.0.1.EL-i686'
make: *** [modules] Error 2


In addition, I tried compiling Johnny Cuervo's modified file, even though his is for a kernel-2.6.24 and mine is a kernel-2.6.9 in my RHEL4 WS OS. My compiling errors for his file is shown:

[root@localhost rtl8187b-modified]# ./makedrv
rm -fr *.mod.c *.mod *.o .*.cmd *.mod.* *.ko *.o *~
make -C /lib/modules/2.6.9-78.0.1.EL/build M=/root/Desktop/Files/rtl8187b-modified/ieee80211 CC=gcc modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-78.0.1.EL-i686'
CC [M] /root/Desktop/Files/rtl8187b-modified/ieee80211/ieee80211_softmac.o
/root/Desktop/Files/rtl8187b-modified/ieee80211/ieee80211_softmac.c: In function `ieee80211_probe_resp':
/root/Desktop/Files/rtl8187b-modified/ieee80211/ieee80211_softmac.c:710: warning: ISO C90 forbids mixed declarations and code
/root/Desktop/Files/rtl8187b-modified/ieee80211/ieee80211_softmac.c:1554:4: warning: #warning CHECK_LOCK_HERE
/root/Desktop/Files/rtl8187b-modified/ieee80211/ieee80211_softmac.c:1594:2: warning: #warning CHECK_LOCK_HERE
/root/Desktop/Files/rtl8187b-modified/ieee80211/ieee80211_softmac.c:1554:4: warning: #warning CHECK_LOCK_HERE
/root/Desktop/Files/rtl8187b-modified/ieee80211/ieee80211_softmac.c:1594:2: warning: #warning CHECK_LOCK_HERE
CC [M] /root/Desktop/Files/rtl8187b-modified/ieee80211/ieee80211_rx.o
In file included from /root/Desktop/Files/rtl8187b-modified/ieee80211/ieee80211_rx.c:46:
/root/Desktop/Files/rtl8187b-modified/ieee80211/ieee80211.h:1023: error: redefinition of 'is_multicast_ether_addr'
include/linux/etherdevice.h:60: error: previous definition of 'is_multicast_ether_addr' was here
/root/Desktop/Files/rtl8187b-modified/ieee80211/ieee80211.h:1030: error: redefinition of 'is_broadcast_ether_addr'
include/linux/etherdevice.h:65: error: previous definition of 'is_broadcast_ether_addr' was here
make[2]: *** [/root/Desktop/Files/rtl8187b-modified/ieee80211/ieee80211_rx.o] Error 1
make[1]: *** [_module_/root/Desktop/Files/rtl8187b-modified/ieee80211] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.9-78.0.1.EL-i686'
make: *** [modules] Error 2
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
make -C /lib/modules/2.6.9-78.0.1.EL/build M=/root/Desktop/Files/rtl8187b-modified/rtl8187 CC=gcc modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-78.0.1.EL-i686'
CC [M] /root/Desktop/Files/rtl8187b-modified/rtl8187/r8187_core.o
In file included from /root/Desktop/Files/rtl8187b-modified/rtl8187/r8187.h:50,
from /root/Desktop/Files/rtl8187b-modified/rtl8187/r8187_core.c:64:
/root/Desktop/Files/rtl8187b-modified/rtl8187/ieee80211.h:1023: error: redefinition of 'is_multicast_ether_addr'
include/linux/etherdevice.h:60: error: previous definition of 'is_multicast_ether_addr' was here
/root/Desktop/Files/rtl8187b-modified/rtl8187/ieee80211.h:1030: error: redefinition of 'is_broadcast_ether_addr'
include/linux/etherdevice.h:65: error: previous definition of 'is_broadcast_ether_addr' was here
/root/Desktop/Files/rtl8187b-modified/rtl8187/r8187_core.c: In function `rtl8180_rtx_disable':
/root/Desktop/Files/rtl8187b-modified/rtl8187/r8187_core.c:1255: warning: int format, long unsigned int arg (arg 2)
/root/Desktop/Files/rtl8187b-modified/rtl8187/r8187_core.c: In function `rtl8187_usb_initendpoints':
/root/Desktop/Files/rtl8187b-modified/rtl8187/r8187_core.c:2277: warning: ISO C90 forbids mixed declarations and code
/root/Desktop/Files/rtl8187b-modified/rtl8187/r8187_core.c:2281: warning: ISO C90 forbids mixed declarations and code
/root/Desktop/Files/rtl8187b-modified/rtl8187/r8187_core.c:2310: warning: assignment from incompatible pointer type
/root/Desktop/Files/rtl8187b-modified/rtl8187/r8187_core.c:2256: warning: unused variable `i'
/root/Desktop/Files/rtl8187b-modified/rtl8187/r8187_core.c: In function `rtl8187_usb_deleteendpoints':
/root/Desktop/Files/rtl8187b-modified/rtl8187/r8187_core.c:2328: warning: int format, long unsigned int arg (arg 2)
/root/Desktop/Files/rtl8187b-modified/rtl8187/r8187_core.c: In function `rtl8180_adapter_start':
/root/Desktop/Files/rtl8187b-modified/rtl8187/r8187_core.c:3051: warning: unused variable `ieee'
/root/Desktop/Files/rtl8187b-modified/rtl8187/r8187_core.c:3052: warning: unused variable `InitWirelessMode'
/root/Desktop/Files/rtl8187b-modified/rtl8187/r8187_core.c:3053: warning: unused variable `SupportedWirelessMode'
/root/Desktop/Files/rtl8187b-modified/rtl8187/r8187_core.c:3054: warning: unused variable `bInvalidWirelessMode'
/root/Desktop/Files/rtl8187b-modified/rtl8187/r8187_core.c: In function `rtl8180_irq_rx_tasklet':
/root/Desktop/Files/rtl8187b-modified/rtl8187/r8187_core.c:3769: warning: ISO C90 forbids mixed declarations and code
make[2]: *** [/root/Desktop/Files/rtl8187b-modified/rtl8187/r8187_core.o] Error 1
make[1]: *** [_module_/root/Desktop/Files/rtl8187b-modified/rtl8187] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.9-78.0.1.EL-i686'
make: *** [modules] Error 2

Does anyone know what I am doing wrong and have an idea how to get the Realtek 8187B driver installed for the kernel-2.6.9?

Thank you,
John
 
Old 09-20-2008, 04:29 PM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Quote:
make[1]: *** No rule to make target `8187B'. Stop.
There's your problem. Hunt for the command which says "make 8187B". Direct the complaint to realtek, referencing "rtl8187B_linux_26.1036.0708.2008.tar.gz". They should write their install scripts better.

Quote:
mine is a kernel-2.6.9 in my RHEL4 WS OS
Which will also be a problem - that is a very old kernel. You need to update this first.

That the driver for 2.6.24 would not compile for 2.6.9 is expected behavior. To fix this, first install 2.6.24 kernel and headers. Then retry. (Quite a lot has changed between the two - including gcc and it's libs.)

Underscoring this whole issue is that you are using RHEL4 (without subscribing to RHN?) This will be very difficult to maintain. Strongly urge you consider CentOS in it's place. This way you will run RHEL5 instead, only with nicer tools and better support.
 
Old 09-22-2008, 11:17 PM   #3
AB9IL
LQ Newbie
 
Registered: Sep 2008
Posts: 7

Rep: Reputation: 0
Hi John,

Any luck with the wireless driver? I used the RTL8187B for several months, and had good luck with Cuervo's driver - my laptop had the 0bda:8197 device. After kernel 2.6.24, my wireless card really had problems making connections.

I eventually grew tired of the lack of evolution in those drivers and changed to a RT2860 device, and am happy with it. Good news for you - the 2.6.27 kernel will have good support for the RTL8187B.

If you have the make instructions fixed, the driver ought to compile okay.
 
Old 06-01-2009, 11:19 AM   #4
j_75080
Member
 
Registered: Aug 2003
Location: Richardson, Texas
Distribution: Fedora 14/PC Linux/Tiny Core//TinyMe
Posts: 87

Original Poster
Rep: Reputation: 15
Smile [SOLVED] Realtek 8187B RHEL4/RHEL5 Driver Compile Problem

There was a space in my absolute path of the directory when I tried to compile the module and this caused it to fail. If one has at least one space in a folder name used in the absolute directory, the module will not compile.

My path used to originally compile the sources was:
/root/Desktop/TrendNET TEW-424UB/Realtek 8187B Linux Driver/rtl8187B_linux_26.1036.0708.2008
 
Old 06-01-2009, 10:19 PM   #5
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Amnday! I got it half right ... the command "make 8187B" is on the socand line of code:

make -C /lib/modules/2.6.9-78.0.1.EL/build M=/root/Desktop/Realtek 8187B Linux D river/rtl8187B_linux_26.1036.0708.2008/ieee80211 CC=gcc modules

Will be read as:
make -C /lib/modules/2.6.9-78.0.1.EL/build M=/root/Desktop/Realtek 8187B

Surely this is still a bug in the mkdrv script? I'll have to keep my eyes peeled in future.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to compile driver for Realtek 8168 ethernet controller in Mepis 7.0 64 release? MikeB23930 MEPIS 9 12-13-2009 05:30 AM
Realtek 8111/8168 LAN Driver will not install on RHEL4.5 Astol Linux - Networking 6 05-08-2008 11:36 AM
Fedora 8, Wireless Realtek 8187B, Toshiba Satellite uncholowapo Fedora 16 04-26-2008 05:26 PM
Realtek 8139 under RHEL4 visitnag Linux - Networking 9 03-14-2008 06:04 AM
Realtek 8139 driver compile jysse Debian 2 08-01-2004 08:59 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration