LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-07-2002, 01:22 AM   #1
jvs
LQ Newbie
 
Registered: May 2002
Posts: 3

Rep: Reputation: 0
Sample Driver Module incompatibility with Kernel version (or gcc version)


Hello,

I am a newbie to Linux driver programming, I wrote a sample program from a book which has init_module() and clean_module() only. When I tried to insmod the object file (which is compiled using gcc), it gives a message "the module cannot be loaded as it requires the kernel version to be 2.4.0-0.26smp "
My current kernel version is 2.2.16-22smp with RedHat Linux 7.
Can anyone help me out in loading module succesfully into kernel???

Thanks in advance
JVS
 
Old 06-07-2002, 02:40 AM   #2
sakeeb
Member
 
Registered: Apr 2002
Posts: 270

Rep: Reputation: 31
the kernel headers you used may be of the kernel version 2.4.0-0.26 and you may be currently loaded the kernel of version 2.2.16-22smp
 
  


Reply


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 On
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 03:54 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 09:17 PM
gcc version & X driver BroX Slackware 3 03-13-2004 08:57 AM
Xfree Error (EE) module ABI minor version (7) is newer than the server's version (6) jimdaworm Slackware 0 10-17-2003 06:26 PM
Xfree prob radeon.o kernel module version is 1.1.1 but version 1.5.0 or newer needed. jimdaworm Slackware 0 10-01-2003 07:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:32 AM.

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