* [Qemu-devel] CVS snapshot qemu-img.c
@ 2004-08-02 11:31 mister pants
2004-08-02 12:39 ` [Qemu-devel] " Ronald
0 siblings, 1 reply; 3+ messages in thread
From: mister pants @ 2004-08-02 11:31 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 3686 bytes --]
the latest CVS snapshot is broken when compiling qemu-img.c under windows using the compile-time tools found here: http://www.h7.dion.ne.jp/~qemu-win/PortingTips-en.html
$ make
gcc -Wall -O2 -g -fno-strict-aliasing -fpack-struct -D_GNU_SOURCE -o dyngen.exe
dyngen.c
gcc -DQEMU_TOOL -Wall -O2 -g -fno-strict-aliasing -fpack-struct -g -D_GNU_SOURC
E -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_create':
qemu-img.c:340: `ENOTSUP' undeclared (first use in this function)
qemu-img.c:340: (Each undeclared identifier is reported only once
qemu-img.c:340: for each function it appears in.)
qemu-img.c: In function `img_commit':
qemu-img.c:399: `ENOTSUP' undeclared (first use in this function)
qemu-img.c: In function `img_convert':
qemu-img.c:530: `ENOTSUP' undeclared (first use in this function)
qemu-img.c: In function `img_info':
qemu-img.c:643: structure has no member named `st_blocks'
block.c: In function `bdrv_create':
block.c:70: `ENOTSUP' undeclared (first use in this function)
block.c:70: (Each undeclared identifier is reported only once
block.c:70: for each function it appears in.)
block.c: In function `get_tmp_filename':
block.c:79: warning: implicit declaration of function `mkstemp'
block.c: In function `bdrv_commit':
block.c:241: `ENOTSUP' undeclared (first use in this function)
block.c: In function `raw_create':
block.c:561: `ENOTSUP' undeclared (first use in this function)
block.c:567: warning: implicit declaration of function `ftruncate64'
block-qcow.c:26:18: zlib.h: No such file or directory
block-qcow.c: In function `get_cluster_offset':
block-qcow.c:353: warning: implicit declaration of function `ftruncate'
block-qcow.c: In function `decompress_buffer':
block-qcow.c:407: `z_stream' undeclared (first use in this function)
block-qcow.c:407: (Each undeclared identifier is reported only once
block-qcow.c:407: for each function it appears in.)
block-qcow.c:407: parse error before "strm1"
block-qcow.c:410: `strm' undeclared (first use in this function)
block-qcow.c:417: warning: implicit declaration of function `inflateInit2'
block-qcow.c:418: `Z_OK' undeclared (first use in this function)
block-qcow.c:420: warning: implicit declaration of function `inflate'
block-qcow.c:420: `Z_FINISH' undeclared (first use in this function)
block-qcow.c:422: `Z_STREAM_END' undeclared (first use in this function)
block-qcow.c:422: `Z_BUF_ERROR' undeclared (first use in this function)
block-qcow.c:424: warning: implicit declaration of function `inflateEnd'
block-qcow.c: In function `qcow_create':
block-qcow.c:554: warning: implicit declaration of function `realpath'
block-qcow.c: In function `qcow_compress_cluster':
block-qcow.c:609: `z_stream' undeclared (first use in this function)
block-qcow.c:609: parse error before "strm"
block-qcow.c:622: `strm' undeclared (first use in this function)
block-qcow.c:623: warning: implicit declaration of function `deflateInit2'
block-qcow.c:623: `Z_DEFAULT_COMPRESSION' undeclared (first use in this function
)
block-qcow.c:624: `Z_DEFLATED' undeclared (first use in this function)
block-qcow.c:625: `Z_DEFAULT_STRATEGY' undeclared (first use in this function)
block-qcow.c:636: warning: implicit declaration of function `deflate'
block-qcow.c:636: `Z_FINISH' undeclared (first use in this function)
block-qcow.c:637: `Z_STREAM_END' undeclared (first use in this function)
block-qcow.c:637: `Z_OK' undeclared (first use in this function)
block-qcow.c:639: warning: implicit declaration of function `deflateEnd'
make: *** [qemu-img] Error 1
---------------------------------
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
[-- Attachment #2: Type: text/html, Size: 4088 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] Re: CVS snapshot qemu-img.c
2004-08-02 11:31 [Qemu-devel] CVS snapshot qemu-img.c mister pants
@ 2004-08-02 12:39 ` Ronald
2004-08-02 18:41 ` Ronald
0 siblings, 1 reply; 3+ messages in thread
From: Ronald @ 2004-08-02 12:39 UTC (permalink / raw)
To: qemu-devel
Le Mon, 02 Aug 2004 04:31:02 -0700, mister pants a écrit :
> the latest CVS snapshot is broken when compiling qemu-img.c under windows
> using the compile-time tools found here:
> http://www.h7.dion.ne.jp/~qemu-win/PortingTips-en.html
>
> $ make
> gcc -Wall -O2 -g -fno-strict-aliasing -fpack-struct -D_GNU_SOURCE -o
> dyngen.exe
> dyngen.c
> gcc -DQEMU_TOOL -Wall -O2 -g -fno-strict-aliasing -fpack-struct -g
> -D_GNU_SOURC E -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_create':
> qemu-img.c:340: `ENOTSUP' undeclared (first use in this function)
> qemu-img.c:340: (Each undeclared identifier is reported only once
> qemu-img.c:340: for each function it appears in.) qemu-img.c: In function
> `img_commit': qemu-img.c:399: `ENOTSUP' undeclared (first use in this
> function) qemu-img.c: In function `img_convert': qemu-img.c:530: `ENOTSUP'
> undeclared (first use in this function) qemu-img.c: In function
> `img_info':
> qemu-img.c:643: structure has no member named `st_blocks' block.c: In
> function `bdrv_create':
> block.c:70: `ENOTSUP' undeclared (first use in this function) block.c:70:
> (Each undeclared identifier is reported only once block.c:70: for each
> function it appears in.) block.c: In function `get_tmp_filename':
> block.c:79: warning: implicit declaration of function `mkstemp' block.c:
> In function `bdrv_commit':
> block.c:241: `ENOTSUP' undeclared (first use in this function) block.c: In
> function `raw_create':
> block.c:561: `ENOTSUP' undeclared (first use in this function)
> block.c:567: warning: implicit declaration of function `ftruncate64'
> block-qcow.c:26:18: zlib.h: No such file or directory block-qcow.c: In
> function `get_cluster_offset': block-qcow.c:353: warning: implicit
> declaration of function `ftruncate' block-qcow.c: In function
> `decompress_buffer': block-qcow.c:407: `z_stream' undeclared (first use in
> this function) block-qcow.c:407: (Each undeclared identifier is reported
> only once block-qcow.c:407: for each function it appears in.)
> block-qcow.c:407: parse error before "strm1" block-qcow.c:410: `strm'
> undeclared (first use in this function) block-qcow.c:417: warning:
> implicit declaration of function `inflateInit2' block-qcow.c:418: `Z_OK'
> undeclared (first use in this function) block-qcow.c:420: warning:
> implicit declaration of function `inflate' block-qcow.c:420: `Z_FINISH'
> undeclared (first use in this function) block-qcow.c:422: `Z_STREAM_END'
> undeclared (first use in this function) block-qcow.c:422: `Z_BUF_ERROR'
> undeclared (first use in this function) block-qcow.c:424: warning:
> implicit declaration of function `inflateEnd' block-qcow.c: In function
> `qcow_create': block-qcow.c:554: warning: implicit declaration of function
> `realpath' block-qcow.c: In function `qcow_compress_cluster':
> block-qcow.c:609: `z_stream' undeclared (first use in this function)
> block-qcow.c:609: parse error before "strm" block-qcow.c:622: `strm'
> undeclared (first use in this function) block-qcow.c:623: warning:
> implicit declaration of function `deflateInit2' block-qcow.c:623:
> `Z_DEFAULT_COMPRESSION' undeclared (first use in this function )
> block-qcow.c:624: `Z_DEFLATED' undeclared (first use in this function)
> block-qcow.c:625: `Z_DEFAULT_STRATEGY' undeclared (first use in this
> function) block-qcow.c:636: warning: implicit declaration of function
> `deflate' block-qcow.c:636: `Z_FINISH' undeclared (first use in this
> function) block-qcow.c:637: `Z_STREAM_END' undeclared (first use in this
> function) block-qcow.c:637: `Z_OK' undeclared (first use in this function)
> block-qcow.c:639: warning: implicit declaration of function `deflateEnd'
> make: *** [qemu-img] Error 1
>
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] Re: CVS snapshot qemu-img.c
2004-08-02 12:39 ` [Qemu-devel] " Ronald
@ 2004-08-02 18:41 ` Ronald
0 siblings, 0 replies; 3+ messages in thread
From: Ronald @ 2004-08-02 18:41 UTC (permalink / raw)
To: qemu-devel
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-08-02 18:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-02 11:31 [Qemu-devel] CVS snapshot qemu-img.c mister pants
2004-08-02 12:39 ` [Qemu-devel] " Ronald
2004-08-02 18:41 ` Ronald
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).