It is currently Mon, 27 Jun 2022 12:04:09 GMT



 
Author Message
 Module Programming: module version vs. kernel version
Dear all,

I've just started learning kernel programming on Linux. I just tried an
example "hello, world" module program. The program looks like:
#define MODULE
#include <linux/module.h>
int init_module(void)
{ print out a hello message}
void cleanup_module(void)
{print out a goodbye message}

It can be compiled into .o but when I tried to insmod, I got this error
message:
module compiled for kernel version 2.4.0-xxx
kernel version is 2.2.16-xxx

I have no clue how to fix it. Please help. Thank you very much.

Crystal



 Sat, 09 Aug 2003 12:16:11 GMT   
 Module Programming: module version vs. kernel version

#define __NO_VERSION__

--
Mohd. Aminudin bin Mohd. Khalid
System Software Development
MIMOS



 Sat, 09 Aug 2003 23:16:17 GMT   
 Module Programming: module version vs. kernel version
give your comiler additional flag, -I/usr/src/linux/include/
where that dir is the source of your kernel.

news:96sr77$8qk$1@newton3.pacific.net.sg...



 Sun, 10 Aug 2003 01:42:14 GMT   
 
   [ 3 post ] 

Similar Threads

1. load module error--kernel-module version mismatch

2. load module error--kernel-module version mismatch

3. Kernel Module != Kernel Version ???

4. xfree86 update fails (module ABI minor Version is newer than the server's version)

5. Linux kernel version vs library version


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software