From: Keir Fraser Subject: Re: 3.1.x and 3.2.x releases Date: Fri, 28 Dec 2007 13:16:50 +0000 Message-ID: References: <200712281217.11561.caglar@pardus.org.tr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <200712281217.11561.caglar@pardus.org.tr> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: caglar@pardus.org.tr Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Oh, it's because your stdint.h type definitions are macros rather than typedefs. I believe the C spec requires them to be typedef names (Section 7.18 of the C99 draft spec). It looks like the problem stems from the stdint.h supplied with gnulib, included in libvirt-0.4.0. Why does libvirt require its own stdint.h? I'm pretty sure you'd have the same problem building against the 3.2.0-rc public headers. -- Keir On 28/12/07 10:17, "S.=C3=87a=C4=9Flar Onur" wrote: > Hi Keir; >=20 > 28 Ara 2007 Cum tarihinde, Keir Fraser =C5=9Funlar=C4=B1 yazm=C4=B1=C5=9Ft=C4=B1: >> It's not obvious what the problem is. DEFINE_XEN_GUEST_HANDLE() is defin= ed >> at that point in xen.h because we have used it earlier. This is also tru= e >> for uint8_t, uint16_t, etc. You'll have to do a bit more digging (e.g., = use >> gcc -E option to get the post-processed source, and see if that shows >> anything obviously wrong). >=20 > Seems like >=20 > [...] > DEFINE_XEN_GUEST_HANDLE(uint8_t); > DEFINE_XEN_GUEST_HANDLE(uint16_t); > DEFINE_XEN_GUEST_HANDLE(uint32_t); > DEFINE_XEN_GUEST_HANDLE(uint64_t); > [...] >=20 > in xen.h converted >=20 > [...] > typedef unsigned char * __guest_handle_unsigned char; > typedef unsigned short int * __guest_handle_unsigned short int; > typedef unsigned int * __guest_handle_unsigned int; > typedef unsigned long long int * __guest_handle_unsigned long long int; > [...] >=20 > and >=20 > [...] > XEN_GUEST_HANDLE(uint8_t) edid; > [...] >=20 > in platform.h converted >=20 > [...] > __guest_handle_unsigned char edid; > [...] >=20 > which causes the build errors. >=20 > Cheers