[libvirt] libvirt: build error

Matthias Bolte matthias.bolte at googlemail.com
Fri Jan 29 20:04:57 UTC 2010


2010/1/28 Sharadha Prabhakar (3P) <sharadha.prabhakar at citrix.com>:
> Hi,
>
> I’m getting the following error when I make libvirt version 0.7.4
>
>
>
> Make all-recursive
>
> make[1]: Entering directory `/home/sharadhap/libvirt-0.7.4'
>
> Making all in gnulib/lib
>
> make[2]: Entering directory `/home/sharadhap/libvirt-0.7.4/gnulib/lib'
>
> make  all-recursive
>
> make[3]: Entering directory `/home/sharadhap/libvirt-0.7.4/gnulib/lib'
>
> make[4]: Entering directory `/home/sharadhap/libvirt-0.7.4/gnulib/lib'
>
> /bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
> -I../..  -I../../intl   -g -O2 -MT printf-parse.lo -MD -MP -MF
> .deps/printf-parse.Tpo -c -o printf-parse.lo printf-parse.c
>
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../intl -g -O2 -MT
> printf-parse.lo -MD -MP -MF .deps/printf-parse.Tpo -c printf-parse.c  -fPIC
> -DPIC -o .libs/printf-parse.o
>
> In file included from printf-parse.c:70:
>
> xsize.h: In function 'xsum':
>
> xsize.h:59: error: expected expression before ')' token
>

I can reproduce this error, iff I enforce SIZE_MAX to be empty, e.g. by putting

#undef SIZE_MAX
#define SIZE_MAX

in front of the xsum function in xsize.h. Unchanged libvirt 0.7.4
tarball release compiles fine, as expected.

SIZE_MAX is defined in /usr/include/stdint.h on my Ubuntu 9.10 box
here. Maybe your /usr/include/stdint.h is broken, or gnulib decides to
use its own stdint.h. Does gnulib/lib/stdint.h exist after you run
make? If it does, how is SIZE_MAX defined in it?

Matthias




More information about the libvir-list mailing list