insmod error on FC2?

littertiger tiger_zsch at 163.com
Sat Jun 19 01:46:16 UTC 2004


Hello,fedora-list

Source:
#define MODULE
#include <linux/module.h>
int init_module(void) {printk("<1>Hello,world\n");return 0;}
void cleanup_module(void) {printk("<1>Goodbye cruel world\n");}

It is the first demo of book "The linux device driver". then,
gcc -c hello.c
insmod ./hello.o
then an error occured:
insmod error inserting "hello.o": -l Invalid module fromat

why?

Thank you!	

 				

        littertiger
        tiger_zsch at 163.com
          2004-06-19








More information about the fedora-list mailing list