LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 10-12-2003, 04:23 PM   #1
tommer
LQ Newbie
 
Registered: Oct 2003
Posts: 6

Rep: Reputation: 0
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
 
Old 10-12-2003, 07:40 PM   #2
akaBeaVis
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: Reputation: 45
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?
 
Old 10-13-2003, 02:40 AM   #3
tommer
LQ Newbie
 
Registered: Oct 2003
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
Old 10-13-2003, 03:16 PM   #4
tommer
LQ Newbie
 
Registered: Oct 2003
Posts: 6

Original Poster
Rep: Reputation: 0
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!!
 
Old 10-13-2003, 05:25 PM   #5
akaBeaVis
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: Reputation: 45
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.
 
Old 10-14-2003, 12:52 PM   #6
tommer
LQ Newbie
 
Registered: Oct 2003
Posts: 6

Original Poster
Rep: Reputation: 0
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.
 
Old 10-14-2003, 04:49 PM   #7
akaBeaVis
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: Reputation: 45
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).
 
Old 10-16-2003, 04:48 PM   #8
tommer
LQ Newbie
 
Registered: Oct 2003
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
  


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
"wlan0" interface not recognized with NETGEAR WG111 USB Wireless Network Adapter lasindi Slackware 18 04-10-2007 10:18 PM
"wlan0" interface not recognized with NETGEAR WG111 USB Wireless Network Adapter lasindi Slackware - Installation 3 09-24-2005 05:51 PM
"unable to set up wireless lan usb adapter" pathak Linux - Hardware 1 04-27-2005 01:01 AM
Help installing my "SMC EZ Connect Wireless USB Adapter(SMC2662W)" ad1das Linux - Wireless Networking 3 06-05-2004 12:59 PM
kernel 2.6.0 compliation problems: "parse error before 'va_list'" sohmc Linux - General 6 12-21-2003 04:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 02:00 PM.

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