public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* kvm-85 build problem
@ 2009-04-22  6:59 Bernhard Held
  2009-04-24 11:54 ` Bernhard Held
  0 siblings, 1 reply; 2+ messages in thread
From: Bernhard Held @ 2009-04-22  6:59 UTC (permalink / raw)
  To: kvm

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:

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

Bernhard


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-24 11:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-22  6:59 kvm-85 build problem Bernhard Held
2009-04-24 11:54 ` Bernhard Held

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox