|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] kernel module does not compile on xen
Dear all,
I tried to compile a simple kernel module in dom0, but failed. I tried to
point the include directory to linux-2.4.27-xenU/include and then compile
my kernel module. But the compiler always complain this:
----------------------------------------------------------------
gcc -O2 -DMODULE -D__KERNEL__ -w -Wall
-I/usr/src/linux-2.4.27-xenU/include -c -o file.o file.c
In file included from
/usr/src/linux-2.4.27-xenU/include/linux/reiserfs_fs_sb.h:8,
from /usr/src/linux-2.4.27-xenU/include/linux/fs.h:729,
from
/usr/src/linux-2.4.27-xenU/include/linux/capability.h:17,
from
/usr/src/linux-2.4.27-xenU/include/linux/binfmts.h:5,
from /usr/src/linux-2.4.27-xenU/include/linux/sched.h:9,
from file.c:17:
/usr/src/linux-2.4.27-xenU/include/linux/tqueue.h: In function
`queue_task':
/usr/src/linux-2.4.27-xenU/include/linux/tqueue.h:105: error:
`HYPERVISOR_shared_info_R99320c5e' undeclared (first use in this function)
/usr/src/linux-2.4.27-xenU/include/linux/tqueue.h:105: error: (Each
undeclared identifier is reported only once
/usr/src/linux-2.4.27-xenU/include/linux/tqueue.h:105: error: for each
function it appears in.)
In file included from file.c:17:
/usr/src/linux-2.4.27-xenU/include/linux/sched.h: In function
`unhash_process':
/usr/src/linux-2.4.27-xenU/include/linux/sched.h:917: error:
`HYPERVISOR_shared_info_R99320c5e' undeclared (first use in this function)
---------------------------------------------------------------------------
But the kernel module works fine on a bare machine. What shall I do to
make it through?
I did check the file tqueue.h, but HYPERVISOR_shared_info_R99320c5e is not
defined there. Instead, it was defined in
/usr/src/linux-2.4.27-xenU/include/linux/modules/i386_ksyms.ver. I am not
familiar with this kind of file. Do I have to include the .ver file?
Thanks in advance for your kind help,
Xin
-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] kernel module does not compile on xen,
Xin Zhao <=
|
|
|
|
|