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

Re: [Xen-devel] Compilation error crossbuilding tools.

Stefano Stabellini writes ("Re: [Xen-devel] Compilation error crossbuilding 
> On Sat, 6 Apr 2013, Sander Bogaert wrote:
> > block-qcow2.c: In function 'bdrv_pread':
> > block-qcow2.c:238:4: error: format '%llx' expects argument of type
> > 'long long unsigned int', but argument 5 has type '__off_t'
> > [-Werror=format]
> Reading the error, I think that the appended patch (completely untested)
> should fix the problem:
> +#include <sys/mman.h>


How is that going to help ?  The problem seems to be that the return
value from lseek is being passed to printf(PRIx64).  I guess we have
FILE_OFFSET_BITS=64 or some such so that the return value from lseek
is 32-bit.


Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.