Red Hat This forum is for the discussion of Red Hat 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.
|
|
10-12-2003, 04:23 PM
|
#1
|
LQ Newbie
Registered: Oct 2003
Posts: 6
Rep:
|
Newbie: "Parse Error" when adding wireless usb network adapter
Please help!
I've recently installed RH9 and the installation went pretty flawlessly.
After the installation I've also done all upgrades through the RHN, again quite flawlessly.
But, when trying to install my SMC 2662W (ver 3) with drivers from "sourceforge.net/projects/atmelwlandriver"
I run into a problem. I run "Make Config" and "make clean" but when trying to run "make all" I get several "parse" errors.
Example:
Quote:
/usr/include/asm/signal.h:107: parse error before "sigset_t"
/usr/include/asm/signal.h:110: parse error before '}' token
In file included from /usr/include/linux/sched.h:81,
from /home/tom/atmelwlandriver/src/includes/usb/vnetusba.h:24,
from callbacks.c:22:
/usr/include/linux/timer.h:45: parse error before "spinlock_t"
/usr/include/linux/timer.h:53: parse error before '}' token
/usr/include/linux/timer.h:67: parse error before "tvec_base_t"
|
and so on...
I've tried to do everything as outlined in "atmelwlandriver.sourceforge.net/howto/howto.html"
Anybody have any suggestions related to how to proceed??
Any help would really be appriciated!
Tom
|
|
|
10-12-2003, 07:40 PM
|
#2
|
LQ Guru
Registered: Apr 2003
Location: Maryland
Distribution: Slack 9.1,10 Mandrake 10,10.1, FedCore 2,3, Mepis 2004, Knoppix 3.6,3.7, SuSE 9.1, FreeBSD 5.2
Posts: 1,109
Rep:
|
Do you have the kernel-source rpm installed? In other words, if you type "cd /lib/modules/`uname -r`/build", and then "ls" do you see a lot of files?
|
|
|
10-13-2003, 02:40 AM
|
#3
|
LQ Newbie
Registered: Oct 2003
Posts: 6
Original Poster
Rep:
|
Quote:
Originally posted by akaBeaVis
Do you have the kernel-source rpm installed? In other words, if you type "cd /lib/modules/`uname -r`/build", and then "ls" do you see a lot of files?
|
Thanks!
I think I have done this through RHN updates, but I'll have to check when I get home.
How do I eventually install the Kernel RMP's?
Tom
|
|
|
10-13-2003, 03:16 PM
|
#4
|
LQ Newbie
Registered: Oct 2003
Posts: 6
Original Poster
Rep:
|
Well, I have the source installed now, but still struggeling with same 'parse' errors..
I'm totally lost, what to do next??
I don't wanna give this up!!
|
|
|
10-13-2003, 05:25 PM
|
#5
|
LQ Guru
Registered: Apr 2003
Location: Maryland
Distribution: Slack 9.1,10 Mandrake 10,10.1, FedCore 2,3, Mepis 2004, Knoppix 3.6,3.7, SuSE 9.1, FreeBSD 5.2
Posts: 1,109
Rep:
|
What is this device, usb wireless ethernet? If so I would recommend you move to a different driver, here's a link: http://at76c503a.berlios.de/ if you go with this driver, here's a link to a good howto: http://www.jennings.homelinux.net/atmel.html which is based on mandrake 9.1, but the post-install section should work fine for redhat 9.
On the other hand, if you're loathe to move away from the atmelwlandriver source, we can keep trying that route, if so, can you say if the parse errors are now different from before you did what you did re: the kernel-source? or are they the same errors?
I can tell you this source compiles for me no problem, but on a redhat 9.0 installaton that has not been updated. I'm thinking I read somewhere here that redhat's update doesn't quite get the source and the running kernel synced properly, but I'm not positive. To see if they're in sync type these commands into a terminal:
/bin/uname -r
cat /lib/modules/`/bin/uname -r`/build/include/linux/version.h
then compare the numbers, if they are the same good, if not, I'm not sure what we'd want to do about that.
Last edited by akaBeaVis; 10-13-2003 at 05:27 PM.
|
|
|
10-14-2003, 12:52 PM
|
#6
|
LQ Newbie
Registered: Oct 2003
Posts: 6
Original Poster
Rep:
|
Thanks for all your efforts!!
I reinstalled and tried without updating Kernel and using the file you recommend and YES, make works!!
Only thing is that I seem to be missing some commands:
The readme for the files says I shall issue 'modprobe' or 'insmode' but I get following:
[root@localhost at76c503a-0.10]# modprobe -v at76c503-rfmd
bash: modprobe: command not found
[root@localhost at76c503a-0.10]# cd ..
[root@localhost tom]# lsmod
bash: lsmod: command not found
[root@localhost tom]# insmod usbdfu.c
bash: insmod: command not found
[root@localhost tom]#
What to do next?
Thanks
Tom
Last edited by tommer; 10-14-2003 at 02:19 PM.
|
|
|
10-14-2003, 04:49 PM
|
#7
|
LQ Guru
Registered: Apr 2003
Location: Maryland
Distribution: Slack 9.1,10 Mandrake 10,10.1, FedCore 2,3, Mepis 2004, Knoppix 3.6,3.7, SuSE 9.1, FreeBSD 5.2
Posts: 1,109
Rep:
|
you'll need to be root to get those commands in your normal path and to run them. You may have to log out and back in to accomplish this. Or,if you issue "su" in a terminal and give the root password (no characters will echo as you type it, this is normal) you will become root on that terminal until you type "exit", most commands should be found at that point, however if after you become root a command comes back not found, you usually can do a "which command-name" to find it, then use the full path returned, for instance, "which modprobe" returns /sbin/modprobe to me, so to load the module you can use "/sbin/modprobe -v at76c503-rfmd". (don't type any of these quotes of course).
|
|
|
10-16-2003, 04:48 PM
|
#8
|
LQ Newbie
Registered: Oct 2003
Posts: 6
Original Poster
Rep:
|
Thanks buddy, I think I'm pretty close now.
I've got a ifcfg-wlan0 (had to make it myself!?) script saying:
DEVICE=wlan0
BOOTPROTO=dhcp
NETMASK=255.255.255.0
ONBOOT=yes
DOMAIN=
HWADDR=
TYPE=Wireless
DHCP_HOSTNAME=
IPADDR=
USERCTL=no
PEERDNS=no
GATEWAY=
ESSID=
CHANNEL=1
MODE=Auto
KEY=
RATE=Auto
lsmode says:
usbdfu 9164 0 [at76c503-rfmd]
at76c503 51904 0 [at76c503-rfmd]
usbcore 78784 1 [at76c503-rfmd usbdfu at76c503 hid usb-uhci ehci-hcd]
and I also got a wlan0 device in my "Network Device Control" panel. Problem is that I can't activate! I only get a error message.
Any suggestions??
Tom
|
|
|
All times are GMT -5. The time now is 02:00 PM.
|
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
|
|