[Libvir] compilation of libvirt 0.4.0 and cvs snapshot fails on SLES10sp1

Richard W.M. Jones rjones at redhat.com
Tue Jan 29 14:16:04 UTC 2008


Sebastian Reitenbach wrote:
> Hi,
> 
> I am running sles10sp1 x86_64. I try to get xen 3.1.0 running on it, as I 
> need a feature not in 3.0.4.
> 
> Configure works well, but when it comes to compilation, then it fails with 
> the following reason:
> 
>  
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../gnulib/lib -I../gnulib/lib -I../include
> -I../include -I../qemud -I/usr/include/libxml2 -DBINDIR=\"/usr/local/libexec\"
> -DSBINDIR=\"/usr/local/sbin\" -DSYSCONF_DIR=\"/usr/local/etc\"
> -DLOCALEBASEDIR=\"/usr/local/share/locale\" -DLOCAL_STATE_DIR=\"/usr/local/var\"
> -DGETTEXT_PACKAGE=\"libvirt\" -Wall -Wformat -Wformat-security
> -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow
> -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline
> -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fasynchronous-unwind-tables -DWITH_QEMU -DWITH_TEST -DWITH_REMOTE -DWITH_XEN -g
> -O2 -MT 
> libvirt_la-xen_unified.lo -MD -MP -MF .deps/libvirt_la-xen_unified.Tpo -c 
> xen_unified.c  -fPIC -DPIC -o .libs/libvirt_la-xen_unified.o
> In file included from /usr/include/xen/dom0_ops.h:31,
>                  from xen_unified.c:29:
> /usr/include/xen/xen.h:579: error: expected '=', ',', ';', 'asm' 
> or '__attribute__' before 'char'
> /usr/include/xen/xen.h:580: error: expected '=', ',', ';', 'asm' 
> or '__attribute__' before 'short'
> /usr/include/xen/xen.h:581: error: expected '=', ',', ';', 'asm' 
> or '__attribute__' before 'int'
> /usr/include/xen/xen.h:582: error: expected '=', ',', ';', 'asm' 
> or '__attribute__' before 'long'
> make[2]: *** [libvirt_la-xen_unified.lo] Error 1
> make[2]: Leaving directory `/usr/local/src/libvirt-0.4.0/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/src/libvirt-0.4.0'
> make: *** [all] Error 2

Does src/xen_unified.c in that version '#include <config.h>' somewhere 
very close to the top of the file?

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/20080129/0d729258/attachment-0001.bin>


More information about the libvir-list mailing list