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] [Patch] fix compilation

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [Patch] fix compilation
From: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
Date: Mon, 02 Jun 2008 12:09:10 +0900
Delivery-date: Sun, 01 Jun 2008 20:10:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I got the following compilation error.
This patch fix the error, I think it is needed for xen-testing tree.

/root/unstable/linux-2.6.18-xen.hg/scripts/mod/sumversion.c: In function 
'get_src_version':
/root/unstable/linux-2.6.18-xen.hg/scripts/mod/sumversion.c:384: error: 
'PATH_MAX' undeclared (first use in this function)
/root/unstable/linux-2.6.18-xen.hg/scripts/mod/sumversion.c:384: error: 
(Each undeclared identifier is reported only once
/root/unstable/linux-2.6.18-xen.hg/scripts/mod/sumversion.c:384: error: 
for each function it appears in.)
/root/unstable/linux-2.6.18-xen.hg/scripts/mod/sumversion.c:384: 
warning: unused variable 'filelist'
make[7]: *** [scripts/mod/sumversion.o] Error 1
make[6]: *** [scripts/mod] Error 2
make[5]: *** [scripts] Error 2
make[4]: *** [modules] Error 2
make[3]: *** [modules] Error 2
make[3]: Leaving directory `/root/unstable/xen-unstable.hg/build-linux-2.
6.18-xen_x86_32'
make[2]: *** [build] Error 1
make[2]: Leaving directory `/root/unstable/xen-unstable.hg'
make[1]: *** [linux-2.6-xen-install] Error 2
make[1]: Leaving directory `/root/unstable/xen-unstable.hg'
make: *** [install-kernels] Error 1

Signed-off-by: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>

Best Regards,

Akio Takebe

---
diff -r 557a4a0a5eac scripts/mod/sumversion.c
--- a/scripts/mod/sumversion.c  Fri May 30 19:08:50 2008 +0100
+++ b/scripts/mod/sumversion.c  Mon Jun 02 19:47:43 2008 +0900
@@ -8,6 +8,7 @@
 #include <errno.h>
 #include <string.h>
 #include "modpost.h"
+#include <linux/limits.h>
 
 /*
  * Stolen form Cryptographic API.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>