qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] glib-compat tales of woe


From: Cornelia Huck
Subject: Re: [Qemu-devel] glib-compat tales of woe
Date: Thu, 2 Apr 2015 16:32:36 +0200

On Thu, 02 Apr 2015 15:55:10 +0200
Paolo Bonzini <address@hidden> wrote:

> 
> 
> On 02/04/2015 15:15, Cornelia Huck wrote:
> > After some updates were applied on our SLES11SP3 development server,
> > current qemu fails to build:
> > 
> > In file included from /home/cohuck/git/qemu/include/qemu-common.h:43,
> >                  from /home/cohuck/git/qemu/qapi/qapi-visit-core.c:14:
> > /home/cohuck/git/qemu/include/glib-compat.h:35: error: static declaration 
> > of ‘g_get_monotonic_time’ follows non-static declaration
> > /usr/include/glib-2.0/glib/gmain.h:236: error: previous declaration of 
> > ‘g_get_monotonic_time’ was here
> > 
> > 
> > and so on.
> > 
> > pkg-config reports a glib-2.0 version of 2.22.5 - but the SLES
> > development package contains a helpfully backported version of
> > g_get_monotonic_time, which you wouldn't know from the reported version.
> > 
> > Question: How do we deal with problems like this?
> 
> We call our compat wrapper qemu_g_get_monotonic_time and add a helpful
> #define.  Not done so far because nobody ever thought it was necessary. :)

I can do that. I just hope not many more of these crop up :(




reply via email to

[Prev in Thread] Current Thread [Next in Thread]