LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-10-2005, 01:19 PM   #1
Andorin
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Rep: Reputation: 0
Ndiswrapper Make Error - Kernal Source


Hi,

I'm a Linux n00b trying to setup Ndiswrapper on my new install of Mandrake 10.1. I've followed the instructions on the site through covering the prerequisites for Mandrake and yet when it gets to performing a make on the Ndiswrapper I get the following error message:

Quote:
make -c driver
make[1] Entering directory 'path'
Can't find kernal source in /lib/modules/2.6.8.1-12mdk/build; give the path to kernal sources with KSRC=<path> argument to make
Make[1] ***[Prereq-check] Error 1
From what I've been able to work out this means I have to replace my Kernal sources... whatever that means. Could anyone fill me in on just what it means, whats going wrong and how to fix it?

Cheers
 
Old 03-10-2005, 01:52 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
This is the usual location of your kernel sources /usr/src/linux if they are not there you will need to get them from your Linux cd.
 
Old 03-10-2005, 02:52 PM   #3
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
when a kernel is installed, the /lib/modules/<kernel name and version>/build directory is just a symlink back to the kernel sources

ls -l /lib/modules/2.4.26/build
lrwxrwxrwx 1 root root 21 2005-03-06 15:04 /lib/modules/2.4.26/build -> /usr/src/linux-2.4.26

as you can see above, build is pointing back to /usr/src/linux-2.4.26 on my machine. make sure you have the kernel-source package installed, and check the link again. if you have to, just re-create the symlink by hand.
 
Old 03-10-2005, 03:48 PM   #4
Andorin
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Okay, just taken a look around and heres what I found:

"/usr/src/" does not actually contain a linux folder but only a folder called RDM (or a similar combination of three letters).

"/lib/modules/2.6.8.1-12mdk/" does not contain anything called build. It did however contain a folder called "kernal". I copied this folder and renamed it build, placing it in the same folder. The make command still didn't work.

I then tried to look on my Linux DVD for the source files. This just puzzled me though - the contents of the DVD appear as one file named "????????" (a lot more question marks actually). So that wasen't an option.

Where do I go now?
 
