qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Build fails on OS X Lion
@ 2012-05-27  3:08 Charlie Somerville
  2012-05-27  5:58 ` dunrong huang
  0 siblings, 1 reply; 3+ messages in thread
From: Charlie Somerville @ 2012-05-27  3:08 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 503 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 686 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] Build fails on OS X Lion
  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
  0 siblings, 1 reply; 3+ messages in thread
From: dunrong huang @ 2012-05-27  5:58 UTC (permalink / raw)
  To: Charlie Somerville; +Cc: qemu-devel

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

-- 
linuxer and emacser and pythoner living in beijing
blog: http://mathslinux.org
twitter: https://twitter.com/mathslinux
google+: https://plus.google.com/118129852578326338750

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] Build fails on OS X Lion
  2012-05-27  5:58 ` dunrong huang
@ 2012-05-27 12:51   ` Andreas Färber
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Färber @ 2012-05-27 12:51 UTC (permalink / raw)
  To: dunrong huang
  Cc: Michael Roth, Charlie Somerville, qemu-devel, Luiz Capitulino

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-27 12:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).