WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] failure in making modules under Domain0?

To: "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx>
Subject: [Xen-devel] failure in making modules under Domain0?
From: "Haifeng Fang" <fhf25@xxxxxxx>
Date: Mon, 18 Jan 2010 18:01:56 +0800
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 18 Jan 2010 02:02:36 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
hi, all
 
I have programmed a linux module. when i compiled it in pure-linux, it can be made successfully.
However, when i compiled it in Domain0-Linux, it would output some failures as follows:
 
[root@Domain0 lkm]# make
make -C /lib/modules/2.6.18-xen0/build SUBDIRS=/home/trust-project/remote-io/xen-triob/tools/xenaccess-0.5/examples/lkm modules
make[1]: Entering directory `/home/trust-project/remote-io/xen-triob/build-linux-2.6.18-xen0_x86_32'
make -C /home/trust-project/remote-io/xen-triob/linux-2.6.18-xen O=/home/trust-project/remote-io/xen-triob/build-linux-2.6.18-xen0_x86_32 modules
make[4]: Circular /home/trust-project/remote-io/xen-triob/tools/xenaccess-0.5/examples/lkm/integrity_checker_lkm.o <- /home/trust-project/remote-io/xen-triob/tools/xenaccess-0.5/examples/lkm/integrity_checker_lkm.o dependency dropped.
  Building modules, stage 2.
  MODPOST
  CC      /home/trust-project/remote-io/xen-triob/tools/xenaccess-0.5/examples/lkm/integrity_checker_lkm.mod.o
In file included from /home/trust-project/remote-io/xen-triob/linux-2.6.18-xen/include/xen/hypercall.h:4,
                 from include2/asm/mach-xen/asm/hypervisor.h:141,
                 from include2/asm/mach-xen/asm/system.h:9,
                 from include2/asm/mach-xen/asm/processor.h:18,
                 from include2/asm/thread_info.h:16,
                 from /home/trust-project/remote-io/xen-triob/linux-2.6.18-xen/include/linux/thread_info.h:21,
                 from /home/trust-project/remote-io/xen-triob/linux-2.6.18-xen/include/linux/preempt.h:9,
                 from /home/trust-project/remote-io/xen-triob/linux-2.6.18-xen/include/linux/spinlock.h:49,
                 from /home/trust-project/remote-io/xen-triob/linux-2.6.18-xen/include/linux/capability.h:45,
                 from /home/trust-project/remote-io/xen-triob/linux-2.6.18-xen/include/linux/sched.h:44,
                 from /home/trust-project/remote-io/xen-triob/linux-2.6.18-xen/include/linux/module.h:9,
                 from /home/trust-project/remote-io/xen-triob/tools/xenaccess-0.5/examples/lkm/integrity_checker_lkm.mod.c:1:
include2/asm/mach-xen/asm/hypercall.h:408: error: expected ')' before '*' token
make[4]: *** [/home/trust-project/remote-io/xen-triob/tools/xenaccess-0.5/examples/lkm/integrity_checker_lkm.mod.o] Error 1
make[3]: *** [modules] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/trust-project/remote-io/xen-triob/build-linux-2.6.18-xen0_x86_32'
make: *** [all] Error 2
 
===============
 
anyone has ever encountered this one? give me a help!
 
thanks in advance.
 
 
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>