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] kernel module does not compile on xen

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] kernel module does not compile on xen
From: Xin Zhao <zhaoxin@xxxxxxxxxxxxxx>
Date: Wed, 15 Sep 2004 17:42:55 -0400 (EDT)
Delivery-date: Wed, 15 Sep 2004 22:54:39 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
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 <=