Old 03-11-2005, 05:19 AM   #5
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
check rpmdrake or urpmi. delete that build directory you created, the kernel directory contains the modules themselves ( don't delete that though). basically, you need to find the kernel source package and install it before you can go any further. One thing worth noting, you can get kernel sources from www.kernel.org, but these may not be any help to you if the default Mandrake kernel you are running was patched by Mandrake ( very good possiblity). These sources would work, but you would have to build and install a new kernel. I would look for the kernel-sources package first.
 
Old 03-23-2005, 06:43 PM   #6
SD-user
LQ Newbie
 
Registered: Mar 2005
Posts: 22

Rep: Reputation: 15
I am also having a similar problem with the kernel sources. ndiswrapper.sourceforge.net indicates that I need to have started comping the kernel sources (not sure what how to do that) "so needed header files are present." I think this is the same problem Andorin is having. I am pretty sure I am running kernel 2.6.8.1-12mdk on Mandrake 10.1. Any suggestions?

Thanks,
SD
 
Old 03-23-2005, 07:46 PM   #7
SD-user
LQ Newbie
 
Registered: Mar 2005
Posts: 22

Rep: Reputation: 15
Just to expand upon my last statement before I go offline for the evening (I too am new to Linux and really hoping to get away from Microsoft and Windows XP):

I just finished a fresh install of Mandrake Linux 10.1 on a PIII 500 mhz; dual boot windows xp pro.

According to the ndiswrapper instructions (see the following link: http://ndiswrapper.sourceforge.net/p...84866ef3674588) I am supposed to have a recent kernel source.

Bullet 1: I am pretty sure that I am running 2.6.8.1 (or 2.4.27-0) as both kernels are located in the "/lib/modules/" directory. When I try to install either from CD 1, I get a notification that "Everything already installed".

Bullet 2: When I check the following locations "/usr/src/" I do not have a "linux-,<kernel-version>" folder. The only folder is "rpm" as the user above.

Additionally, in my "/lib/modules/" folder I have two folders: "2.4.27-0.pre2.lmdkenterprise" and "2.6.8.1-12mdk". Niether directory has the "build" file as indicated on the ndiswrapper installation website.

Any ideas on how to create the needed files?

Bullet 3: What does the instructions mean when it says "make sure you have started compiling kernel sources"?

I have done some searching on google, but I only get tips on developing my own linux kernel.

What are header files?

Bullet 4: I am not sure if I have the wireless tools installed - I will keep looking (any help here would be good too). Although, if I cannot get the above problems fixed, this problem is moot.

Thanks!
 
Old 03-27-2005, 12:04 PM   #8
halakar
LQ Newbie
 
Registered: Mar 2005
Location: Roanoke, VA
Distribution: Mandriva Linux 2.6.16-1smp
Posts: 14

Rep: Reputation: 0
I'm glad I found this post. I'm also very new to linux, and trying to get this Linksys Wireless-G to work is proving itself to be a formidable task for a newb. I'm having the same issue as SD-user. I have these same two issues:

Bullet 2: When I check the following locations "/usr/src/" I do not have a "linux-,<kernel-version>" folder. The only folder is "rpm" as the user above.

I know I have already removed the old ndiswrapper module and acx100 support from:

/lib/modules/2.6.8.1-12mdk/kernel/3rdparty/ndiswrapper
/lib/modules/2.6.8.1-12mdk/kernel/3rdparty/acx100

I just need to now create the link to the kernel sources while logged in as root, by typing:

ln -s /usr/src/linux-<kernel-version> /lib/modules/VERSION/build

Should I just enter in ln -s /usr/src/linux-<2.6.8.1-12mdk> /lib/modules/VERSION/build ?? Will that work?

Also where can I find out where Wireless Tools is installed? I checked all the little boxes in setup...I figure everything I need should be installed already. I hope once I can create the link everything will work.
 
Old 03-27-2005, 01:59 PM   #9
SD-user
LQ Newbie
 
Registered: Mar 2005
Posts: 22

Rep: Reputation: 15
kernel compile help for ndiswrapper

halakar - I think we must first run the linux compiler. I have some previous experience working with programming (very basic level C++ from about 6 years ago) and I believe the actual Linux kernel must be compiled before other programs, like ndiswrapper, may be installed/compiled.

Hence, this is why neither of us have the "build" directors - b/c the linux kernel has not been built - aka the kernel has not been compiled. This is just my guess - I have been looking for several days now how to complete this process and I have not found anything - hence the post. If you figure it out, please post the solution here - as I will do the same

Good luck

- SD
 
Old 03-27-2005, 02:41 PM   #10
halakar
LQ Newbie
 
Registered: Mar 2005
Location: Roanoke, VA
Distribution: Mandriva Linux 2.6.16-1smp
Posts: 14

Rep: Reputation: 0
UPDATE:

I compiled the kernel source. I did this by going to Configure your Computer, software management, and install packages...type 'kernel' in the search box, you'll see 2.6.8.1-12mdk kernel source. Double click it to place a checkmark next to it, and it will install it, you'll have to have your installation source available, it asked me for cd 3. After this, there was a folder in /usr/src called linux-2.6.8.1-12mdk!

I installed nvidia display drivers successfully after this and also ndiswrapper. Haven't got ndiswrapper to successfully load the bcmwl5.inf display driver yet. Going to go try it again.
 
Old 03-27-2005, 04:15 PM   #11
SD-user
LQ Newbie
 
Registered: Mar 2005
Posts: 22

Rep: Reputation: 15
halakar,

Do you have the "build" directory in the "/lib/modules" too?
 
Old 03-27-2005, 05:48 PM   #12
halakar
LQ Newbie
 
Registered: Mar 2005
Location: Roanoke, VA
Distribution: Mandriva Linux 2.6.16-1smp
Posts: 14

Rep: Reputation: 0
I think I do but it's not a folder, it's a link IIRC. I don't think the nvidia drivers are working just yet, it might still be on vesa. The installer said installation completed. I think I need to edit the config file for x to load the nvidia drivers. Not sure. Trying to learn as I go. I really wish I could get the driver to load..
 
Old 03-28-2005, 06:37 PM   #13
halakar
LQ Newbie
 
Registered: Mar 2005
Location: Roanoke, VA
Distribution: Mandriva Linux 2.6.16-1smp
Posts: 14

Rep: Reputation: 0
bumpin' it up!!
 
Old 03-30-2005, 10:40 PM   #14
SD-user
LQ Newbie
 
Registered: Mar 2005
Posts: 22

Rep: Reputation: 15
halakar,
I gave up on mandrake 10.1 and erased the system . . . I got everything to work well with FC3. Check out this site if you decide to load FC3: http://www.linuxforums.org/forum/top...tml&highlight=

best of luck - SD
 
  


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
make error when installing ndiswrapper rphook Linux - Wireless Networking 2 07-12-2005 06:31 PM
which of these is the kernal source? pharmd Linux - Newbie 2 02-26-2005 04:30 PM
ndiswrapper make error SUSE 9.1 RandallC Linux - Wireless Networking 21 10-13-2004 05:25 PM
make install ndiswrapper error I can't decipher case1984 Linux - Wireless Networking 1 09-28-2004 05:59 PM
ndiswrapper- Make Install Error Seribicus Linux - Wireless Networking 3 07-05-2004 06:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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