qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: CVS snapshot qemu-img.c


From: Ronald
Subject: [Qemu-devel] Re: CVS snapshot qemu-img.c
Date: Mon, 02 Aug 2004 20:41:46 +0200
User-agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.)

Le Mon, 02 Aug 2004 14:39:39 +0200, Ronald a écrit :

> defining ENOTSUP 48 (defined in pthread.h) in qemu-img.c and block.c does
> not help a lot:
> 
> i386-mingw32-gcc -DQEMU_TOOL -Wall -O2 -g -fno-strict-aliasing
> -fpack-struct  -g -D_GNU_SOURCE -o qemu-img qemu-img.c block.c block-cow.c
> block-qcow.c aes.c block-vmdk.c -lz qemu-img.c: In function `img_info':
> qemu-img.c:644: structure has no member named `st_blocks' block.c: In
> function `get_tmp_filename': block.c:83: warning: implicit declaration of
> function `mkstemp' block.c: In function `raw_create':
> block.c:571: warning: implicit declaration of function `ftruncate64'
> block-qcow.c: In function `get_cluster_offset': block-qcow.c:353: warning:
> implicit declaration of function `ftruncate' block-qcow.c: In function
> `qcow_create': block-qcow.c:554: warning: implicit declaration of function
> `realpath' make: *** [qemu-img] Erreur 1

Some more infos:

not building qemu-img leads to make aborting later with:
block-qcow.o(.text+0xd5f):block-qcow.c: undefined reference to `ftruncate'
block-qcow.o(.text+0x154a):block-qcow.c: undefined reference to `realpath'
when linking qemu.exe

I have tried to define ftruncate and ftruncate64 to chsize and mkstemp to
mktemp, but can not find a replacement function for realpath.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]