All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PULL v1 0/8] Merge io/ 2017-01-23
Date: Mon, 23 Jan 2017 15:36:32 +0000	[thread overview]
Message-ID: <20170123153632.GI2853@redhat.com> (raw)
In-Reply-To: <CAFEAcA_NSRk3wj3iZvhTbR5hxyUVe_4V_dgow=-dPb7KPFCeLQ@mail.gmail.com>

On Mon, Jan 23, 2017 at 02:46:06PM +0000, Peter Maydell wrote:
> On 23 January 2017 at 14:26, Daniel P. Berrange <berrange@redhat.com> wrote:
> > The following changes since commit 598cf1c805271564686f2d732b36f50c3c40dcdd:
> >
> >   Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2017-01-20 16:42:07 +0000)
> >
> > are available in the git repository at:
> >
> >   git://github.com/berrange/qemu tags/pull-qio-2017-01-23-1
> >
> > for you to fetch changes up to 19f3cc22d364b57315e171090ee2e499b58775b4:
> >
> >   io: introduce a DNS resolver API (2017-01-23 11:28:09 +0000)
> >
> > ----------------------------------------------------------------
> > Merge io/ 2017-01-23
> >
> > Daniel P. Berrange (8):
> >   sockets: add ability to disable DNS resolution for InetSocketAddress
> >   io: stop incrementing reference in qio_task_get_source
> >   io: fix typo in docs for QIOTask
> >   io: add ability to associate an opaque "result" with with a task
> >   io: add ability to associate an error with a task
> >   io: change the QIOTask callback signature
> >   io: remove Error parameter from QIOTask thread worker
> >   io: introduce a DNS resolver API
> 
> Fails to build, OSX:
> 
> /Users/pm215/src/qemu-for-merges/io/dns-resolver.c:30:39: error: use
> of undeclared identifier 'PTHREAD_ONCE_INIT'
> static pthread_once_t instance_init = PTHREAD_ONCE_INIT;
>                                       ^
> /Users/pm215/src/qemu-for-merges/io/dns-resolver.c:39:5: error:
> implicit declaration of function 'pthread_once' is invalid in C99
> [-Werror,-Wimplicit-function-declaration]
>     pthread_once(&instance_init, qio_dns_resolve_init_instance);
>     ^
> /Users/pm215/src/qemu-for-merges/io/dns-resolver.c:39:5: note: did you
> mean 'pthread_kill'?
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/signal.h:82:5:
> note: 'pthread_kill' declared here
> int     pthread_kill(pthread_t, int);
>         ^
> 2 errors generated.
> 
> OSX does have pthread_once(), but you need to actually include
> pthread.h (either directly or more likely via qemu/thread.h)
> to get it.

Of course pthread_once Is not available on Win32 at all. What I
should have used was GOnce which is portable from glib, since
QEMU's thread APIs don't provide any once-control wrappers.

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://entangle-photo.org       -o-    http://search.cpan.org/~danberr/ :|

      parent reply	other threads:[~2017-01-23 15:36 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-23 14:26 [Qemu-devel] [PULL v1 0/8] Merge io/ 2017-01-23 Daniel P. Berrange
2017-01-23 14:26 ` [Qemu-devel] [PULL v1 1/8] sockets: add ability to disable DNS resolution for InetSocketAddress Daniel P. Berrange
2017-01-23 14:26 ` [Qemu-devel] [PULL v1 2/8] io: stop incrementing reference in qio_task_get_source Daniel P. Berrange
2017-01-23 14:26 ` [Qemu-devel] [PULL v1 3/8] io: fix typo in docs for QIOTask Daniel P. Berrange
2017-01-23 14:26 ` [Qemu-devel] [PULL v1 4/8] io: add ability to associate an opaque "result" with with a task Daniel P. Berrange
2017-01-23 14:26 ` [Qemu-devel] [PULL v1 5/8] io: add ability to associate an error " Daniel P. Berrange
2017-01-23 14:26 ` [Qemu-devel] [PULL v1 6/8] io: change the QIOTask callback signature Daniel P. Berrange
2017-01-23 14:26 ` [Qemu-devel] [PULL v1 7/8] io: remove Error parameter from QIOTask thread worker Daniel P. Berrange
2017-01-23 14:26 ` [Qemu-devel] [PULL v1 8/8] io: introduce a DNS resolver API Daniel P. Berrange
2017-01-23 14:43 ` [Qemu-devel] [PULL v1 0/8] Merge io/ 2017-01-23 no-reply
2017-01-23 14:46 ` Peter Maydell
2017-01-23 15:24   ` Peter Maydell
2017-01-23 15:36     ` Daniel P. Berrange
2017-01-23 15:36   ` Daniel P. Berrange [this message]

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=20170123153632.GI2853@redhat.com \
    --to=berrange@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.