From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:47553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYcwd-0008Qu-3T for qemu-devel@nongnu.org; Sun, 27 May 2012 08:51:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SYcwb-0003WV-3a for qemu-devel@nongnu.org; Sun, 27 May 2012 08:51:38 -0400 Received: from mout.web.de ([212.227.15.3]:59531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYcwa-0003WE-QR for qemu-devel@nongnu.org; Sun, 27 May 2012 08:51:37 -0400 Message-ID: <4FC22343.6070906@web.de> Date: Sun, 27 May 2012 14:51:15 +0200 From: =?windows-1252?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <5F6D68A31F8F4DB8A8FAC9622958D7B4@charliesomerville.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] Build fails on OS X Lion List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dunrong huang Cc: Michael Roth , Charlie Somerville , qemu-devel@nongnu.org, Luiz Capitulino Am 27.05.2012 07:58, schrieb dunrong huang: > 2012/5/27 Charlie Somerville : >> 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