[Libvir] Error compiling libvirt 0.4.0 on debian etch

Richard W.M. Jones rjones at redhat.com
Mon Jan 14 12:18:29 UTC 2008


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[2]: *** [libvirt_la-xen_unified.lo] Error 1
> make[2]: Leaving directory `/usr/src/libvirt-0.4.0/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080114/91a790c4/attachment-0001.bin>


More information about the libvir-list mailing list