From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernhard Held Subject: kvm-85 build problem Date: Wed, 22 Apr 2009 08:59:57 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE To: kvm@vger.kernel.org Return-path: Received: from main.gmane.org ([80.91.229.2]:52259 "EHLO ciao.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752386AbZDVHAQ (ORCPT ); Wed, 22 Apr 2009 03:00:16 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LwWRD-0006SW-Rp for kvm@vger.kernel.org; Wed, 22 Apr 2009 07:00:07 +0000 Received: from smtp.mgpi.de ([212.202.249.42]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Apr 2009 07:00:07 +0000 Received: from bheld by smtp.mgpi.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Apr 2009 07:00:07 +0000 Sender: kvm-owner@vger.kernel.org List-ID: Hi, this happens on CentOS 5.3: # cd kvm-85/qemu # make CC qemu-nbd.o CC qemu-tool.o CC osdep.o CC cutils.o In file included from cutils.c:27: /usr/include/assert.h: In function =E2=80=98qemu_sync_idcache=E2=80=99: /usr/include/assert.h:70: error: storage class specified for parameter =E2=80=98__assert_fail=E2=80=99 /usr/include/assert.h:76: error: storage class specified for parameter =E2=80=98__assert_perror_fail=E2=80=99 /usr/include/assert.h:82: error: storage class specified for parameter = =E2=80=98__assert=E2=80=99 cutils.c:30: error: expected =E2=80=98=3D=E2=80=99, =E2=80=98,=E2=80=99= , =E2=80=98;=E2=80=99, =E2=80=98asm=E2=80=99 or =E2=80=98__attribute__=E2= =80=99 before =E2=80=98{=E2=80=99 token ... cutils.c:224: error: expected =E2=80=98{=E2=80=99 at end of input make: *** [cutils.o] Error 1 gcc 4.1.2 doesn't like functions without body, this patch fixes the pro= blem: --- cache-utils.h.orig 2009-04-21 10:46:04.000000000 +0200 +++ cache-utils.h 2009-04-22 08:39:20.000000000 +0200 @@ -47,6 +47,8 @@ } #else static inline void qemu_sync_idcache(unsigned long start, unsigned lo= ng stop) +{ +} #endif #define qemu_cache_utils_init(envp) do { (void) (envp); } while (0) Bernhard