LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
LinkBack Search this Thread
Old 06-22-2005, 09:28 PM   #1
litlmary
Member
 
Registered: May 2005
Location: Texas, somewhere near Houston (I think)
Distribution: See my sig
Posts: 299

Rep: Reputation: 30
Wireless driver won't compile in FC4


First, I'm sorry for spamming this question. I asked it in a different forum and got no help, and this forum seems more appropriate.

I have a Blitzz PC Card wireless NIC for my laptop. It uses the RealTek 8180 chipset. I hate the NDIS driver that this card uses in XP, so I am avoiding ndiswrapper if I can. Blitzz also provides a ridiculously bad and outdated linux driver on their web site, so I won't touch that.

Luckily, RealTek has an AWESOME driver on their web site that was written with FC3 in mind. I used it in an install of FC3 until recently with excellent results. Weirdly, part of the driver is closed, and you have to compile the open part like normal. But it all works.

My filesystem got horribly corrupted a few days ago and rather than beat my head on the wall trying to fix it, I just went with a fresh install of FC4.

Now when I try to compile the driver, the shell barfs this at me:

Code:
make -C /lib/modules/2.6.11-1.1369_FC4/build SUBDIRS=/data/rtl MODVERDIR=/data/rtl modules
make[1]: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
  CC [M]  /data/rtl/r8180_pci_init.o
/data/rtl/r8180_pci_init.c: In function ‘rtl8180_pci_probe’:
/data/rtl/r8180_pci_init.c:146: error: ‘struct pci_dev’ has no member named ‘slot_name’
/data/rtl/r8180_pci_init.c:150: error: ‘struct pci_dev’ has no member named ‘slot_name’
make[2]: *** [/data/rtl/r8180_pci_init.o] Error 1
make[1]: *** [_module_/data/rtl] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
make: *** [modules] Error 2
A bunch of googling turned up similar cases from other people, but with different drivers. The common factor seems to be gcc4. Most of them found remedies by having some genius look at the driver and suggest minor changes.

So, my educated guess is that this driver is not compatible with gcc4, and I hope I can find someone smarter than me to figure out a remedy.

Then again, maybe I am way off track and someone can tell me a quick fix to get the driver to compile.

I really want to get this thing working because I am having to boot into XP to search for solutions, then boot into Linux to try them, then boot back into XP if they don't work, then boot back into Linux to try a new remedy, and on and on and on. It would be nice if I could just stay in Linux and do it all.

TIA folks!
 
Old 06-24-2005, 12:20 PM   #2
cidkato
LQ Newbie
 
Registered: Dec 2004
Posts: 26

Rep: Reputation: 15
Not sure if this will help, but from http://www.mjmwired.net/resources/mj...fc4.shtml#gcc3 ..
"Install GCC 3.2

16 June 2005

Some applications will NOT compile in GCC 4.0. You can install GCC 3.2
to allow compiling applications which do not yet support GCC 4.0. Make sure
to have the following RPM's installed. These are included with the CD's or
DVD or online. Running 'yum install' on these names will also work.

compat-gcc-32 (on CD-disk3)
compat-gcc-32-c++ (on CD-disk4)

To use either, run 'gcc32' or 'g++32'.
"

Then possibly using "./configure --cc=gcc32" when you install it.

No clue if that will work,
Cid.
 
Old 06-25-2005, 09:57 PM   #3
litlmary
Member
 
Registered: May 2005
Location: Texas, somewhere near Houston (I think)
Distribution: See my sig
Posts: 299

Original Poster
Rep: Reputation: 30
I don't see any reason why that shouldn't work. I was thinking about installing gcc 3.2, but I had no idea that it was included with FC4, or that it could coexist with gcc4.

Now, this driver is compiled using a makefile. All I have to do is untar the driver into a directory, make minor changes to the makefile for my kernel, and then type "make" It does the rest.

"Make" does not respond to the argument "--cc=gcc32" so it still tries to compile using gcc4 and complains about it.

How do I tell it to use the older compiler? I tried removing gcc4, but there is a bug in FC4 that makes it difficult.

Thanks for the help!
 
Old 02-01-2006, 12:55 AM   #4
scottruth
LQ Newbie
 
Registered: Jan 2006
Posts: 1

Rep: Reputation: 0
if you comment out lines 146 and 150 in r8180_pci_init.c you should get a successful compile. Those lines just print error messages and are not absolutely required.

It should look something like this:
Quote:
#ifdef RTL_IO_MAP

pio_start = (unsigned long)pci_resource_start (pdev, 0);
pio_len = (unsigned long)pci_resource_len (pdev, 0);
pio_flags = (unsigned long)pci_resource_flags (pdev, 0);

if (!(pio_flags & IORESOURCE_IO)) {
// DPRINTK_OUTINFO("%s: region #0 not a PIO resource, aborting\n", pdev->slot_name);
goto fail;
}
else{
// DPRINTK_OUTINFO("%s: region #0 IS a PIO resource!\n", pdev->slot_name);
}

DPRINTK_OUTINFO("request_region(0x%08lx,0x%08lx) !\n", pio_start,pio_len );
if( ! request_region( pio_start, pio_len, rtl8180_driver_name ) ){
DPRINTK_OUTINFO("request_region failed!\n");
goto fail;
}

let me know what you get.

Scott
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FC4 kernel compile issues silentdragon48 Fedora 4 09-04-2005 05:57 PM
setting up ipw2200 wireless driver in FC4 ardellin Linux - Wireless Networking 2 07-31-2005 11:36 PM
ndiswrapper compile problem FC4 totenengel Fedora 1 06-27-2005 07:38 AM
Can't compile wireless driver - missing include file?! soultaco Linux - Laptop and Netbook 1 05-12-2004 11:14 PM
how to compile a wireless driver? odious1 Linux - Hardware 8 11-24-2003 12:54 PM


All times are GMT -5. The time now is 02:37 AM.

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
Open Source Consulting | Domain Registration