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

kernel module programming




Hello

I've just started studying how to make kernel modules for future works.
The base book I am reading is the Kernel Module Programming by Ori
Pomerantz. Though, I couldn't even complete the first lesson, hello world
module! As I do 'make hello', I get this:
 
[root@christian1 modulos]# make hello
gcc   hello.o   -o hello
/usr/lib/crt1.o: In function '_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to 'main'
hello.o: In function 'init_module':
hello.o(.text+0xf): undefined reference to 'printk'
hello.o: In function 'clenup_module':
hello.o(.text+0x33): undefined reference to 'printk'
collect2: ld returned 1 exit status
make: *** [hello] Error 1

I guess the problem is not in the source code, but it is availabe in 
www.linuxdoc.org/LDP/lkmpg/node11.html
So, if anyone have some answer to me, please e-mail-me!

Thankyou

                            Cassia Yuri Tatibana
                           <cytatiba@lcmi.ufsc.br>
                           
                                "Life is hard,
                             after all it kills you."
                                        Katherine Hepburn