Re: linux/module.h does not exist

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Upto this point I have tried

Step1) gcc -Wall -DMODULE -D__KERNEL__ -DLINUX -c sample2.c
Step2) added -I to gcc flag
gcc -Wall -DMODULE -D__KERNEL -DLINUX -I
/usr/src/linux-headers-2.6.28- 11/include/ -c sample2.c

Step3) added one more -I with asm in path
gcc -I /usr/src/linux-headers-2.6.28-11/arch/x86/include/asm/ -I
/usr/src/linux-headers-2.6.28-11/include/ -c sample2.c

Step4) added asm/x86/include in path
gcc -I /usr/src/linux-headers-2.6.28-11/arch/x86/include/ -I
/usr/src/linux-headers-2.6.28-11/include/ -c sample2.c

Step5) added linux in -I of second argument
gcc -I /usr/src/linux-headers-2.6.28-11/arch/x86/include/asm/ -I
/usr/src/linux-headers-2.6.28-11/include/linux/ -c sample2.c

Step6) removed asm from first argument and linux from second
gcc -I /usr/src/linux-headers-2.6.28-11/arch/x86/include/ -I
/usr/src/linux-headers-2.6.28-11/include/ -c sample2.c

Any more guesses as what is it failing?

This is the link
http://techblog.aasisvinayak.com/a-voyage-to-kernel-first-24-parts/
where author has shared his programs.
These are working programs which have failed on my hardware.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux