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

Re: [Xen-devel] [Patch] fix compilation

To: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [Patch] fix compilation
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Mon, 02 Jun 2008 07:40:56 +0100
Delivery-date: Sun, 01 Jun 2008 23:40:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <D4C8C45E074325takebe_akio@xxxxxxxxxxxxxx>
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
Thread-index: AcjEe5wo2tjadTBuEd2r3wAWy6hiGQ==
Thread-topic: [Xen-devel] [Patch] fix compilation
User-agent: Microsoft-Entourage/11.4.0.080122
I don't think we've ever modified that source file, and it builds okay
usually.

 -- Keir

On 2/6/08 04:09, "Akio Takebe" <takebe_akio@xxxxxxxxxxxxxx> wrote:

> 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



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

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