Received: from eggs.gnu.org ([2001:4830:134:3::10]:56860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdeyL-0004qo-Pd for qemu-devel@nongnu.org; Thu, 02 Apr 2015 09:15:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdeyH-0003hX-QO for qemu-devel@nongnu.org; Thu, 02 Apr 2015 09:15:49 -0400 Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:53406) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdeyH-0003gx-Fk for qemu-devel@nongnu.org; Thu, 02 Apr 2015 09:15:45 -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 14:15:43 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 0DFF31B08067 for ; Thu, 2 Apr 2015 14:16:11 +0100 (BST) Received: from d06av06.portsmouth.uk.ibm.com (d06av06.portsmouth.uk.ibm.com [9.149.37.217]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t32DFf3T29622472 for ; Thu, 2 Apr 2015 13:15:41 GMT Received: from d06av06.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av06.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t328ANOC017416 for ; Thu, 2 Apr 2015 04:10:23 -0400 Received: from gondolin (dyn-9-152-224-143.boeblingen.de.ibm.com [9.152.224.143]) by d06av06.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t328ANP9017362 for ; Thu, 2 Apr 2015 04:10:23 -0400 Date: Thu, 2 Apr 2015 15:15:39 +0200 From: Cornelia Huck Message-ID: <20150402151539.00e6ce10.cornelia.huck@de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] glib-compat tales of woe List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 o= f =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 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? I don't think it's unlikely that distributors will do similar backports in the future, and each of them may break the glib-version dependant compat code. - Drop support for ancient distros doing weird stuff? - Try to figure out if we have a version that does not quite provide what we think it does, and differentiate accordingly? - Check if a function exists before trying to provide a compat version? I'll only do builds on my (non-SLES11SP3) test systems for now, but I think we need a generic solution.