LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-03-2007, 07:19 PM   #1
brooky9999
Member
 
Registered: May 2006
Location: Marlow, UK
Distribution: Slackware 12.2
Posts: 232

Rep: Reputation: 30
Cannot build Orinoco drivers


Hi all,

Can someone offer some assistance please?

I'm running Slack 10.2 with the 2.6.20 kernel. I cannot get any Orinoco drivers to compile. Doesn't match which version I use (0.13, 0.13e, 0.15 etc), they all come back with the same errors:

Code:
warning: passing arg 1 of 'readw' makes pointer from integer without a cast
warning: passing arg 1 of 'writew' makes pointer from integer without a cast

blah blah ...

make[2]: *** [/root/orinoco-0.13e/hermes.o] Error 1
make[1]: *** [_module_/root/orinoco-0.13e] Error 2
make[1]: *** Leaving directory '/usr/src/linux-2.6.20'
make: *** [modules] Error 2
Any ideas?



Mark.
 
Old 03-03-2007, 07:29 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Those are warnings not errors. Post the errors that cause the build to fail or don't build with the -Werror flag.
 
Old 03-03-2007, 07:48 PM   #3
brooky9999
Member
 
Registered: May 2006
Location: Marlow, UK
Distribution: Slackware 12.2
Posts: 232

Original Poster
Rep: Reputation: 30
Hiya Arow,

I don't know to make the files without the warnings, but the bit without them is:

Code:
bash-3.00# make
make -C /lib/modules/2.6.20/build SUBDIRS=/root/orinoco-0.13e modules
make[1]: Entering directory '/usr/src/linux-2.6.20'
  CC [M] /root/orinoco-0.13e/hermes.o
/root/orinoco-0.13e/hermes.c:41:26: linux/config.h: No such file or directory
In file included from /root/orinoco-0.13e/hermes.c:53:

then all those warnings...

make[2]: *** [/root/orinoco-0.13e/hermes.o] Error 1
make[1]: *** [_module_/root/orinoco-0.13e] Error 2
make[1]: *** Leaving directory '/usr/src/linux-2.6.20'
make: *** [modules] Error 2
So it looks like it's missing the hermes.o file. But how can this happen? I downloaded the source and unpacked it directly...

Any ideas?


Mark.
 
Old 03-03-2007, 09:08 PM   #4
brooky9999
Member
 
Registered: May 2006
Location: Marlow, UK
Distribution: Slackware 12.2
Posts: 232

Original Poster
Rep: Reputation: 30
Hi,

I think now that this is more to do with the 'linux/config.h' file missing in the 2.6.20 kernel.

I do have the kernel source installed and linked to correctly.

Does anyone know a way around this? I'm getting desperate now :-(



Mark.
 
Old 03-03-2007, 11:36 PM   #5
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
There is no config.h file provided by the kernel anymore. The kernel devs removed it a few revisions back (2.6.18 IIRC). The Orinoco versions all predate the release of kernel version 2.6.18 and, thus, the elimination of config.h. Look for a patch for the stable Orinoco code or get the latest code from subversion. I see in the commit log that they removed the reference to linux/config.h. Check out a copy of the code
Code:
 svn co https://orinoco.svn.sourceforge.net/svnroot/orinoco orinoco
 
Old 03-04-2007, 10:11 AM   #6
brooky9999
Member
 
Registered: May 2006
Location: Marlow, UK
Distribution: Slackware 12.2
Posts: 232

Original Poster
Rep: Reputation: 30
Hiya Arow,

Thanks for this. I've downloaded the code using that command, and have gone into the trunk folder. When I run make, I get:
Code:
/root/orinoco/trunk/orinoco.c:2462: error: 'INIT_WORK' undeclared (first use in this function)
/root/orinoco/trunk/orinoco.c:2462: error: (Each undeclared identifier is reported only once
/root/orinoco/trunk/orinoco.c:2462: error: for each function it appears in.)
make[2]: *** [/root/orinoco/trunk/orinoco.o] Error 1
make[1]: *** [_module_/root/orinoco/trunk] Error 2
make[1]: Leaving directory '/usr/src/linux-2.6.20'
make: *** [modules] Error 2
I'm obviously missing something. Any thoughts on what it could be?


Mark.
 
Old 03-04-2007, 11:39 AM   #7
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
You are not posting enough output.
 
Old 03-04-2007, 12:03 PM   #8
brooky9999
Member
 
Registered: May 2006
Location: Marlow, UK
Distribution: Slackware 12.2
Posts: 232

