From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Brhoi-0000y5-L2 for qemu-devel@nongnu.org; Mon, 02 Aug 2004 14:45:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Brhoh-0000xR-2F for qemu-devel@nongnu.org; Mon, 02 Aug 2004 14:45:48 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Brhog-0000xA-TL for qemu-devel@nongnu.org; Mon, 02 Aug 2004 14:45:46 -0400 Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Brhkt-0001NJ-AX for qemu-devel@nongnu.org; Mon, 02 Aug 2004 14:41:51 -0400 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Brhkr-0006h6-00 for ; Mon, 02 Aug 2004 20:41:49 +0200 Received: from amarseille-206-1-29-132.w81-53.abo.wanadoo.fr ([81.53.205.132]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Aug 2004 20:41:49 +0200 Received: from daimon55 by amarseille-206-1-29-132.w81-53.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Aug 2004 20:41:49 +0200 From: Ronald Date: Mon, 02 Aug 2004 20:41:46 +0200 Message-ID: References: <20040802113102.74582.qmail@web53705.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: news Subject: [Qemu-devel] Re: CVS snapshot qemu-img.c Reply-To: daimon55@free.fr, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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.