insmod: unresolved symbols
From: Bartłomiej Zarzycki (b.zarzycki_at_interja.pl)
Date: 08/15/04
- Next message: P.T. Breuer: "Re: insmod: unresolved symbols"
- Previous message: nikhil bhargav: "clarification about Linux Timers"
- Next in thread: P.T. Breuer: "Re: insmod: unresolved symbols"
- Reply: P.T. Breuer: "Re: insmod: unresolved symbols"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 15 Aug 2004 21:13:19 +0200
Cześć
I wrote a simple kernel module
#define MODULE
#include <linux/module.h>
int init_module(void){
printk("Witaj świecie\n");
return 0;
}
void cleanup_module(void){
printk("Żegnaj świecie\n");
}
I was compile that by gcc -c -D__KERNEL__ hello.c -Wall
-I/usr/src/linux/include
System running on exactly the same kernel (manually rebuild and install
for sure) as kernel headers which was used to compilation.
Module was compile ok without any errors or warnings.
When I try to load that module insmod show error message:
# insmod hello.o
insmod: unresolved symbols
What should I do to run that simply module ?
-- Bartłomiej Zarzycki
- Next message: P.T. Breuer: "Re: insmod: unresolved symbols"
- Previous message: nikhil bhargav: "clarification about Linux Timers"
- Next in thread: P.T. Breuer: "Re: insmod: unresolved symbols"
- Reply: P.T. Breuer: "Re: insmod: unresolved symbols"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|