From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=51345 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OoVz1-0002pX-Q0 for qemu-devel@nongnu.org; Thu, 26 Aug 2010 02:30:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OoVxw-0003Sc-MA for qemu-devel@nongnu.org; Thu, 26 Aug 2010 02:29:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27154) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OoVxw-0003S8-Ez for qemu-devel@nongnu.org; Thu, 26 Aug 2010 02:29:36 -0400 Date: Thu, 26 Aug 2010 09:29:28 +0300 From: Gleb Natapov Subject: Re: [Qemu-devel] Re: vhost_net.c broken by --kerneldir Message-ID: <20100826062928.GQ10499@redhat.com> References: <4C746A1E.6070000@mentor.com> <4C75510E.3080500@mentor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C75510E.3080500@mentor.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hollis Blanchard Cc: qemu-devel@nongnu.org, mst@redhat.com On Wed, Aug 25, 2010 at 10:21:18AM -0700, Hollis Blanchard wrote: > On 08/24/2010 05:55 PM, Hollis Blanchard wrote: > > > >The problem seems to be that jump from > >/usr/include/bits/sigcontext.h to asm/sigcontext.h inside > > rather than inside /usr/include. It seems like adding > >-Ikerneldir/arch/foo/include will always be a problem, since it > >will always be used to satisfy "#include ". Only files > >built with KVM_CFLAGS would be affected, and I guess vhost_net.c > >accidentally gets into a broken include path where the other > >KVM_CFLAGS files doesn't. > > Small correction: kvm.c doesn't build either (when I configure > --disable-vhost-net). > I just add --extra-cflags=-D__EXPORTED_HEADERS__ to ./configure -- Gleb.