LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 06-28-2005, 04:56 AM   #1
Giant01
LQ Newbie
 
Registered: Jun 2005
Location: Melbourne, Australia
Distribution: FC4
Posts: 7

Rep: Reputation: 0
Cant compile ndiswrapper (tried everything already)


Hi, Im fairly new to the linux scene and was having trouble compiling ndiswrapper.
I am running Fedora 4 and when i try to compile the program it gives the error:
Code:
Can't find kernel sources in /lib/modules/2.6.11-1.1369_FC4/build;
ive tried installing all the development modules as well as the kernal-devel rpms off the dvd and also tried different versions of the source all to no luck
ive searched everywhere and cant seem to find the answers so sory if this has been answered before but any help would be greatly appreciated.
 
Old 06-28-2005, 05:42 AM   #2
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Is that file it lists there a symlink to /usr/src/linux-2.6.11-1.369_FC4 ?
 
Old 06-28-2005, 08:09 PM   #3
Giant01
LQ Newbie
 
Registered: Jun 2005
Location: Melbourne, Australia
Distribution: FC4
Posts: 7

Original Poster
Rep: Reputation: 0
um...no idea sorry
also if this particular problem cant be fixed is there another way to get a Netgear WG311 working under FC4?

Last edited by Giant01; 06-28-2005 at 08:10 PM.
 
Old 06-29-2005, 03:15 AM   #4
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
Code:
ln -s /usr/src/`uname -r` /lib/modules/`uname -r`/build
 
Old 06-30-2005, 02:07 AM   #5
Giant01
LQ Newbie
 
Registered: Jun 2005
Location: Melbourne, Australia
Distribution: FC4
Posts: 7

Original Poster
Rep: Reputation: 0
Ok i tried that linking and it said
Code:
'/lib/modules/2.6.11-1.1369_FC4/build': File Exists
so i tried to make it again, and it came up wth the same error as before
 
Old 06-30-2005, 03:14 AM   #6
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Do you have the kernel sources in /usr/src? If you follow the build link you should be in the kernel source directory.
 
Old 06-30-2005, 05:01 AM   #7
Giant01
LQ Newbie
 
Registered: Jun 2005
Location: Melbourne, Australia
Distribution: FC4
Posts: 7

Original Poster
Rep: Reputation: 0
yeah thanks for that i found that was the problem thanks heaps for the help now all i gotta do is figure out why ndiswrapper wont insert into the kernel using 'modprobe ndiswrapper'....im getting an "invalid module format"....ill look around the forms for this but if anyone knows a fix that would be great
thanks again

Last edited by Giant01; 06-30-2005 at 05:45 AM.
 
Old 06-30-2005, 05:48 AM   #8
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
I found a few tips on that:

Quote:
When I run 'modprobe ndiswrapper', I get 'Invalid module format' error. What do I do?

This issue has nothing to do with ndiswrapper - it is just kernel module compilation issue and if you are having difficulties with issue, seek help in channels meant for kernel e.g., kernelnewbies or your distribution. The following hints may help you.

* The kernel running should have been compiled from the same sources as ndiswrapper is.
* The compiler used for compiling kernel should be same as the one used to compile ndiswrapper. To make sure these conditions are met, run cat /proc/version and modinfo ndiswrapper and make sure that they match both compiler and kernel versions. If they do not match, you need to recompile either ndiswrapper or kernel or both. One sure way to get it right is to make sure that you have proper kernel headers installed: check that ls -l /lib/modules/$(uname -r)/build/include/linux/version.h does not give error and shows the information about that file.
* If you use precompiled kernel, make sure also that your kernel sources have exact same kernel configuration used for compiling kernel e.g., copy kernel configuration from /proc/config.gz or /boot/config-<version> into /lib/modules/uname -r/build/.config, such as gunzip < /proc/config.gz > /lib/modules/$(uname -r)/build/.config. Then recompile and install ndiswrapper.
 
Old 06-30-2005, 06:05 AM   #9
Giant01
LQ Newbie
 
Registered: Jun 2005
Location: Melbourne, Australia
Distribution: FC4
Posts: 7

Original Poster
Rep: Reputation: 0
ok i think i found the problem....my kernel is version i586 and in my impatientness and lack of linux knowledge installed the i686 source..so ndiswrapper was compiled using 686 and the kernal is 586 so im guessing thats the problem....can i just delete the folder with the wrong source or do i have to uninstall it somehow if so how?
 
Old 06-30-2005, 06:23 AM   #10
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
You can just delete that folder. Be aware though, if you changed anything to the configuration yourself you might want to keep the config file so you don't have to redo it completely. Then you can install a new kernel source. You'll want i686 probably cause it'll do for most PCs for some time now. If it doesn't automatically change the link /usr/src/linux to the new directory like this:
Code:
ln -s /usr/src/linux-(version) /usr/src/linux
And check if the build link is there. If it's not create it as well.
 
Old 06-30-2005, 06:49 AM   #11
Giant01
LQ Newbie
 
Registered: Jun 2005
Location: Melbourne, Australia
Distribution: FC4
Posts: 7

Original Poster
Rep: Reputation: 0
one note....my kernal is 686 and my source was 586.....anyway i deleted the 586 source from '/usr/src/kernal/' and went to install the 686 source but it said the package was already installed (said this for 586 and 686) how do i fully remove it from the system so i can get the 686 on there?
 
Old 06-30-2005, 07:15 AM   #12
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Did you install it with your package management system? Then you have to delete it with that too. In the future if you want to delete stuff try to do it with the package manager first before manually doing it.
 
Old 06-30-2005, 09:26 AM   #13
Giant01
LQ Newbie
 
Registered: Jun 2005
Location: Melbourne, Australia
Distribution: FC4
Posts: 7

Original Poster
Rep: Reputation: 0
hey just like to say thanks for all your help.....i rebuilt the box and everything worked first time
all that needs to be done now is all the irq's etc need to be set up as the card is seen in the hardware tab of the network devices window but not in the devices tab....is there a way of automatically assigning these values?
 
  


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
Ndiswrapper won't compile in 2.6.13 kernel shadowsnipes Linux - Wireless Networking 3 10-29-2005 07:04 PM
ndiswrapper compile problems MikeZila Debian 2 06-14-2005 11:33 AM
NDISWrapper Compile Problems! ragingtarrasque Linux - Software 14 01-10-2005 11:23 PM
Ndiswrapper Compile Errors ne2007ber Linux - Software 1 01-09-2005 03:33 PM
ndiswrapper failed to compile r_squared Linux - Wireless Networking 3 11-08-2004 08:50 AM


All times are GMT -5. The time now is 11:44 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration