Received: from eggs.gnu.org ([2001:4830:134:3::10]:54351) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdgAq-0006Sg-9x for qemu-devel@nongnu.org; Thu, 02 Apr 2015 10:32:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdgAl-0004k6-AY for qemu-devel@nongnu.org; Thu, 02 Apr 2015 10:32:48 -0400 Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:49464) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdgAl-0004jK-0n for qemu-devel@nongnu.org; Thu, 02 Apr 2015 10:32:43 -0400 Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 2 Apr 2015 15:32:41 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 53B4617D8066 for ; Thu, 2 Apr 2015 15:33:10 +0100 (BST) Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t32EWdq37668130 for ; Thu, 2 Apr 2015 14:32:39 GMT Received: from d06av01.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t32EWcxe005579 for ; Thu, 2 Apr 2015 08:32:38 -0600 Date: Thu, 2 Apr 2015 16:32:36 +0200 From: Cornelia Huck Message-ID: <20150402163236.3e9da61d.cornelia.huck@de.ibm.com> In-Reply-To: <551D4A3E.4060407@redhat.com> References: <20150402151539.00e6ce10.cornelia.huck@de.ibm.com> <551D4A3E.4060407@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] glib-compat tales of woe List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org On Thu, 02 Apr 2015 15:55:10 +0200 Paolo Bonzini wrote: >=20 >=20 > On 02/04/2015 15:15, Cornelia Huck wrote: > > After some updates were applied on our SLES11SP3 development server, > > current qemu fails to build: > >=20 > > 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 declarati= on of =E2=80=98g_get_monotonic_time=E2=80=99 follows non-static declaration > > /usr/include/glib-2.0/glib/gmain.h:236: error: previous declaration of = =E2=80=98g_get_monotonic_time=E2=80=99 was here > >=20 > >=20 > > and so on. > >=20 > > 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. > >=20 > > Question: How do we deal with problems like this? >=20 > 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 :(