Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-06-2006, 12:28 AM   #1
LQ Newbie
Registered: May 2006
Posts: 2

Rep: Reputation: 0
help, gcc version and kernel version mismatch

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.
Old 05-06-2006, 07:02 AM   #2
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
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;

At least visit the Fedora Legacy site and learn how to install and use yum and bring RHL9 current;


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 02:54 PM
Kernel version Source Version mismatch after recompile chuckleberry Linux - Software 1 06-20-2005 06:37 PM
redhat fedora gcc version (compiled for 2.4.20) doesn't match kernel version 2.4.22 start1000 Linux - Software 0 03-16-2004 08:17 PM
Sample Driver Module incompatibility with Kernel version (or gcc version) jvs Linux - General 1 06-07-2002 01:40 AM
kernel version mismatch jimo Linux - Software 3 10-29-2001 01:58 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration