Re: ERROR : kernel module verison mismatch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello

> $gcc - c -W -Wstrcik-prototypes -Wmissing-prototypes -isystem
> /lib/modules/2.4.20/'uname -r'/bulid/include  -O2 -DMODULE
> -D__KERNEL__${WARN} ${INCUDE} hello.c
>
> the program gets compiled without any error,
>
> but when i use the insmod i get the following error
>
> command: $ insomod ./hello.o
> error:
> ./hello.o: kernel -module verison mismatch
>              ./hello.o was compiled for kernel version 2.4.20
>              while this kernel is version 2.4..20.-8

Compile your kernel source with the same kernel config as the currently 
running one (redhat stock kernel). I believe you can find one on /boot, 
usually named like config-2.4.20-19.9. Copy it to the kernel source as 
".config" and do make_oldconfig and make dep. Also re-adjust the 
EXTRAVERSION on kernels's Makefile to match the output of "uname -r"

regards

Mulyadi


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux