From: Filip Navara <filip.navara@gmail.com>
To: Sebastian Herbszt <herbszt@gmx.de>
Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org,
Juan Quintela <quintela@redhat.com>
Subject: Re: [Qemu-devel] Re: [PATCH 29/47] Use CONFIG_POSIX to simplify Makefile
Date: Sat, 1 Aug 2009 18:06:36 +0200 [thread overview]
Message-ID: <5b31733c0908010906j78509098ie60703e22a7bc2b0@mail.gmail.com> (raw)
In-Reply-To: <19366128266D400E8F6EBFC3B3A62203@FSCPC>
On Sat, Aug 1, 2009 at 5:54 PM, Sebastian Herbszt<herbszt@gmx.de> wrote:
> Juan Quintela wrote:
>>
>> Signed-off-by: Juan Quintela <quintela@redhat.com>
>> ---
>> Makefile | 21 +++++----------------
>> 1 files changed, 5 insertions(+), 16 deletions(-)
>>
>> diff --git a/Makefile b/Makefile
>> index 47e5825..a53b630 100644
>> --- a/Makefile
>> +++ b/Makefile
>> @@ -62,21 +62,13 @@ recurse-all: $(SUBDIR_RULES)
>>
>> block-obj-y = cutils.o cache-utils.o qemu-malloc.o qemu-option.o module.o
>> block-obj-y += nbd.o block.o aio.o aes.o
>> +block-obj-$(CONFIG_AIO) += posix-aio-compat.o
>>
>> block-nested-y += cow.o qcow.o vmdk.o cloop.o dmg.o bochs.o vpc.o vvfat.o
>> block-nested-y += qcow2.o qcow2-refcount.o qcow2-cluster.o
>> qcow2-snapshot.o
>> block-nested-y += parallels.o nbd.o
>> -
>> -
>> -ifdef CONFIG_WIN32
>> -block-nested-y += raw-win32.o
>> -else
>> -ifdef CONFIG_AIO
>> -block-obj-y += posix-aio-compat.o
>> -endif
>> -block-nested-y += raw-posix.o
>> -endif
>> -
>> +block-nested-$(CONFIG_WIN32) += raw-win32.o
>> +block-nested-$(CONFIG_POSIX) += raw-posix.o
>> block-nested-$(CONFIG_CURL) += curl.o
>>
>> block-obj-y += $(addprefix block/, $(block-nested-y))
>> @@ -112,11 +104,8 @@ ifdef CONFIG_BRLAPI
>> LIBS+=-lbrlapi
>> endif
>>
>> -ifdef CONFIG_WIN32
>> -obj-y += tap-win32.o
>> -else
>> -obj-y += migration-exec.o
>> -endif
>> +obj-$(CONFIG_WIN32) += tap-win32.o
>> +obj-$(CONFIG_POSIX) += migration-exec.o
>>
>> ifdef CONFIG_COREAUDIO
>> AUDIO_PT = y
>> --
>> 1.6.2.5
>
> I think this patch or a related one breaks MinGW/Win32:
>
> CC posix-aio-compat.o
> posix-aio-compat.c:14:23: warning: sys/ioctl.h: No such file or directory
> posix-aio-compat.c: In function `handle_aiocb_ioctl':
> posix-aio-compat.c:90: warning: implicit declaration of function `ioctl'
> posix-aio-compat.c: In function `handle_aiocb_rw_linear':
> posix-aio-compat.c:182: warning: implicit declaration of function `pwrite'
> posix-aio-compat.c:187: warning: implicit declaration of function `pread'
> posix-aio-compat.c: In function `aio_thread':
> posix-aio-compat.c:284: warning: implicit declaration of function
> `sigfillset'
> posix-aio-compat.c:285: warning: implicit declaration of function
> `sigprocmask'
> posix-aio-compat.c:332: warning: implicit declaration of function `kill'
> posix-aio-compat.c: In function `qemu_paio_submit':
> posix-aio-compat.c:367: error: `EINPROGRESS' undeclared (first use in this
> function)
> posix-aio-compat.c:367: error: (Each undeclared identifier is reported only
> once
> posix-aio-compat.c:367: error: for each function it appears in.)
> posix-aio-compat.c: In function `qemu_paio_cancel':
> posix-aio-compat.c:424: error: `ECANCELED' undeclared (first use in this
> function)
> posix-aio-compat.c:426: error: `EINPROGRESS' undeclared (first use in this
> function)
> make: *** [posix-aio-compat.o] Error 1
>
> v0.11.0-rc0-182-g28e738d on gcc version 3.4.5 (mingw32 special)
>
> - Sebastian
Definitely this one breaks it, posix-aio-compat should be included
only when both CONFIG_POSIX and CONFIG_AIO are defined. It's good to
see that someone cares about the Win32 build.
Best regards,
Filip Navara
next prev parent reply other threads:[~2009-08-01 16:06 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-27 14:12 [Qemu-devel] [PATCH v3 00/47] More configure/Makefile cleanups Juan Quintela
2009-07-27 14:12 ` [Qemu-devel] [PATCH 01/47] change HOST_SOLARIS to CONFIG_SOLARIS{_VERSION} Juan Quintela
2009-07-27 14:12 ` [Qemu-devel] [PATCH 02/47] Remove SP_CFLAGS and SP_LDFLAGS Juan Quintela
2009-07-27 14:12 ` [Qemu-devel] [PATCH 03/47] target_arch2 is redefined unconditionally later Juan Quintela
2009-07-27 14:12 ` [Qemu-devel] [PATCH 04/47] remove CONFIG_ from VNC_TLS_{LIBS, FLAGS} Juan Quintela
2009-07-27 14:12 ` [Qemu-devel] [PATCH 05/47] use same algorithm for testing and Juan Quintela
2009-07-27 14:12 ` [Qemu-devel] [PATCH 06/47] remove CONFIG_ from VNC_SASL_{LIBS, FLAGS} Juan Quintela
2009-07-27 14:12 ` [Qemu-devel] [PATCH 07/47] remove CONFIG_ from BLUEZ_{LIBS,FLAGS} Juan Quintela
2009-07-27 14:12 ` [Qemu-devel] [PATCH 08/47] make fmod also use FMOD_{LIBS,CFLAGS} Juan Quintela
2009-07-27 14:12 ` [Qemu-devel] [PATCH 09/47] make oss use OSS_LIBS Juan Quintela
2009-07-27 14:12 ` [Qemu-devel] [PATCH 10/47] move printing of config-host.mak variables to end of generation Juan Quintela
2009-07-27 14:12 ` [Qemu-devel] [PATCH 11/47] more specific config.mak can overwrote more general config.mak Juan Quintela
2009-07-27 14:12 ` [Qemu-devel] [PATCH 12/47] Add -static in configure if needed Juan Quintela
2009-07-27 14:12 ` [Qemu-devel] [PATCH 13/47] Rename HAVE_FDT to CONFIG_FDT and define it also in Makefile Juan Quintela
2009-07-27 14:12 ` [Qemu-devel] [PATCH 14/47] Refactor code to remove one #ifdef CONFIG_FDT Juan Quintela
2009-07-27 14:12 ` [Qemu-devel] [PATCH 15/47] fix indententation Juan Quintela
2009-07-27 14:12 ` [Qemu-devel] [PATCH 16/47] O_LARGEFILE is already set in qemu-common.h Juan Quintela
2009-07-29 4:13 ` Todd T. Fries
2009-07-29 10:51 ` [Qemu-devel] " Juan Quintela
2009-07-27 14:12 ` [Qemu-devel] [PATCH 17/47] rename HOST_BSD to CONFIG_BSD Juan Quintela
2009-07-27 14:12 ` [Qemu-devel] [PATCH 18/47] define MAP_ANONYMOUS if it is not defined in qemu-common.h Juan Quintela
2009-07-27 14:12 ` [Qemu-devel] [PATCH 19/47] rename HAVE_PREADV to CONFIG_PREADV Juan Quintela
2009-07-27 14:12 ` [Qemu-devel] [PATCH 20/47] rename HAVE_IOVEC to CONFIG_IOVEC Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 21/47] rename HAVE_FNMATCH_H to CONFIG_FNMATCH Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 22/47] rename HAVE_MACHINE_BSWAP_H to CONFIG_MACHINE_BSWAP_H Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 23/47] rename HAVE_GPROF to TARGET_GPROF Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 24/47] rename HAVE_BYTESWAP_H to CONFIG_BYTESWAP_H Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 25/47] rename DEBUG_TCG to CONFIG_DEBUG_TCG Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 26/47] rename DEBUG_EXEC to CONFIG_DEBUG_EXEC Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 27/47] rename WORDS_BIGENDIAN to HOST_WORDS_BIGENDIAN Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 28/47] Add CONFIG_POSIX Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 29/47] Use CONFIG_POSIX to simplify Makefile Juan Quintela
2009-08-01 15:54 ` [Qemu-devel] " Sebastian Herbszt
2009-08-01 16:06 ` Filip Navara [this message]
2009-08-03 8:38 ` Juan Quintela
2009-08-03 11:10 ` Filip Navara
2009-08-03 11:36 ` Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 30/47] the else part of this test is obsolete We are testing for sdl = yes inside the else part of the test if sdl = yes Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 31/47] sdl_config value was always sdl-config Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 32/47] Calculate sdl_libs and sdl_flags and use them everywhere Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 33/47] instead of setup sdl_x11 just add -lX11 to sdl_libs Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 34/47] target_softmmu is undefined at that point Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 35/47] remove sdl_static. Just do the right thing if static is yes Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 36/47] indent with 2 spaces sdl tests Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 37/47] Define and use xen libs in a single place Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 38/47] simplify curses library selection Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 39/47] simplify brlapi selection Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 40/47] simplify vde libs selection Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 41/47] simplify fdt " Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 42/47] test if xen is enabled only once Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 43/47] define ENOTSUP the same that the other errors Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 44/47] rename NEEDS_LIBSUNMATH to CONFIG_NEEDS_LIBSUNMATH Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 45/47] rename USE_NPTL to CONFIG_USE_NPTL Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 46/47] Generate config-host.h from config-host.mak Juan Quintela
2009-07-27 14:13 ` [Qemu-devel] [PATCH 47/47] move on_vcpu inside proper #ifdef Juan Quintela
2009-07-27 15:00 ` [Qemu-devel] " Juan Quintela
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5b31733c0908010906j78509098ie60703e22a7bc2b0@mail.gmail.com \
--to=filip.navara@gmail.com \
--cc=aliguori@us.ibm.com \
--cc=herbszt@gmx.de \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).