Solli Honorio wrote:
Hi, when I'm trying to compile the libvirt 0.4.0 on Debian etch I'm getting the error below, I have no problem with version 0.3.3.I've look at line 578 of /usr/include/xen/xen.h and this error don't make sense for me. Does any anyone had this problem on debian etch too ? Maybe someone can help-me with this error ?Thanks for attention, Solli Honorio <error> .... In file included from /usr/include/xen/dom0_ops.h:31, from xen_unified.c:29:/usr/include/xen/xen.h:578: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'char' /usr/include/xen/xen.h:579: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'short' /usr/include/xen/xen.h:580: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int' /usr/include/xen/xen.h:581: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'long'make: *** [libvirt_la-xen_unified.lo] Error 1 make: Leaving directory `/usr/src/libvirt-0.4.0/src' make: *** [all-recursive] Error 1 make: Leaving directory `/usr/src/libvirt-0.4.0' make: *** [all] Error 2 </error>
Did you find out what caused this? (My Debian machine is broken at the moment so I can't reproduce the error).
My suggestions: (1) Try compiling libvirt from CVS. It may include a fix for this.(2) Check that src/xen_unified.c #include "config.h" near the top. It does in the CVS version, maybe it doesn't in the 0.4.0 version?
(3) See if you can get the actual preprocessor (gcc -E) output, since this error is buried inside a 2-level C macro.
Rich. -- Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/ Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 03798903
Description: S/MIME Cryptographic Signature