Problem with inserting kernel module

Paul Howarth paul at city-fan.org
Tue Jul 26 06:08:55 UTC 2005


On Mon, 2005-07-25 at 14:19 -0700, Ganeriwal Saurabh wrote:
> I am facing some problem in inseting kernel modules on Fedora 4
> distribution(2.6.11). I am able to compile the code properly and a X.ko
> file is successfully generated. However, when I call "modprobe X.ko", the
> system just hangs.
> 
> I tried debugging the problem and did a ld X.ko, which results in pointing
> out some weird errors:
> 
> X.ko(.text+0x10291):include/linux/slab.h: undefined reference to __kmalloc
> linux_module.h: undefined reference to kfree
> linux_module.h: undefined reference to printk
> 
> And many more like that.
> 
> Why are not these kernel utilies getting linked properly inspite of
> successful compilation?
> 
> I would appreciate any help and would also be glad to provide details.

How are you building the modules? In a separate directory with a minimal
Makefile (as suggested by the release notes), or in a full kernel tree?

Explain your procedure please.

Paul,
-- 
Paul Howarth <paul at city-fan.org>




More information about the fedora-list mailing list