insmod: unresolved symbols

From: Bartłomiej Zarzycki (b.zarzycki_at_interja.pl)
Date: 08/15/04


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


Relevant Pages

  • Modprobe problem
    ... Sep 11 06:01:03 www kernel: agpgart: Maximum main memory to use for agp ... Sep 11 06:01:03 www insmod: Hint: insmod errors can be caused by incorrect ... module parameters, includings ... Sep 11 06:01:04 www kernel: aztcd: If you have problems, ...
    (comp.os.linux.setup)
  • Modprobe problem
    ... Sep 11 06:01:03 www kernel: agpgart: Maximum main memory to use for agp ... Sep 11 06:01:03 www insmod: Hint: insmod errors can be caused by incorrect ... module parameters, includings ... Sep 11 06:01:04 www kernel: aztcd: If you have problems, ...
    (alt.os.linux)
  • Location of Kernel modules
    ... Does anybody know how insmod knows where to find the modules and how different menu entries in GRUB can communicate this location to the running system? ... I compiled a new Kernel that has a different version than the original one. ... The location of the modules given in the error message is that of the _old_ modules, so I suppose the new bzImage indeed was started, but insmod searches the modules in the wrong place. ...
    (comp.os.linux.setup)
  • Re: Kernel module Help me
    ... the next is to be absolutely sure that insmod ... the file system is still mounted read-only. ... That is where depmod comes in. ... because so much has changed in the kernel and module ...
    (comp.os.linux.setup)
  • Re: intrepid and nvidia
    ... when I wanted to get the nvidia stuff reinstalled. ... I get my console back and can insmod the kernel object. ... $ sudo insmod insmod ...
    (Ubuntu)