From: "Andreas Färber" <andreas.faerber@web.de>
To: dunrong huang <riegamaths@gmail.com>
Cc: Michael Roth <mdroth@linux.vnet.ibm.com>,
Charlie Somerville <charlie@charliesomerville.com>,
qemu-devel@nongnu.org, Luiz Capitulino <lcapitulino@redhat.com>
Subject: Re: [Qemu-devel] Build fails on OS X Lion
Date: Sun, 27 May 2012 14:51:15 +0200 [thread overview]
Message-ID: <4FC22343.6070906@web.de> (raw)
In-Reply-To: <CAOZVR5Y5o9U4R9QfZ5Rq37LgfuqrZB5w+AN6M7iwqG=NqYj7Mw@mail.gmail.com>
Am 27.05.2012 07:58, schrieb dunrong huang:
> 2012/5/27 Charlie Somerville <charlie@charliesomerville.com>:
>> Hi qemu-devel,
>>
>> I tried to build the 1.1.0-rc3 on Mac OS X Lion, and I get this compile
>> error:
>>
>> qga/commands-posix.c: In function ‘qmp_guest_shutdown’:
>> qga/commands-posix.c:65: error: ‘environ’ undeclared (first use in this
>> function)
>> qga/commands-posix.c:65: error: (Each undeclared identifier is reported only
>> once
>> qga/commands-posix.c:65: error: for each function it appears in.)
>>
>> If I hack in an 'extern char** environ;' to the top of that file, the build
>> proceeds without error.
>
> Luiz Capitulino has fixed this bug, but it haven't be merged into master branch.
>
> More details, see:
> http://lists.nongnu.org/archive/html/qemu-devel/2012-05/msg03578.html
Hm, I'm less certain that fix is going to work for Darwin...
I remember using a code snippet #define environ *_NSGetEnviron() or so
on Darwin.
Will check.
Andreas
prev parent reply other threads:[~2012-05-27 12:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-27 3:08 [Qemu-devel] Build fails on OS X Lion Charlie Somerville
2012-05-27 5:58 ` dunrong huang
2012-05-27 12:51 ` Andreas Färber [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=4FC22343.6070906@web.de \
--to=andreas.faerber@web.de \
--cc=charlie@charliesomerville.com \
--cc=lcapitulino@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=riegamaths@gmail.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).