Problem with inserting kernel module

Ganeriwal Saurabh saurabh at ee.ucla.edu
Tue Jul 26 14:21:12 UTC 2005


hi,

I am building the module in a separate directory using the minimal
Makefile.

bye,
saurabh

On Tue, 26 Jul 2005, Paul Howarth wrote:

> 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>
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
>
>




More information about the fedora-list mailing list