[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] ULLONG_MAX undeclared



On Wed, Jun 25, 2008 at 06:01:10PM +0200, a hocquel free fr wrote:
> 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.

On Fedora at least the definition is surrounded by a __USE_ISOC99. I'm
not sure why that would work with Fedora but not with Debian. What version
of GLibc and GCC is used on Debian Etch ?

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]