LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-17-2003, 12:18 AM   #16
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

yes that looks like it, I'm not sure what Libranet's going to use to "install" it, I think debian uses .deb files, is there a software installer on the menu?
 
Old 09-17-2003, 12:22 AM   #17
bige
Member
 
Registered: Mar 2003
Location: Kansas
Distribution: debian
Posts: 44

Original Poster
Rep: Reputation: 15
should i install the source to the directory you stated in the howto (/lib/modules/`uname -r`/build/include/linux). Would this prevent me from being able to compile the source for the driver?
 
Old 09-17-2003, 12:23 AM   #18
bige
Member
 
Registered: Mar 2003
Location: Kansas
Distribution: debian
Posts: 44

Original Poster
Rep: Reputation: 15
sorry... would NOT doing this prevent it from compiling....
 
Old 09-17-2003, 12:27 AM   #19
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
No, you want the kernel source in /usr/src/linux-2.4.20, this should be where the "build" symlink in /lib/modules/2.4.20/ points to, if at all possible you should use Libranet's installer so your database of installed packages will be uptodate.

edit:
the file is already in the right place, if there is no installer for it, just cd /usr/src and bunzip2 the kernel source.bz2 file, you may have to create the build symlink yourself, like this: ln -s /usr/src/linux-2.4.20 /lib/modules/2.4.20/build.

Last edited by akaBeaVis; 09-17-2003 at 12:34 AM.
 
Old 09-17-2003, 03:02 PM   #20
bige
Member
 
Registered: Mar 2003
Location: Kansas
Distribution: debian
Posts: 44

