LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-15-2004, 05:35 AM   #1
op4_u
LQ Newbie
 
Registered: Sep 2004
Location: Pune - India
Distribution: Red Hat Linux
Posts: 4

Rep: Reputation: 0
Question Problem loading module- version mismatch


I compiled my own simple module for module load test, with gcc, successfully. But when i tried to load a module (.o file) with insmod cmd it has given following msg.
kernel-module version mismatch
syscall.o was compiled for kernel version 2.4.20
while this kernel is version 2.4.22-1.2115.nptl.

I have PCQLinux with kernel version 2.4.22-1.2115.nptl installed. I also tried including all headers from /ur/src/Linux-2.4.22-1.2115.nptl/include/linux dir. And I think the gcc compiler provided with this linux should generate the object code for the same version of kernel.
I really frustated, My project work is stopped due to this. Please help me out.
 
Old 09-15-2004, 05:47 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
The compiler will not make the modules unless you tell it to do so with the commands 'make modules' and 'make modules_install'. From the info you've given, it sounds like you didn't complete the kernel compile process. Review the kernel compilation procedures: you should be able to pick up the thread from the point where you messed up.
 
  


Reply



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
How To Solve The Kernel Module Version Mismatch Problem ? linu_soft Programming 2 07-21-2004 04:47 AM
Kernel-module Version Mismatch !!! lionking_x Linux - Networking 1 02-02-2004 02:07 PM
Kernel-module Version Mismatch !!! lionking_x Linux - Software 1 02-02-2004 02:06 PM
Kernel-module Version Mismatch !!! lionking_x Linux - Newbie 1 02-02-2004 01:01 PM
kernel-module version mismatch louai Linux - General 2 01-08-2004 11:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:14 PM.

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