* [Qemu-devel] don't look for libuuid on Darwin
@ 2009-11-09 1:37 C.W. Betts
2009-11-09 14:11 ` Christoph Hellwig
2010-07-07 6:25 ` [Qemu-devel] [PATCH] sheepdog: fix compile error on systems without TCP_CORK MORITA Kazutaka
0 siblings, 2 replies; 6+ messages in thread
From: C.W. Betts @ 2009-11-09 1:37 UTC (permalink / raw)
To: qemu-devel
In Darwin, the libSystem.B.dylib is a container for a lot of
libraries, among them is libuuid. However, there isn't, by default, a
static link libuuid to libSystem. The configure script should just
check to see if there's a uuid header and don't look for a libuuid.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] don't look for libuuid on Darwin
2009-11-09 1:37 [Qemu-devel] don't look for libuuid on Darwin C.W. Betts
@ 2009-11-09 14:11 ` Christoph Hellwig
[not found] ` <BLU0-SMTP7451A9F3D890AB80A8B4D9B9AC0@phx.gbl>
2010-07-07 6:25 ` [Qemu-devel] [PATCH] sheepdog: fix compile error on systems without TCP_CORK MORITA Kazutaka
1 sibling, 1 reply; 6+ messages in thread
From: Christoph Hellwig @ 2009-11-09 14:11 UTC (permalink / raw)
To: C.W. Betts; +Cc: qemu-devel
On Sun, Nov 08, 2009 at 06:37:34PM -0700, C.W. Betts wrote:
> In Darwin, the libSystem.B.dylib is a container for a lot of
> libraries, among them is libuuid. However, there isn't, by default, a
> static link libuuid to libSystem. The configure script should just
> check to see if there's a uuid header and don't look for a libuuid.
Checking for static libraries is a bad idea in general. Care to submit
a patch to fix this check up to do the usual compile test (tiny code
fragment that needs libuuid)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] don't look for libuuid on Darwin
[not found] ` <20091109192221.GA28249@lst.de>
@ 2009-11-10 4:29 ` C.W. Betts
0 siblings, 0 replies; 6+ messages in thread
From: C.W. Betts @ 2009-11-10 4:29 UTC (permalink / raw)
To: qemu-devel
On Nov 9, 2009, at 12:22 PM, Christoph Hellwig wrote:
> On Mon, Nov 09, 2009 at 11:46:13AM -0700, C.W. Betts wrote:
>> Does this work?
>>
>> diff --git a/configure b/configure
>> index aa2cc43..00e04e9 100755
>> --- a/configure
>> +++ b/configure
>> @@ -1060,7 +1060,11 @@ fi
>> ##########################################
>> # uuid_generate() probe, used for vdi block driver
>> if test "$uuid" != "no" ; then
>> - uuid_libs="-luuid"
>> + if test "$darwin" == "yes"; then
>> + uuid_libs=""
>> + else
>> + uuid_libs="-luuid"
>> + fi
>
> It might work, but does Darwin really provide no libuuid at all? I
> thought it was just the static one that is missing?
The uuid definitions are in the libSystem library, which everything
links against. LibSystem also includes libc, libm, pthreads, etc.
>
> If it really is the case a comment above the test would help.
>
> Also I think you should try to keep the mailinglist on Cc - it
> includes
> people that can provide valueable feedback, and also people that
> unlike
> me can actually apply the patch to the qemu repository.
heh, sorry. I replied to the wrong message.
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Qemu-devel] [PATCH] sheepdog: fix compile error on systems without TCP_CORK
2009-11-09 1:37 [Qemu-devel] don't look for libuuid on Darwin C.W. Betts
2009-11-09 14:11 ` Christoph Hellwig
@ 2010-07-07 6:25 ` MORITA Kazutaka
2010-07-07 16:32 ` C.W. Betts
2010-07-07 19:42 ` Blue Swirl
1 sibling, 2 replies; 6+ messages in thread
From: MORITA Kazutaka @ 2010-07-07 6:25 UTC (permalink / raw)
To: C.W. Betts; +Cc: qemu-devel, morita.kazutaka
WIN32 is not only the system which doesn't have TCP_CORK (e.g. OS X).
Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
---
Betts, I think this patch fix the compile error. Can you try this
one?
block/sheepdog.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/block/sheepdog.c b/block/sheepdog.c
index 69a2494..81aa564 100644
--- a/block/sheepdog.c
+++ b/block/sheepdog.c
@@ -889,7 +889,7 @@ static int aio_flush_request(void *opaque)
return !QLIST_EMPTY(&s->outstanding_aio_head);
}
-#ifdef _WIN32
+#if !defined(SOL_TCP) || !defined(TCP_CORK)
static int set_cork(int fd, int v)
{
--
1.5.6.5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH] sheepdog: fix compile error on systems without TCP_CORK
2010-07-07 6:25 ` [Qemu-devel] [PATCH] sheepdog: fix compile error on systems without TCP_CORK MORITA Kazutaka
@ 2010-07-07 16:32 ` C.W. Betts
2010-07-07 19:42 ` Blue Swirl
1 sibling, 0 replies; 6+ messages in thread
From: C.W. Betts @ 2010-07-07 16:32 UTC (permalink / raw)
To: MORITA Kazutaka, qemu-devel
It compiles now.
On Jul 7, 2010, at 12:25 AM, MORITA Kazutaka wrote:
> WIN32 is not only the system which doesn't have TCP_CORK (e.g. OS X).
>
> Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
> ---
>
> Betts, I think this patch fix the compile error. Can you try this
> one?
>
> block/sheepdog.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/block/sheepdog.c b/block/sheepdog.c
> index 69a2494..81aa564 100644
> --- a/block/sheepdog.c
> +++ b/block/sheepdog.c
> @@ -889,7 +889,7 @@ static int aio_flush_request(void *opaque)
> return !QLIST_EMPTY(&s->outstanding_aio_head);
> }
>
> -#ifdef _WIN32
> +#if !defined(SOL_TCP) || !defined(TCP_CORK)
>
> static int set_cork(int fd, int v)
> {
> --
> 1.5.6.5
>
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH] sheepdog: fix compile error on systems without TCP_CORK
2010-07-07 6:25 ` [Qemu-devel] [PATCH] sheepdog: fix compile error on systems without TCP_CORK MORITA Kazutaka
2010-07-07 16:32 ` C.W. Betts
@ 2010-07-07 19:42 ` Blue Swirl
1 sibling, 0 replies; 6+ messages in thread
From: Blue Swirl @ 2010-07-07 19:42 UTC (permalink / raw)
To: MORITA Kazutaka; +Cc: C.W. Betts, qemu-devel
Thanks, applied. It also fixes OpenBSD build.
On Wed, Jul 7, 2010 at 6:25 AM, MORITA Kazutaka
<morita.kazutaka@lab.ntt.co.jp> wrote:
> WIN32 is not only the system which doesn't have TCP_CORK (e.g. OS X).
>
> Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
> ---
>
> Betts, I think this patch fix the compile error. Can you try this
> one?
>
> block/sheepdog.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/block/sheepdog.c b/block/sheepdog.c
> index 69a2494..81aa564 100644
> --- a/block/sheepdog.c
> +++ b/block/sheepdog.c
> @@ -889,7 +889,7 @@ static int aio_flush_request(void *opaque)
> return !QLIST_EMPTY(&s->outstanding_aio_head);
> }
>
> -#ifdef _WIN32
> +#if !defined(SOL_TCP) || !defined(TCP_CORK)
>
> static int set_cork(int fd, int v)
> {
> --
> 1.5.6.5
>
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-07-07 19:45 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-09 1:37 [Qemu-devel] don't look for libuuid on Darwin C.W. Betts
2009-11-09 14:11 ` Christoph Hellwig
[not found] ` <BLU0-SMTP7451A9F3D890AB80A8B4D9B9AC0@phx.gbl>
[not found] ` <20091109192221.GA28249@lst.de>
2009-11-10 4:29 ` C.W. Betts
2010-07-07 6:25 ` [Qemu-devel] [PATCH] sheepdog: fix compile error on systems without TCP_CORK MORITA Kazutaka
2010-07-07 16:32 ` C.W. Betts
2010-07-07 19:42 ` Blue Swirl
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).