LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-13-2003, 08:47 AM   #1
marlinux
LQ Newbie
 
Registered: Jul 2003
Posts: 20

Rep: Reputation: 0
modversions.h not found


hi,
I am RH9.0 in a PIII 900MHz machine with a kernel 2.4.22.
I am installing a module for toshiba satellite 3000 laptop to read the CPU state and temperature.
That module it is " tonetosh3k-0.1" which produce the files
/proc/toshiba3k/fan
/proc/toshiba3k/status
/proc/toshiba3k/temperature
/proc/toshiba3k/cpu
...

I did it onetime after compiled the kernel and it worked fine with the CPU speedstep control. One day, I donīt know why the speedstep feature disappeared (with the file /proc/toshiba3k/cpu ).
So I tied to recompile the module but the compiler give me several error with the first one which is refered to modversions.h which doesnī t find:

"
gcc -D__KERNEL__ -O2 -Wall -Wstrict-prototypes -Wno-trigraphs -fomit-frame-pointer -fno-strict-aliasing -fno-common -DCONFIG_TOSH3k_SPEEDSTEP -I/lib/modules/`uname -r`/build/include -D_LINUX -DMODULE -DMODVERSIONS -include /lib/modules/`uname -r`/build/include/linux/modversions.h -DTOSH3k_VERSION='"0.1.1 Wed Aug 7 15:04:20 CEST 2002"' -c -o tosh3k.o tosh3k.c
<command line>:137890687:2952: /lib/modules/2.4.22martino25aug2003/build/include/linux/modversions.h: No such file or directory
In file included from /lib/modules/2.4.22martino25aug2003/build/include/linux/config.h:4,
from /lib/modules/2.4.22martino25aug2003/build/include/linux/linkage.h:4,

from /lib/modules/2.4.22martino25aug2003/build/include/linux/kernel.h:11,
from tosh3k.c:22:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
..
..
.."
Should modversions.h be present?
It is possible it was erased by strange suddenly shudtown of the system (I donīt know why I that)?
Thanks

Martino
 
Old 10-08-2003, 02:48 AM   #2
sidey
Member
 
Registered: Mar 2003
Location: Essex UK
Distribution: rh 8.0 bsd 5.0 slack 9.0 rc2 crux
Posts: 147

Rep: Reputation: 15
shouldnt have just been erased, iirc try reinstalling the kernel headers. that should fix you up again
 
Old 11-09-2003, 01:01 AM   #3
bikuta
LQ Newbie
 
Registered: Nov 2003
Location: Australia
Distribution: Debian
Posts: 1

Rep: Reputation: 0
what do u mean by reinstalling the kernel-hearders?
how do i do that?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
modem driver installation gives the error modversions.h not found gajaykrishnan SUSE / openSUSE 3 06-05-2005 06:43 AM
Problem with modversions.h Roger Almenar Linux - Hardware 0 07-21-2004 04:22 PM
modversions.h JanDeMan Linux - Newbie 3 06-14-2004 06:48 AM
can't find modversions.h talonnb Linux - Newbie 2 08-03-2003 04:43 AM
modversions.h not there closet geek Linux - Software 4 06-02-2003 02:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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