modversions.h not found
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
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,
/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)?