I was attempting to build a module, earlier built on Redhat 6.2, on RedHat 7.0. The module built no problem but when I went to install it I got the following error: Warning: kernel-module version mismatch /data/56/Release/pikadsp.o was compiled for kernel version 2.4.0-0.26 while this kernel is version 2.2.16-22 We include files from /usr/include/linux so I go there to check out the header files. I open version.h and indeed the kernel is defined as being 2.4.0-0.26 even though I am running the 2.2.16-22 kernel. It seems to me that the header files included in the install are mismatched to the actual kernel that is installed. I have a standard 7.0 Redhat install with no other kernels downloaded or installed on my system.
/usr/include/linux are the _GLIBC_ headers, not the kernel headers. The kernel-headers are in /usr/src/linux/include. For Red Hat 6.2 these happened to be the same, but that was coincidence.....
*** This bug has been marked as a duplicate of 20292 ***