qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Build fails on OS X Lion


From: Andreas Färber
Subject: Re: [Qemu-devel] Build fails on OS X Lion
Date: Sun, 27 May 2012 14:51:15 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120421 Thunderbird/12.0

Am 27.05.2012 07:58, schrieb dunrong huang:
> 2012/5/27 Charlie Somerville <address@hidden>:
>> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]