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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-30-2003, 08:13 PM
|
#1
|
LQ Newbie
Registered: Jan 2003
Distribution: Mandrake 9
Posts: 12
Rep:
|
Undeclared variable in Atmel drivers?
I have been trying to compile the Atmel WLAN drivers for my Linksys WUSB11 2.6 but it keeps returning an error that there is an undeclared variable SIOCIWFIRSTPRIV in the vnetusb.cpp file. I went into the file and there is, in fact, an undeclared variable but I can't figure out where they wish to declare it or what as. The only time they use it is in two other #declare statements.. Example (not actually from code but similar):
#declare SIOCIWPRIVA SIOCIWFIRSTPRIV + 0x01
Has anyone had this problem or does anyone know how to solve it?
|
|
|
01-31-2003, 11:13 AM
|
#2
|
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
I just got a clean compile using the snapshot from 12-23, what version are you using?
Cheers,
Finegan
|
|
|
01-31-2003, 02:56 PM
|
#3
|
LQ Newbie
Registered: Jan 2003
Distribution: Mandrake 9
Posts: 12
Original Poster
Rep:
|
I used the 12-23 sources as well. What distro/kernel are you using? I am currently running Mandrake 8.1/2.4.8. I think it might be something with the early kernel or the distro. I'm actually downloading Red Hat 8 now to see if that fixes the problem. Hopefully I can get it to work as I can't return the WUSB11 and I don't want to spend extra money on a wireless bridge, etc...
Also, I searched on google and found that I could add:
#ifndef SIOCIWFIRSTPRIV
#define SIOCIWFIRSTPRIV SIOCDEVPRIVATE
#endif
to define it. After adding it though, the compiler told me that there were multiple instances of a case in the switch. I found it but I wasn't sure how to fix it. The instances were (I think):
case SIOCDEVPRIVATE
case SIOCIWPRIVA
SIOCIWPRIVA was defined as "SIOCIWFIRSTPRIV + 0x0" so obviously, it is the same as DEVPRIVATE... Any thoughts?
Last edited by Adam Shapiro; 01-31-2003 at 02:59 PM.
|
|
|
01-31-2003, 03:59 PM
|
#4
|
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
aha, there were some extreme changes to how the kernel handles networking modules around 2.4.10, don't worry that old Mandrake will handle a newer kernel, I was running 2.4.16 on a Mandy 8.0 laptop a long while ago. Even if you get it to compile, I doubt it will load... your kernel is at least a year and change old.
Mine was on a stock Slack 8.1 with gcc 2.95.3 and 2.4.20-xfs, although I really hope the problem isn't with the compiler, check the atmel site to see if the funky 2.96.x that shipped with the middle 8.x Mandrakes isn't the issue, that was one of the biggest issues with Mandy and RH for a long time. gcc -v will tell you the name of the compiler; and if it looks clear, grab yourself a copy of the 2.4.20 source, fun stuff!
Cheers,
Finegan
Last edited by finegan; 01-31-2003 at 04:00 PM.
|
|
|
01-31-2003, 11:57 PM
|
#5
|
LQ Newbie
Registered: Jan 2003
Distribution: Mandrake 9
Posts: 12
Original Poster
Rep:
|
I have the Mandrake 9 cd's that use the 2.4.19 kernel by default. I think I'll attempt an upgrade rather than recompile/install a whole new kernel with my little knowledge for now. Hopefully that will work with the drivers but what about the undeclared variable or the multiple-use case statement? If I remove the declaration that I found, will the new kernel have the variable built in or is there something I'm missing? If I don't remove the variable I need to put the code from the SIOCIWPRIVA case somewhere (maybe at the end of the SIOCPRIVATE case?)... If that doesn't work, I guess I can try RH8.
|
|
|
02-01-2003, 04:41 PM
|
#6
|
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
I have no idea why mine compiled and yours didn't, I'de have to trace through a lot of C, which I suck at, and I'm willing to bet the dropped variable is in an apendix section of code that doesn't get used anyway. Distro doesn't matter, its all compiler, and if you use a newer Mandrake or a newer RedHat, either way you'll be using a 3.x.x compiler, a much newer one than you're using now.
Also, most importantly you'll be using a kernel it can load into.
Cheers,
Finegan
|
|
|
02-01-2003, 08:40 PM
|
#7
|
LQ Newbie
Registered: Jan 2003
Distribution: Mandrake 9
Posts: 12
Original Poster
Rep:
|
I did a clean install of Mandrake 9 and the compilation worked but depmod -a said that there were unresolved symbols in the module. I actually froze the computer a few times trying to use modprobe with the unresolved symbols because the Makefile uses depmod -aq so you don't see the errors. I finally thought to check when lsmod returned that the module was "initializing" after like 5 minutes. Have you experienced the unresolved symbols? I can't figure it out and it is driving me crazy!
Also, what should I enter for mode type? I was thinking "Infrastructure" but I was thinking that it might be case-sensitive or something...
|
|
|
02-02-2003, 02:08 PM
|
#8
|
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
That is just odd module behavior, I honestly don't know and really infact doubt the module is working correctly. I would poke through the mailing list archive or the bugs lists from the atmel driver page and see if anyone else is having issues with Mandy 9's stock 2.4.19.
Cheers,
Finegan
|
|
|
All times are GMT -5. The time now is 09:16 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|