Fedora Linux Support Community & Resources Center
  #1  
Old 25th November 2007, 01:39 PM
ackray Offline
Registered User
 
Join Date: Nov 2007
Posts: 46
RTL8185 error 2?

Laptop is a Gateway MT3705. 1 Gig ram Dual Core. 80 gig HD

Downloaded the realtek drivers into my user directory. su into root mode and run ./makedrv

it ends with these error messages:

/home/ray/Download/rtl8185_linux_26.1010.0531.2006/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:2953: error: ‘INIT_WORK’ undeclared (first use in this function)
/home/ray/Download/rtl8185_linux_26.1010.0531.2006/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:2953: error: (Each undeclared identifier is reported only once
/home/ray/Download/rtl8185_linux_26.1010.0531.2006/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:2953: error: for each function it appears in.)
/home/ray/Download/rtl8185_linux_26.1010.0531.2006/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:3276: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:64)
/home/ray/Download/rtl8185_linux_26.1010.0531.2006/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:3276: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/home/ray/Download/rtl8185_linux_26.1010.0531.2006/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c: In function ‘rtl8180_pci_probe’:
/home/ray/Download/rtl8185_linux_26.1010.0531.2006/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:4031: error: ‘struct net_device’ has no member named ‘get_wireless_stats’
/home/ray/Download/rtl8185_linux_26.1010.0531.2006/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c: In function ‘rtl8180_pci_module_init’:
/home/ray/Download/rtl8185_linux_26.1010.0531.2006/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:4156: error: implicit declaration of function ‘pci_module_init’
make[2]: *** [/home/ray/Download/rtl8185_linux_26.1010.0531.2006/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.o] Error 1
make[1]: *** [_module_/home/ray/Download/rtl8185_linux_26.1010.0531.2006/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.23.1-49.fc8-i686'
make: *** [modules] Error 2
Reply With Quote
  #2  
Old 26th November 2007, 12:45 PM
HaydnH Offline
Registered User
 
Join Date: Feb 2005
Location: London, UK
Posts: 333
"error: ‘INIT_WORK’ undeclared (first use in this function)" Usualy this is due to a missing library. If you look higher up in the errors - where the first error line is - you'll probably see a line saying like "could not find file: something.h". This will help determine what is missing.
Reply With Quote
  #3  
Old 26th November 2007, 03:32 PM
ackray Offline
Registered User
 
Join Date: Nov 2007
Posts: 46
Thanks, I'll take a look later on today.
Reply With Quote
  #4  
Old 26th November 2007, 03:46 PM
HaydnH Offline
Registered User
 
Join Date: Feb 2005
Location: London, UK
Posts: 333
btw: It's probably kernel headers, you could try doing a "yum install kernel-devel kernel-headers" if you don't want to look through the errors - although it's good practice for the future.
Reply With Quote
  #5  
Old 26th November 2007, 05:55 PM
ackray Offline
Registered User
 
Join Date: Nov 2007
Posts: 46
--> Running transaction check
---> Package kernel-devel.i686 0:2.6.23.1-42.fc8 set to be erased
---> Package kernel-devel.i586 0:2.6.23.1-42.fc8 set to be installed
--> Finished Dependency Resolution


You might be on to something!
Reply With Quote
  #6  
Old 26th November 2007, 08:42 PM
ackray Offline
Registered User
 
Join Date: Nov 2007
Posts: 46
OK,Here are the first errors that I saw.

:391: warning: ISO C90 forbids mixed declarations and code
/home/ray/Download/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c
:412: warning: passing argument 2 of ‘queue_delayed_work’ from incompatible pointer type

So far though I can't figure out what I did wrong.

Let me know if you want me to include the whole file.
Reply With Quote
  #7  
Old 27th November 2007, 10:11 AM
HaydnH Offline
Registered User
 
Join Date: Feb 2005
Location: London, UK
Posts: 333
Warnings are fine, you can ignore them. What's the lines around the first error line?
Reply With Quote
  #8  
Old 29th November 2007, 07:22 PM
bigstras Offline
Registered User
 
Join Date: Dec 2006
Posts: 2
i am getting exact same errors on gateway mx6426 with rtl8185 chipset running FC6

[root@localhost rtl8185_linux_26.1010.0531.2006]
# uname -r
2.6.22.9-61.fc6
# ./makedrv
rm -f *.mod.c *.mod *.o .*.cmd *.ko
rm -rf /home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/tmp
make -C /lib/modules/2.6.22.9-61.fc6/build M=/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211 CC=gcc modules
make[1]: Entering directory `/usr/src/kernels/2.6.22.9-61.fc6-i686'
CC [M] /home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.o
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_softmac_scan_wq’:
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:391: warning: ISO C90 forbids mixed declarations and code
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:412: warning: passing argument 2 of ‘queue_delayed_work’ from incompatible pointer type
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_softmac_stop_scan’:
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:486: warning: passing argument 1 of ‘cancel_delayed_work’ from incompatible pointer type
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_associate_abort’:
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:885: warning: passing argument 2 of ‘queue_delayed_work’ from incompatible pointer type
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:1359:4: warning: #warning CHECK_LOCK_HERE
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:1399:2: warning: #warning CHECK_LOCK_HERE
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_rx_frame_softmac’:
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:1470: warning: ISO C90 forbids mixed declarations and code
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_stop_protocol’:
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:2059: warning: passing argument 1 of ‘cancel_delayed_work’ from incompatible pointer type
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:2167:78: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_softmac_init’:
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:2167: error: ‘INIT_WORK’ undeclared (first use in this function)
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:2167: error: (Each undeclared identifier is reported only once
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:2167: error: for each function it appears in.)
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:2168:88: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:2169:94: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:2170:96: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:2171:82: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:2172:82: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_softmac_free’:
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:2191: warning: passing argument 1 of ‘cancel_delayed_work’ from incompatible pointer type
make[2]: *** [/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.o] Error 1
make[1]: *** [_module_/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.22.9-61.fc6-i686'
make: *** [modules] Error 2
rm -f *.mod.c *.mod *.o .*.cmd *.ko
rm -rf /home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/tmp
make -C /lib/modules/2.6.22.9-61.fc6/build M=/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1 CC=gcc modules
make[1]: Entering directory `/usr/src/kernels/2.6.22.9-61.fc6-i686'
CC [M] /home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.o
In file included from /home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:61:
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180.h:29:26: error: linux/config.h: No such file or directory
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c: In function ‘rtl8180_rx’:
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:2080: warning: implicit declaration of function ‘rdtsc’
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:2953:67: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c: In function ‘rtl8180_init’:
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:2953: error: ‘INIT_WORK’ undeclared (first use in this function)
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:2953: error: (Each undeclared identifier is reported only once
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:2953: error: for each function it appears in.)
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:3276: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:66)
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:3276: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c: In function ‘rtl8180_pci_probe’:
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:4031: error: ‘struct net_device’ has no member named ‘get_wireless_stats’
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c: In function ‘rtl8180_pci_module_init’:
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:4156: warning: implicit declaration of function ‘pci_module_init’
make[2]: *** [/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.o] Error 1
make[1]: *** [_module_/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.22.9-61.fc6-i686'
make: *** [modules] Error 2

Any more ideas?

Last edited by bigstras; 29th November 2007 at 07:24 PM.
Reply With Quote
  #9  
Old 29th November 2007, 10:24 PM
ackray Offline
Registered User
 
Join Date: Nov 2007
Posts: 46
Ok first error seems to be:

:2167:78: error: macro "INIT_WORK" passed 3 arguments, but takes just 2


I attached the makefile results if anyone wants to take a look.

Thanks.
Attached Files
File Type: txt makefile.txt (9.3 KB, 177 views)
Reply With Quote
  #10  
Old 5th December 2007, 11:04 PM
lovingfamily511 Offline
Registered User
 
Join Date: Jun 2007
Location: SF Bay Area
Age: 63
Posts: 28
Anyone got a set of good answers for rtl8185 wireless yet? Lots of chatter, but not a lot of success stories, that I can see. Myself, I'm one step away from just breaking down and buying a more linux-friendly card. ??? Thanks!
Reply With Quote
  #11  
Old 6th December 2007, 01:33 AM
bigstras Offline
Registered User
 
Join Date: Dec 2006
Posts: 2
Lots of work, and I finally got RTL8185 working with FC6

1) installed the 2.6.22.9-61.stk16 16K stack kernel rpm downloaded from linuxant's website
the kernel headers are on their site as well
(because i'm too lazy to recompile my kernel - you could do that if you'd prefer)
2) used ndiswrapper with the windows drivers from realtek's website
3) IT FINALLY WORKS

