[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] libxl: build error



On Wed, 2012-10-24 at 12:16 +0100, Jan Beulich wrote:
> >>> On 24.10.12 at 12:50, Christoph Egger <Christoph.Egger@xxxxxxx> 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. <unistd.h> 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 <unistd.h>
     #include <sys/reboot.h>

(or sometimes linux/reboot.h).

Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.