From: Ian Jackson Subject: Re: [xen-devel] [PATCH] libxl: fix compile error of libvirt Date: Wed, 22 Feb 2012 11:52:54 +0000 Message-ID: <20292.55062.209546.961330@mariner.uk.xensource.com> References: <4F427C2B0200003000000BDD@novprvlin0050.provo.novell.com> <20291.56383.499378.463797@mariner.uk.xensource.com> <4F45109C02000030000011FC@novprvlin0050.provo.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4F45109C02000030000011FC@novprvlin0050.provo.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: Bamvor Jian Zhang Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Bamvor Jian Zhang writes ("Re: [Xen-devel] [xen-devel] [PATCH] libxl: fix compile error of libvirt"): > Ian Jackson wrote: > > Users of libxl should not be using libxc directly and therefore should > > not be including xenctrl.h. ... > but after your commit "23174:751c6dcec0d4"(remove xenctrl.h from libxl.h), the aplication(like libvirt) compile fail. How do i deal with it? > it seems that add __XEN_TOOLS_ to libvirt code is not good. Can you tell us the error message you get ? I think the problem is probably that libvirt is trying to use libxc directly. Now there is an existing libxc/libxenstore-based libvirt driver for Xen but that should be in a separate file. The libxl-based driver should not use libxc. Ian.