[Libvir] compilation of libvirt 0.4.0 and cvs snapshot failson SLES10sp1

Sebastian Reitenbach sebastia at l00-bugdead-prods.de
Tue Jan 29 14:29:13 UTC 2008


Hi,
"Richard W.M. Jones" <rjones at redhat.com> wrote: 
> 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?
yes, it includes the config.h but it looks like this:
#include "config.h"

Sebastian




More information about the libvir-list mailing list