From: Ian Jackson Subject: Re: [PATCH v2 3/4] python: set absolute path to libxl.h on _pyxl_types.c Date: Fri, 18 May 2012 12:13:41 +0100 Message-ID: <20406.12005.588735.746964@mariner.uk.xensource.com> References: <1337256990-51913-1-git-send-email-roger.pau@citrix.com> <1337256990-51913-3-git-send-email-roger.pau@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1337256990-51913-3-git-send-email-roger.pau@citrix.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: Roger Pau Monne Cc: Christoph Egger , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Roger Pau Monne writes ("[PATCH v2 3/4] python: set absolute path to libxl.h on _pyxl_types.c"): > genwrap.py generates _pyxl_types.c, which includes libxl.h, but if > libxl.h is already present in the include search path, the old one was > included instead of the new one, giving compilation errors. Since > _pyxl_types.c is generated at compilation time, we can safely set > the path to libxl.h include. I'm not sure what you mean by "the old one". Do you mean one in /usr/include ? > I've only experienced this problem when compiling Xen on NetBSD with > old header files in the include path, Linux seems to not have this > problem. The build system should make sure that our own include directories come before system directories. Otherwise various other things aren't going to work either. Ian.