From: Keir Fraser Subject: Re: [Patch] fix compilation Date: Mon, 02 Jun 2008 07:40:56 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Akio Takebe , xen-devel List-Id: xen-devel@lists.xenproject.org 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" 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 > > 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 > #include > #include "modpost.h" > +#include > > /* > * Stolen form Cryptographic API. > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel