From: Ian Campbell Subject: Re: libxl: build error Date: Wed, 24 Oct 2012 12:28:10 +0100 Message-ID: <1351078090.18035.4.camel@zakaz.uk.xensource.com> References: <5087B6A4.6030203@amd.com> <1351072711.2237.139.camel@zakaz.uk.xensource.com> <5087C813.8090609@amd.com> <5087EA1F02000078000A3EAE@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5087EA1F02000078000A3EAE@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Christoph Egger , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Wed, 2012-10-24 at 12:16 +0100, Jan Beulich wrote: > >>> On 24.10.12 at 12:50, Christoph Egger wrote: > > On 10/24/12 11:58, Ian Campbell wrote: > >> On Wed, 2012-10-24 at 10:36 +0100, Christoph Egger wrote: > >>> Hi, > >>> > >>> I have this build error: > >>> > >>> xl_cmdimpl.c:3724:40: error: declaration of 'reboot' shadows a global > >>> declaration > >> > >> Did gcc tell you where the other global definition was from? > > > > No. > > > >> reboot(2) I suppose? > > > > Yes. has the prototype. > > Afaict that's a mistake of whatever provides this header on your > system - there's no unconditionally visible "reboot" in the specs > I have available. Indeed, on Linux it is documented as requiring: #include #include (or sometimes linux/reboot.h). Ian.