From: Ian Campbell Subject: Re: [Xen-users] libutil.h moved to bsd/libutil.h (Was: Re: Problem compiling Xen 4.2 from sources) Date: Tue, 2 Oct 2012 17:50:03 +0100 Message-ID: <1349196603.650.116.camel@zakaz.uk.xensource.com> References: <20121002163136.GA5378@intersect> <1349196417.650.115.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1349196417.650.115.camel@zakaz.uk.xensource.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: Giorgio Mossa Cc: "xen-users@lists.xen.org" , xen-devel , Ian Jackson , Roger Pau Monne List-Id: xen-devel@lists.xenproject.org On Tue, 2012-10-02 at 17:46 +0100, Ian Campbell wrote: > (Adding some CCs) > On Tue, 2012-10-02 at 17:31 +0100, Giorgio Mossa wrote: > > Hello everyone, > > I'm working on an Ubuntu 12.04 and I wanted to test > > Xen 4.2 (official repository offer just version 4.1), > > so I've downloaded the source tarball from the site, > > followed the instruction in the readme but when compiling > > I'm getting the following error: > > > > In file included from libxl_bootloader.c:21:0: > > /usr/include/libutil.h:33:2: error: #warning "Deprecated header, use or libbsd-overlay.pc instead." [-Werror=cpp] > > cc1: all warnings being treated as errors > > make[3]: *** [libxl_bootloader.o] Error 1 > > > > could anyone explain how to solve this problem, without disabling > the warning/errors compilation options? Oh, BTW, I expect you could just purge libbsd-dev from your system and that would workaround the issue. Ian. > > Looks like someone has decided to move this header from /usr/include > to /usr/include/bsd and leave behind a #warning in the old location, > which has broken the way we do things. > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=640895 seems to relate > to the fallout from this. > > I'm not sure when the include of libutil is needed, it's not mentioned > in the Linux man pages and on Linux neither of the functions we purport > to need from it are actually present. Perhaps it's a BSD only thing? > > Probably we need to check for bsd/libutil.h in preference to libutil.h > although the resolution of #640895 suggests that what we do now is > correct now that the bug is fixed, in which case a bug against Ubuntu > would be appropriate. > > Ian, Royer, What do you guys think? > > Ian. > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users