From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joerg Roedel Subject: Re: kvm-userspace build break (linux/types.h) Date: Thu, 19 Feb 2009 23:03:15 +0100 Message-ID: <20090219220315.GI2125@8bytes.org> References: <1235080214.16221.26.camel@slate.austin.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm-devel , Jaswinder Singh Rajput , Avi Kivity , linux-kernel To: Hollis Blanchard Return-path: Content-Disposition: inline In-Reply-To: <1235080214.16221.26.camel@slate.austin.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Thu, Feb 19, 2009 at 03:50:14PM -0600, Hollis Blanchard wrote: > A recent kernel merge breaks kvm-userspace build: > make[1]: Entering directory `/root/hollisb/kvm-userspace.git/= libkvm' > gcc -m64 -D__x86_64__ -MMD -MF ./.libkvm.d -g -fomit-frame-po= inter -Wall -fno-stack-protector -I /root/hollisb/kvm-userspace.git/= kernel/include -c -o libkvm.o libkvm.c > In file included from /usr/include/bits/fcntl.h:24, > from /usr/include/fcntl.h:34, > from libkvm.c:30: > /usr/include/sys/types.h:46: error: conflicting types for =E2= =80=98loff_t=E2=80=99 > /usr/include/linux/types.h:30: error: previous declaration of= =E2=80=98loff_t=E2=80=99 was here > /usr/include/sys/types.h:62: error: conflicting types for =E2= =80=98dev_t=E2=80=99 > /usr/include/linux/types.h:13: error: previous declaration of= =E2=80=98dev_t=E2=80=99 was here > [...] >=20 > I built like so: > ./configure > make -C kernel LINUX=3D/path/to/kvm.git sync > make >=20 > The problem appears to be 00bfddaf7f68a6551319b536f052040c370756b0 an= d > cef3767852a9b1a7ff4a8dfe0969e2d32eb728df, both from Jaswinder Singh > Rajput :=20 > -#include > +#include >=20 > With these changes, libkvm.c ends up > including /usr/include/linux/types.h, instead of the > intended ../kernel/include/linux/types.h. I had the same problem some weeks ago. IIRC I fixed it with some includ= e reordering in libkvm.h. Joerg