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 12-15-2006, 11:34 AM   #1
mschrank99
LQ Newbie
 
Registered: Jun 2006
Posts: 20

Rep: Reputation: 0
Can't find source files in Mandriva 2007 i586


I'm trying to run the following command to compile a driver (taken from here http://acx100.erley.org/howto.txt):

make -C /lib/modules/`uname -r`/build M=`pwd`

Which gives:

make: *** /lib/modules/2.6.17-5mdv/build: No such file or directory. Stop.

Now, as far as I know, this is where the kernel source is usually stored in most distros. However, in Mandriva 2007 (i586), there simply is no /lib/modules/2.6.17-5mdv/build directory at all.

However, the package manager says the source is installed.

What should I do? Try reinstalling the kernel source RPM? Please help.
 
Old 12-15-2006, 11:49 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
What directories do you have in /lib/modules/ ?
One of them should match the output of uname -r (which is the kernel you are running).
Maybe you have the wrong source for your installed kernel?
 
Old 12-15-2006, 01:23 PM   #3
mschrank99
LQ Newbie
 
Registered: Jun 2006
Posts: 20

Original Poster
Rep: Reputation: 0
/lib/modules:

drwxr-xr-x 3 root root 1024 Oct 22 15:16 2.6.17-5mdv/
drwxr-xr-x 3 root root 1024 Oct 22 15:16 fglrx/


/lib/modules/2.6.17-5mdv/

drwxr-xr-x 11 root root 1024 Oct 22 11:22 kernel/
-rw-r--r-- 1 root root 310891 Oct 22 15:16 modules.alias
-rw-r--r-- 1 root root 69 Oct 22 15:16 modules.ccwmap
-rw-r--r-- 1 root root 333059 Oct 22 15:16 modules.dep
-rw-r--r-- 1 root root 62937 Sep 13 14:14 modules.description
-rw-r--r-- 1 root root 887 Oct 22 15:16 modules.ieee1394map
-rw-r--r-- 1 root root 730 Oct 22 15:16 modules.inputmap
-rw-r--r-- 1 root root 21762 Oct 22 15:16 modules.isapnpmap
-rw-r--r-- 1 root root 74 Oct 22 15:16 modules.ofmap
-rw-r--r-- 1 root root 245162 Oct 22 15:16 modules.pcimap
-rw-r--r-- 1 root root 1051 Oct 22 15:16 modules.seriomap
-rw-r--r-- 1 root root 133743 Oct 22 15:16 modules.symbols
-rw-r--r-- 1 root root 361465 Oct 22 15:16 modules.usbmap

What is this reference to 'build' asking for- what is build? Is it a program that needs to be installed?

Last edited by mschrank99; 12-15-2006 at 01:27 PM.
 
Old 12-16-2006, 03:36 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
On my machine /lib/modules/2.4.21-0.13MWAmdk/build is a link to /usr/src/linux-2.4.21-0.13MWAmdk
So maybe you should make a similar link to your kernel source.
 
Old 12-16-2006, 03:49 PM   #5
mschrank99
LQ Newbie
 
Registered: Jun 2006
Posts: 20

Original Poster
Rep: Reputation: 0
My machine doesn't have that dir.

Come on, someone must know what the heck this 'build' thing is wanting, what is the significance of this

make -C /lib/modules/`uname -r`/build M=`pwd`

what is it making and what is the 'build' directory?
 
Old 12-16-2006, 08:07 PM   #6
lebabyg
Member
 
Registered: Mar 2006
Location: UK
Distribution: Ubuntu Feisty
Posts: 272

Rep: Reputation: 30
Do you have your source files installed?? Do rpm -qa | grep kernel. (as root)
For me this brings up

kernel-source-2.6.17.6mdv-1-1mdv2007.0
kernel-2.6.17.6mdv-1-1mdv2007.0

Amongst kernels. If you do not have the corresponding source file (kernel-source) that matches your running kernel then this is the problem. I apologise in advance if you do have the sources installed and the problem is more complex its just that i had a similar problem that eluded me for a while and it was because i had the kernel-source-stripped installed. Cheers
Graham

Last edited by lebabyg; 12-16-2006 at 08:09 PM.
 
  


Reply

Tags
build, netgear



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
Upgrading Mandriva 2007.0 to 2007.1 Genin Mandriva 2 12-25-2006 02:48 AM
cant install rmp files in Mandriva 2007 shadyboy Linux - Newbie 2 11-21-2006 02:38 AM
2007-free-i586 = FatalError [During Installation] seven32 Mandriva 3 10-06-2006 10:29 AM
Mandriva kernel source i586 to i686 Peingune Mandriva 5 05-26-2006 03:14 AM
find rpm files (mandriva 2005 LE) fireedo Mandriva 5 07-24-2005 01:26 AM

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

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