LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   help, gcc version and kernel version mismatch (http://www.linuxquestions.org/questions/linux-newbie-8/help-gcc-version-and-kernel-version-mismatch-442104/)

akanitkar 05-06-2006 12:28 AM

help, gcc version and kernel version mismatch
 
hi,
I am new to linux. I did a simple helloworld.c from Linux Device Drivers on Red Hat 9, kernel version 2.4.20-8. Now I complied it into object file, but when I tried to insert that module using insmod, I got error that like kernel version mismatch. Please help me to find a way out of it.
Regards,
Aditya

Lenard 05-06-2006 07:02 AM

Download the kernel source and build the kernel, this way both the kernel and your compiled module will be at the same gcc level.

FYI: the kernel 2.4.20-8 is really old and needs to be replaced ASAP, in fact RHL9 has been EOL'd for over two years now. EOL == End of Life

Please consider installing a more recent version of Linux, keeping in the Red Hat family may I suggest Fedora Core 4/5 or CentOS 3/4;

http://www.centos.org/
http://fedora.redhat.com/

At least visit the Fedora Legacy site and learn how to install and use yum and bring RHL9 current; http://www.fedoralegacy.org/


All times are GMT -5. The time now is 10:58 AM.