All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] cann't find head file
@ 2011-09-01  1:49 yi zheng
  0 siblings, 0 replies; only message in thread
From: yi zheng @ 2011-09-01  1:49 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 2841 bytes --]

Hi all
       I want to compile a kernel module.The source code file ,written by
native skin, prepared to compile is named "kernel-test.c".The comment of
makefile is described as follows:
       ifneq ($(KERNELRELEASE),)
obj-m :=kernel-test.o
else
KSRC ?=/usr/src/xenomai/linux-2.6.31.8
PWD     :=$(shell pwd)
default:
$(MAKE) -C  $(KSRC)    M=$(PWD)        modules
endif
        I tried to compile kernel module.Then I got:
make -I/usr/xenomai/include/  ARCH=arm CROSS_COMPILE=arm-linux-
make -C  /usr/src/xenomai/linux-2.6.31.8
 M=/home/zhengyi/xenomai-program/kernel        modules
make[1]: Entering directory `/usr/src/xenomai/linux-2.6.31.8'
  CC [M]  /home/zhengyi/xenomai-program/kernel/kernel-test.o
/home/zhengyi/xenomai-program/kernel/kernel-test.c:1:25: native/task.h: No
such file or directory
/home/zhengyi/xenomai-program/kernel/kernel-test.c:5: error: parse error
before "task_desc"
/home/zhengyi/xenomai-program/kernel/kernel-test.c:5: warning: type defaults
to `int' in declaration of `task_desc'
/home/zhengyi/xenomai-program/kernel/kernel-test.c:5: warning: data
definition has no type or storage class
/home/zhengyi/xenomai-program/kernel/kernel-test.c: In function `task_body':
/home/zhengyi/xenomai-program/kernel/kernel-test.c:9: error: implicit
declaration of function `printk'
/home/zhengyi/xenomai-program/kernel/kernel-test.c: In function
`init_module':
/home/zhengyi/xenomai-program/kernel/kernel-test.c:17: error: implicit
declaration of function `rt_task_create'
/home/zhengyi/xenomai-program/kernel/kernel-test.c:21: error: `T_FPU'
undeclared (first use in this function)
/home/zhengyi/xenomai-program/kernel/kernel-test.c:21: error: (Each
undeclared identifier is reported only once
/home/zhengyi/xenomai-program/kernel/kernel-test.c:21: error: for each
function it appears in.)
/home/zhengyi/xenomai-program/kernel/kernel-test.c:21: error: implicit
declaration of function `T_CPU'
/home/zhengyi/xenomai-program/kernel/kernel-test.c:23: error: implicit
declaration of function `rt_task_start'
/home/zhengyi/xenomai-program/kernel/kernel-test.c:23: error: `NULL'
undeclared (first use in this function)
/home/zhengyi/xenomai-program/kernel/kernel-test.c:24: error: implicit
declaration of function `pause'
/home/zhengyi/xenomai-program/kernel/kernel-test.c: In function
`cleanup_module':
/home/zhengyi/xenomai-program/kernel/kernel-test.c:29: error: implicit
declaration of function `rt_task_delete'
make[2]: *** [/home/zhengyi/xenomai-program/kernel/kernel-test.o] error 1
make[1]: *** [_module_/home/zhengyi/xenomai-program/kernel] error 2
make[1]: Leaving directory `/usr/src/xenomai/linux-2.6.31.8'
make: *** [default] error 2

It seems that my problem is caused by  Xenomai head file directory.How to
solve my proble?Thank you.
regards
yizheng

[-- Attachment #2: Type: text/html, Size: 3759 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-09-01  1:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-01  1:49 [Xenomai-help] cann't find head file yi zheng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.