Problem with inserting kernel module

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


Ganeriwal Saurabh top-posted:
> 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.

How/where are you installing the module after building it? What exact 
commands do you run?

P.S. Please do not top-post on this mailing list (see 
http://fedoraproject.org/wiki/MailingListRules#replying)

Paul.




More information about the fedora-list mailing list