error while compiling

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

 



hi all,
	Can someone tell what these error means?????and how to remove this error.

------------------------------------------------ 
root@shan skull]# make
gcc -Wall -D__KERNEL__ -DMODULE -I/usr/src/linux/include -I.. -O   -c -o 
skull_init.o skull_init.c
In file included from /usr/include/linux/module.h:21,
                 from skull_init.c:33:
/usr/include/linux/modversions.h:1:2: #error Modules should never use 
kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from an 
appropriate kernel-source package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include 
(or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname 
-r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the 
currently-running kernel.
make: *** [skull_init.o] Error 1
---------------------------------------------------

Before upgrading the kernel it was working fine.
Presently my kernle is 2.4.7-10.


Thanking in Anticipation.
shahnavaz
 
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[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