Skip to contentSkip to conversation

No linux/module.h

DISCUSSION mahamuni ashish 3 participants 3 messages Sep 26, 2007

lore
Share & tools
lore
#0 lore raw

I am writing simple kernel module.
I have included linux/module.h
compiler gives me error that no such file, I also
searched it on my machine.
It really doesn't exist. I am using fedora 6.
How do I install required libraries.

Did you know? You can CHAT without downloading messenger. Go to http://in.messenger.yahoo.com/webmessengerpromo.php/

#1 lore raw
Quoted 6 lines · mahamuni ashish

I am writing simple kernel module.
I have included linux/module.h
compiler gives me error that no such file, I also
searched it on my machine.
It really doesn't exist. I am using fedora 6.
How do I install required libraries.

I suspect you either have an incorrect makefile or you don't have the kernel source code on your system. The header file can be found in the kerel source: include/linux/module.h

Regards,
Kristof

#2 lore raw
Quoted 10 lines · Kristof Provost
Quoted 6 lines · mahamuni ashish

I am writing simple kernel module.
I have included linux/module.h
compiler gives me error that no such file, I also
searched it on my machine.
It really doesn't exist. I am using fedora 6.
How do I install required libraries.

I suspect you either have an incorrect makefile or you don't have the kernel source code on your system. The header file can be found in the kerel source: include/linux/module.h

He needs kernel-devel, I guess.

Signature · 2 lines
Jiri Slaby ([email protected])
Faculty of Informatics, Masaryk University