Hi,

I subscribed today on the list because I have a compilation problem of libvirt 
0.4.2 and 0.4.3 (didn't try the other versions).
I'm trying to compile libvirt on a Debian Etch with Xen 3.2.0 (also tried with 
a 3.2.1)
Every time I have this mistake:

storage_conf.c: In function 'virStorageSize':
storage_conf.c:659: error: 'ULLONG_MAX' undeclared (first use in this function)
storage_conf.c:659: error: (Each undeclared identifier is reported only once
storage_conf.c:659: error: for each function it appears in.)
make[2]: *** [libvirt_la-storage_conf.lo] Error 1
make[2]: Leaving directory `/usr/src/libvirt-0.4.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/libvirt-0.4.2'
make: *** [all] Error 2

I looked for ULLONG_MAX and find it in /usr/include/limits.h and 
/usr/include/linux/kernel.h
So first I decided to add 
#include <limits.h>
inside storage_conf.c
but it didn't change anything.
Surely the definition of ULLONG_MAX is surrounded by an "unwelcome" condition.
So actually to succeed the compilation I directly added:
#   define ULLONG_MAX     18446744073709551615ULL
inside the files (storage_backend_fs.c need it too).

I know that's dirty, so is there anybody who can help me to make it in a clean 
way?

Thank you by advance.

Best Regards,

Alex

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to