From patchwork Wed Apr 22 06:59:57 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bernhard Held X-Patchwork-Id: 19318 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n3M70L2K011256 for ; Wed, 22 Apr 2009 07:00:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752494AbZDVHAS (ORCPT ); Wed, 22 Apr 2009 03:00:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752591AbZDVHAS (ORCPT ); Wed, 22 Apr 2009 03:00:18 -0400 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 X-Injected-Via-Gmane: http://gmane.org/ To: kvm@vger.kernel.org From: Bernhard Held Subject: kvm-85 build problem Date: Wed, 22 Apr 2009 08:59:57 +0200 Lines: 39 Message-ID: Mime-Version: 1.0 X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: smtp.mgpi.de User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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 ‘qemu_sync_idcache’: /usr/include/assert.h:70: error: storage class specified for parameter ‘__assert_fail’ /usr/include/assert.h:76: error: storage class specified for parameter ‘__assert_perror_fail’ /usr/include/assert.h:82: error: storage class specified for parameter ‘__assert’ cutils.c:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token ... cutils.c:224: error: expected ‘{’ at end of input make: *** [cutils.o] Error 1 gcc 4.1.2 doesn't like functions without body, this patch fixes the problem: Bernhard --- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 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 long stop) +{ +} #endif #define qemu_cache_utils_init(envp) do { (void) (envp); } while (0)