LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-21-2006, 01:46 PM   #1
laasunde
LQ Newbie
 
Registered: Sep 2002
Posts: 25

Rep: Reputation: 15
Faulty kernel???


Hi,

When trying to install a driver I got a message that I was missing linux/version.h, after a bit of searching online I came across and webpage giving this bit of advice;

Code:
If you get an "linux/version.h no such file or directory" message when compiling the driver, you either have not installed the kernel source code, or you haven't run 

cd /usr/src/linux; make include/linux/version.h

yet.
[Source]

This seem to have fixed the problem so I continued to try and install the driver and then get the following output:
Code:
[root@localhost pwc-10.0.11]# make KSRC=/usr/src/linux
make -C /usr/src/linux SUBDIRS=/tmp/pwc-10.0.11 modules
make[1]: Entering directory `/usr/src/linux-2.6.10'
  CC [M]  /tmp/pwc-10.0.11/pwc-if.o
  CC [M]  /tmp/pwc-10.0.11/pwc-misc.o
  CC [M]  /tmp/pwc-10.0.11/pwc-ctrl.o
  CC [M]  /tmp/pwc-10.0.11/pwc-v4l.o
  CC [M]  /tmp/pwc-10.0.11/pwc-uncompress.o
  CC [M]  /tmp/pwc-10.0.11/pwc-dec1.o
  CC [M]  /tmp/pwc-10.0.11/pwc-dec23.o
  CC [M]  /tmp/pwc-10.0.11/pwc-kiara.o
  CC [M]  /tmp/pwc-10.0.11/pwc-timon.o
  LD [M]  /tmp/pwc-10.0.11/pwc.o
  Building modules, stage 2.
  MODPOST
/bin/sh: scripts/mod/modpost: No such file or directory
make[2]: *** [__modpost] Error 127
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.10'
make: *** [all] Error 2
[root@localhost pwc-10.0.11]#
One a forum they seem to indicate that this means a incomplete or broken kernel. Is that true? Any way to check and fix this?

Using kernel 2.6.10 with RTAI 3.3 patch added to it.

Thanks for any suggestions.
 
Old 02-21-2006, 04:45 PM   #2
burntfuse
Member
 
Registered: Sep 2005
Location: Laurel, MD, USA
Distribution: Slackware 10.1, FC5
Posts: 164

Rep: Reputation: 30
If nothing else works, you could try downloading a new kernel and configuring and building it yourself.
 
Old 02-21-2006, 05:03 PM   #3
laasunde
LQ Newbie
 
Registered: Sep 2002
Posts: 25

Original Poster
Rep: Reputation: 15
Not sure if I explained myself properly in the first post.

At the moment Im using a vanilla kernel which is been patched with a RTAI 3.3 patch.

When trying to install a
stand alone video module for kernel 2.6
(Running a 'make' command) I received
an error that I'm missing linux\version.h

By running
Code:
cd /usr/src/linux; make include/linux/version.h
I'm able to remove that error message but now I receive the following error
Code:
  Building modules, stage 2.
  MODPOST
/bin/sh: scripts/mod/modpost: No such file or directory
make[2]: *** [__modpost] Error 127
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.10'
make: *** [all] Error 2
I'm starting to worry that my kernel might be faulty or broken because of this error messages
and because what I read here
and here.

When making the current kernel (with RTAI) I follow this step-by-step
manual.

Beside the error message I recived when trying to install the driver everything else seems to
be working fine. I do however worry that there might be something wrong with the current setup.

Is there any way to check the current kernel setup or get rid of the error message I'm getting?

Thanks

Last edited by laasunde; 02-21-2006 at 05:06 PM.
 
Old 02-28-2006, 03:19 PM   #4
burntfuse
Member
 
Registered: Sep 2005
Location: Laurel, MD, USA
Distribution: Slackware 10.1, FC5
Posts: 164

Rep: Reputation: 30
Yeah, I knew what you meant. I meant that by downloading a new stock kernel and trying to build that you could see if your current kernel's broken, or if it's a problem with your system. If it works without the patches, then you know that the patches might be breaking something.
 
Old 02-28-2006, 05:20 PM   #5
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Quote:
Originally Posted by laasunde
Is there any way to check the current kernel setup or get rid of the error message I'm getting?
Thanks
You can check out your current kernel setup by looking at the .config file that comes with it. That will tell you all the options that comes with your kernel, and whether or not they are included, modules, or are not included. Usually you can find a copy in /boot. But /usr/src usally has a copy to I think.
 
  


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
faulty power management and sound in 5.10 jmpmjmpm Ubuntu 1 01-23-2006 12:39 AM
Faulty Anaconda mufy Fedora 1 05-11-2005 02:58 PM
faulty pci card, has it happened to you? stabu Linux - Hardware 3 09-11-2004 05:31 AM
how to check for faulty RAM xushi Slackware 3 09-06-2004 11:12 AM
Faulty Mandrake 9 CD? shusseina Linux - Distributions 12 02-23-2003 09:58 AM


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