All of lore.kernel.org
 help / color / mirror / Atom feed
From: yi zheng <yizheng23@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] cann't find head file
Date: Thu, 1 Sep 2011 09:49:55 +0800	[thread overview]
Message-ID: <CAHoMn5p1K5c=f-WWTsK6S3pTULtFVAbszUaqaDp-CGteu=6SDw@domain.hid> (raw)

[-- 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 --]

                 reply	other threads:[~2011-09-01  1:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHoMn5p1K5c=f-WWTsK6S3pTULtFVAbszUaqaDp-CGteu=6SDw@domain.hid' \
    --to=yizheng23@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.