i'm sort of a noob so it took some messin around, but i'd be glad to give all the help i can
Reply With Quote
  #12  
Old 6th December 2007, 02:52 AM
ackray Offline
Registered User
 
Join Date: Nov 2007
Posts: 46
Well, It works after last nights updates but I don't know how or why. I just updated a bunch of stuff and when I rebooted my laptop this morning an option for WLAN1 was available.

Dooh! But I can live with it.
Reply With Quote
  #13  
Old 7th December 2007, 12:07 AM
lovingfamily511 Offline
Registered User
 
Join Date: Jun 2007
Location: SF Bay Area
Age: 63
Posts: 28
ok. i'll keep mucking about with it myself. REALLY tempted just to spend the $30 for a Trendnet card though. It seems like my next steps will be 1) noapic in boot, 2) insure use of 16k stack (command line option, or recompile/install? more investigation) and 3) rtfm! - follow the instructions on ndiswrapper site for an rtl8185 install, this time including the step to bind the hardware address to the device properly (dropped that last time through). I'll post my results here.
Reply With Quote
  #14  
Old 10th December 2007, 04:50 PM
lovingfamily511 Offline
Registered User
 
Join Date: Jun 2007
Location: SF Bay Area
Age: 63
Posts: 28
I briefly had the rtl8185l realtek connected to my home network last night. First off, I downloaded from Realtek's website the 64-bit driver, and installed that via ndiswrapper. After that, I was poking about long enough to get a solid feel that the device itself was there and connected and routing requests, but that there was something bad about the dhcp configuration. So, I manually assigned an ip address via the network manager gui. Viola! But then *something* happened, and my WEB encryption key wasn't working properly; I kept getting a popup window asking me to enter the key and it wouldn't stay connected after that. More to follow. I'll give it another evening of working on it before I get a Trendnet card. In thread after thread of online research, I get the impression that it's possible to get this wireless card connected, but that it takes a level of luinx/unix system administration that some of linux newbies (like myself) have little experience with, and often it's easier just to switch cards if the GUI admin tools don't easily provide us with what we're expecting.
Reply With Quote
  #15  
Old 10th December 2007, 06:15 PM
ackray Offline
Registered User
 
Join Date: Nov 2007
Posts: 46
Usually I start config problems off with a plain WIFI connection. This way I can test out the drivers and so on.

Then I'll introduce a change and see what happens. boring and tedious but it's the only way to solve problems like this.

G'luck.
Reply With Quote
Reply

Tags
error, rtl8185

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] RTL8185 wi-fi and FC-10 DubJohn Servers & Networking 1 26th April 2011 08:13 PM
RTL8185 Drivers not installing phoenix910 Hardware & Laptops 8 19th September 2008 09:09 PM
RTL8185 broken by update ackray Hardware & Laptops 1 10th March 2008 02:42 AM
rtl8185 ndiswrapper... marble53 Servers & Networking 10 22nd February 2008 07:04 AM
RTL8185 not working in Fedora 8 fox29 Servers & Networking 5 20th December 2007 06:32 PM


Current GMT-time: 09:12 (Friday, 31-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Cayenne Travel Photos on Instagram - Saint-Priest Travel Photos - Sapporo Travel Photos on Instagram