From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roger Pau Monne Subject: Re: [PATCH v2 3/4] python: set absolute path to libxl.h on _pyxl_types.c Date: Fri, 18 May 2012 12:17:40 +0100 Message-ID: <4FB62FD4.8060208@citrix.com> References: <1337256990-51913-1-git-send-email-roger.pau@citrix.com> <1337256990-51913-3-git-send-email-roger.pau@citrix.com> <20406.12005.588735.746964@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20406.12005.588735.746964@mariner.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: Ian Jackson Cc: Christoph Egger , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Ian Jackson wrote: > 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 ? Yes, in NetBSD case the ones in /usr/pkg/include, that's where Xen headers would reside on a normal installation. > >> 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. This only happened when building python extensions because the port build of python passes "OPT" to python configure that contains -I/usr/pkg/include. And that is used also when building extensions. A bug report is in place. The rest of the build system is fine. > Ian.