All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Cornelia Huck <cornelia.huck@de.ibm.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] glib-compat tales of woe
Date: Thu, 02 Apr 2015 15:55:10 +0200	[thread overview]
Message-ID: <551D4A3E.4060407@redhat.com> (raw)
In-Reply-To: <20150402151539.00e6ce10.cornelia.huck@de.ibm.com>



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. :)

Paolo

  reply	other threads:[~2015-04-02 13:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-02 13:15 [Qemu-devel] glib-compat tales of woe Cornelia Huck
2015-04-02 13:55 ` Paolo Bonzini [this message]
2015-04-02 14:32   ` Cornelia Huck
2015-04-02 14:35     ` Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=551D4A3E.4060407@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=cornelia.huck@de.ibm.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.