LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Couldn't find the kernel version the module was compiled for (https://www.linuxquestions.org/questions/linux-general-1/couldnt-find-the-kernel-version-the-module-was-compiled-for-68289/)

iannou 06-26-2003 05:05 PM

Couldn't find the kernel version the module was compiled for
 
All,

I am getting the above error. I looked throught messages but did not find any quick fix.

I had compiled the kernel ( and was built as -14custom)
I built the module with the folowing options:

INCLUDE = -isystem /lib/modules/`uname -r`/build/include/

CFLAGS = -O3 -DMODULE -D__KERNEL__ $(INCLUDE)

Anbody have suggestions

thanks

ig

jailbait 06-26-2003 08:14 PM

make modules_install
 
The kernel is looking for a directory called /lib/modules/14custom.
Does /lib/modules/14custom exist?

When you did the kernel compile did you also do:
make modules
make modules_install

iannou 06-27-2003 08:00 AM

Thanks jailbait!!

I did actually do make module modules_install and then recompile my modules.

Anybody in the future reading this...make sure your /usr/src/linux-2.4/Makefile EXTRAVERSIONS is appropriately set (to the version of kernal running ) -14 or -14custom

I hate this kernel module version check .. I wasted a lot of time.

Thanks!

Iannou


All times are GMT -5. The time now is 12:56 PM.