Original Poster
Rep: Reputation: 30
Hiya,

I've just posted the errors, not the warnings.


Mark.
 
Old 03-04-2007, 12:28 PM   #9
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
The cause of the errors is likely before the errors ... something like "/root/orinoco-0.13e/hermes.c:41:26: linux/config.h: No such file or directory"
 
Old 03-04-2007, 07:24 PM   #10
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Post the last 30 lines of output from the failed make command.
 
Old 03-15-2007, 10:56 AM   #11
AnomalyConcept
LQ Newbie
 
Registered: Mar 2004
Location: Purdue University
Distribution: Slackware (9.1)
Posts: 4

Rep: Reputation: 0
I'm having the same problem with compiling Orinoco drivers, although I must say that I have the 'official' Agere/Hermes drivers working to support WPA. I'm a little pressed for time, but the page with the information is a Ubuntu forum and includes a patch that gets WPA working.

Regarding the config.h bit missing in current (2.6.18+?) kernels, try changing 'config.h' to 'autoconf.h'. That should get you around that error, but for me, it still doesn't compile due to an error further along.

I'll try the drivers in the Orinoco SVN. Hopefully I can get 'monitor' mode to work. I'll try to remember to post a follow-up when I get things to work.
 
Old 03-15-2007, 11:23 AM   #12
brooky9999
Member
 
Registered: May 2006
Location: Marlow, UK
Distribution: Slackware 12.2
Posts: 232

Original Poster
Rep: Reputation: 30
Hi AnomalyConcept,

Please do... it'd be nice to know if someone else could get it working.

So if I replace 'config.h' with 'autoconf.h' that should work? Thanks - I'll give that a try now!


M.
 
Old 03-15-2007, 07:57 PM   #13
AnomalyConcept
LQ Newbie
 
Registered: Mar 2004
Location: Purdue University
Distribution: Slackware (9.1)
Posts: 4

Rep: Reputation: 0
I tried a few Orinoco driver versions including the 0.15 release, 0.13e, and a 0.13 with backports compiled against a 2.6.20.2 kernel and none of them successfully built. I'm guessing there are some changes in the wireless bits in the kernel itself.

It should be mentioned that I didn't find a more up-to-date version of the orinoco drivers using the SVN checkout method suggested by Arow; the orinoco.h file listed the driver version as 0.15, which did not compile cleanly.

However, if you're just trying to get _any_ Orinoco driver working, the one in the kernel sources has worked for me. I'm not sure which one you're using, but orinoco_cs compiled as a module worked great for my Dell TrueMobile 1150 PCMCIA card. It should be mentioned that the firmware on the card may have been updated.

Anyway, I'm currently using the 'wlag49_h1_cs' driver with my card since it supports WPA. There's a great thread on the Ubuntu forums with some background, and the build instructions (check the background thread for the sources).

If you're not too concerned about WPA, I'd try the ones in the kernel sources first.
 
Old 03-16-2007, 03:24 AM   #14
brooky9999
Member
 
Registered: May 2006
Location: Marlow, UK
Distribution: Slackware 12.2
Posts: 232

Original Poster
Rep: Reputation: 30
Hiya,

I'm actually trying to enable the monitor mode feature. The driver included in the kernel works like a dream with my notebook - albeit without monitor mode.

I'm going to roll back the kernel to 2.6.16 and then try to recompile the drivers. I don't need anything sexy from the later kernels, and am happy to go back a few versions.


M.
 
Old 03-17-2007, 02:30 PM   #15
brooky9999
Member
 
Registered: May 2006
Location: Marlow, UK
Distribution: Slackware 12.2
Posts: 232

Original Poster
Rep: Reputation: 30
Hiya,

I rolled back my kernel and have managed to compile the driver. I now have a working Orinoco 0.13 driver installation, with monitor mode, albeit on the 2.6.17 kernel.

Thanks for your help,


M.
 
  


Reply



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
Cannot install Orinoco drivers dooda5555 Linux - Wireless Networking 9 04-25-2005 10:16 AM
Orinoco drivers with FC2 antipro Linux - Wireless Networking 3 07-21-2004 06:05 PM
Build Driver for Proxim Orinoco 8420-WD raghos Linux - Wireless Networking 0 06-25-2004 01:13 PM
orinoco, drivers and software. lomfs24 Linux - Wireless Networking 7 05-13-2004 09:36 PM
Orinoco drivers? Nikon01 Slackware 1 01-22-2004 12:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:35 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