Original Poster
Rep: Reputation: 15
ok i found out how to install the kernel source... checked everything (symlink) and all is ok cept for when i try to compile i still get
Quote:
...
acx100.c: /lib/modules/2.4.20/build/include/linux/modversions.h: No such file or directory
In file included from acx100.c:79:
../include/wlan_compat.h:373:31: linux/modversion.h : No such file or Directory
acx100.c: In function `acx100_interrupt':
acx100.c:929: warning: unused variable `flags'
make[1]: *** [acx100.o] Error 1
make[1]: Leaving directory `/home/bige/acx100/src'
make: *** [driver] Error 2
the part where it says it can't find 'modversion.h' is the part needed by my kernel source, right. It simply isn't in my kernel source. What is this all about and most importantly what do i have to do to get this thing to compile...
 
Old 09-17-2003, 07:17 PM   #21
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
I'm thinking the "build" link is wrong.

if you do a "cd /usr/src/linux-2.4.20/include/linux, and then an "ls -l modversions.h", you should see it there. Also, do an ls -l /lib/modules/`uname -r` and see where the build symlink actually points to. If it's wrong, "rm" it and do "ln -s /usr/src/linux-2.4.20/" /lib/modules/2.4.20/build", assuming there is a directory named "linux-2.4.20" under /usr/src.

Last edited by akaBeaVis; 09-17-2003 at 08:43 PM.
 
Old 09-18-2003, 12:57 AM   #22
bige
Member
 
Registered: Mar 2003
Location: Kansas
Distribution: debian
Posts: 44

Original Poster
Rep: Reputation: 15
there is no modversions.h on my system... what is this file and how does it relate. Is libranet really that weird. here is my file tree: in my source directory (/usr/src) i have have a directory of my installed kernel named 'kernel-source-2.4.20'. in it is /include/linux/ but within it there is not a file named 'modversions.h'. What the heck is goin on. and within /lib/'modules/2.4.20/ there is no directory named build. This has totally thrown me off and I have no clue what to do. I know exactly what you are referring to but what is the deal w/ my file system. Maybe i should install slack9 and get back w/ you..... jeez, seems like you are working hard at messing w/ an os that is totally unfamiliar w/ the rest of the distros.
 
Old 09-18-2003, 08:21 AM   #23
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
That file is just one of many include files that are part of the kernel source installation, if you were to find a copy of modversions.h and place it in the right location, the problem would simply move to the next #include'd file in the source code. I've heard good things about libranet, so the problem is most likely us. I'm quite familiar with the whole acx100 thing, but not at all with debian or debian based distros. Like you, I'm asking myself how different can it be...one thing I've heard is that libranet is not necessarily aimed at people who want to compile things, apparently it's more for the desktop crowd, maybe this is the explanation, maybe not, either way being debian-based it should be possible to get a proper installation of the kernel source and a symlink to it.

Was there some tool in libranet similar to the tools in redhat or slackware that you used to install the kernel source? Or did you have to do it manually?

In any case, let's use a tool to verify that this file really isn't there, can you cd /usr and then find -name modversions.h, this will scour the entire /usr directory tree for the file.
 
Old 09-22-2003, 12:11 AM   #24
bige
Member
 
Registered: Mar 2003
Location: Kansas
Distribution: debian
Posts: 44

Original Poster
Rep: Reputation: 15
I used the libranet 'adminmenu' to install the source... I went to libranet's forums and asked around about it. they said to use the 'recompile kernel' tool which untar's the source and creates the appropriate symlink. They told me this installs it. So that is what I did. As for the 'find -name modversions.h', it returned nothing? Any ideas...
 
Old 09-22-2003, 07:00 PM   #25
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
I went to libranet's site also and found the same things to be true. I'm having a hard time believing your kernel source is somehow mis-installed, not being familiar with debian, I'm thinking perhaps your version of the find command needs to have -print added to it in order for it to "print" it's findings. I know this must be getting tiresome, but could you run these commands as root:
cd /usr/src
find -name mod*.h -print
there will definitely be some filenames returned which will verify that the find command's syntax is correct, hopefully modversions will show itself.

here's the output on one of my machines running mdk9:
Code:
# find -name mod*.h -print
./linux-2.4.19-16mdk/3rdparty/sam9407/mod.h
./linux-2.4.19-16mdk/include/asm-alpha/module.h
./linux-2.4.19-16mdk/include/asm-i386/module.h
./linux-2.4.19-16mdk/include/asm-ia64/module.h
./linux-2.4.19-16mdk/include/asm-ia64/sn/module.h
./linux-2.4.19-16mdk/include/asm-m68k/module.h
./linux-2.4.19-16mdk/include/asm-ppc/module.h
./linux-2.4.19-16mdk/include/asm-x86_64/module.h
./linux-2.4.19-16mdk/include/linux/modsetver.h
./linux-2.4.19-16mdk/include/linux/module.h
./linux-2.4.19-16mdk/include/linux/modversions.h
./linux-2.4.19-16mdk/sound/scripts/mod-deps.h
let's see if any of these files show up for you
 
Old 09-23-2003, 01:10 AM   #26
bige
Member
 
Registered: Mar 2003
Location: Kansas
Distribution: debian
Posts: 44

Original Poster
Rep: Reputation: 15
I tried what you said. It turned up some of the same in yours... but no modversions.h... there is a modsetver.h. what to do?
 
Old 09-23-2003, 03:50 AM   #27
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
I'm beginning to wonder what is going on. I'm going to have to do some research on compiling kernel modules for debian, it's hard to believe it's so different from the others. The acx100 source is very well-written in terms of compiling without error across distros, so it's not likely the source or the makefile is at fault here. I picked up debian 3.0 last week but don't yet have it installed on anything, hopefully this weekend, I'm curious what could be so different about it. maybe if you ask specifically about compiling a kernel module in the libranet forum someone will shed some light on this.

one more thing to try, in the acx100 source directory, do a make clean and then make configure, see what errors are returned from make configure, maybe there will be a clue in there.
 
Old 09-24-2003, 12:39 AM   #28
bige
Member
 
Registered: Mar 2003
Location: Kansas
Distribution: debian
Posts: 44

Original Poster
Rep: Reputation: 15
i did a make clean and it went returned:
Quote:
make -C src clean; \
make -C firmware clean
make [1]: Entering directory `/home/bige/acx100/src'
rm -f acx100.o acx100_ioctl.o acx100_helper.o acx100_helper2.o
ihw.o idma.o acx80211frm.o p80211conv.o acx100_pci.o *~ ../include/*~ ../scripts/*~
make[1]: Leaving Directory `/home/bige/acx100/src'
make[1]: Entering directory `/home/bige/acx100/firmware'
rm -f extract.o extract
make[1]: Leaving directory `/home/bige/acx100/firmware'
make configure doesn't do anything, but when i run make config it returns:
Quote:
grep: /lib/modules/2.4.20/build/include/linux/version.h: No such file or directory
./Configure: line32:[: -ge: unary operator expected
 
Old 09-24-2003, 04:14 PM   #29
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
Sorry about that configure vs config stuff, my bad.

It still looks to me like the build symlink is bad, here's how to check it: do a "cd /usr/src && find -name version.h | grep /linux/", if one line is returned showing version.h at the end, then we can assume the build symlink is wrong and should be pointing to the directory in front of version.h in that line that is returned, if nothing is returned then the kernel source is definitely not installed correctly or is installed in some other directory for some reason. If that command returns the one line, then do an "ls -l /lib/modules/`uname -r`/build", (don't substitute "2.4.20" for `uname -r` in that command, the makefile will be using `uname -r`, so you should too) and see which directory the build symlink is pointing to.
 
Old 09-25-2003, 02:26 PM   #30
bige
Member
 
Registered: Mar 2003
Location: Kansas
Distribution: debian
Posts: 44

Original Poster
Rep: Reputation: 15
ok, I ran "cd /usr/src && find -name version.h | grep /linux/" and it returned one line ("./kernel-source-2.4.20/include/linux/version.h") so, I did a "ls -l /lib/modules/`uname -r`/build" like you said and it returned "ls: /lib/modules/2.4.20/build: no such file or directory"
WTF, this means that for some reason the source tree is messed up right? My tree simply doesn't have a "build" subdirectory. is this where libranet differs slightly?
 
  


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
Dwl-650 + hostap problems.. tacogrande Linux - Networking 2 09-14-2005 04:02 PM
dwl-650+ problems es7us Linux - Networking 2 09-11-2004 06:32 PM
Problems w/ Kismet on Fedora Core 1, DWL-650+ atlantanewbie Linux - Wireless Networking 2 05-18-2004 06:15 PM
SuSE 9 w/ D-LINK DWL-650+ problems... captainhog Linux - Wireless Networking 4 03-23-2004 09:13 AM
D-Link DWL-650+ Problems pdepass Linux - Laptop and Netbook 32 12-05-2003 09:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:52 AM.

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