From: Ian Jackson Subject: Re: [xen-devel] [PATCH] libxl: fix compile error of libvirt Date: Fri, 24 Feb 2012 12:18:39 +0000 Message-ID: <20295.32799.308331.653289@mariner.uk.xensource.com> References: <4F427C2B0200003000000BDD@novprvlin0050.provo.novell.com> <20291.56383.499378.463797@mariner.uk.xensource.com> <4F45109C02000030000011FC@novprvlin0050.provo.novell.com> <20292.55062.209546.961330@mariner.uk.xensource.com> <4F4560BC.30002@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4F4560BC.30002@suse.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: Jim Fehlig , Ian Campbell Cc: "xen-devel@lists.xensource.com" , Bamvor Jian Zhang List-Id: xen-devel@lists.xenproject.org Jim Fehlig writes ("Re: [Xen-devel] [xen-devel] [PATCH] libxl: fix compile error of libvirt"): > The libvirt libxl driver doesn't use libxc directly. AFAICT, the problem > is that libxl.h includes , which has this > > #if !defined(__XEN__) && !defined(__XEN_TOOLS__) > #error "sysctl operations are intended for use by node control tools only" > #endif > > Without the defines, Bamvor is hitting the #error directive. I see. Hmm. I have investigated further and: xl.c contained #include which is definitely very wrong. when I (a) #undef __XEN_TOOLS__ at the top of xl.c (b) remove that I can reproduce the error in-tree. I'm unsure as to whether we should expect libxl callers include . I think my view is that including these Xen public headers for things like Xen sysctl numbers, scheduler parameter numbers, etc., is fine. Ian, what do you think ? But we definitely need to do something to stop libxl callers, including xl, including xenctrl.h. Ian.