insmod error on FC2?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx
          2004-06-19






[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux