From: Eric Hodel Date: 2005-10-25T17:16:16+09:00 Subject: Re: [ ruby-Bugs-2715 ] [PATCH] 1.8.3 ruby.c doesn't compile on OS X due to missing char **environ On Oct 24, 2005, at 11:29 PM, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: [ ruby-Bugs-2715 ] [PATCH] 1.8.3 ruby.c doesn't > compile on OS X due to missing char **environ" > on Tue, 25 Oct 2005 15:09:54 +0900, noreply@rubyforge.org writes: > > |I'm working on getting Ruby 1.8.3 into Fink, the Debian style > |package managed system for Mac OS X. > | > |Ruby 1.8.3 introduced the usage of the > | > |extern char **environ; > | > |in ruby.c. > | > |Mac OS X does not have this symbol, which you can confirm by greping > |through /usr/include and nm on the /usr/lib/*. > | > |The work around is to do something like this: > > I'm not sure if it's OK to replace environ by _NSGetEnviron() since > this code assumes UNIX style environment variable memory map. Could > anyone confirm this is OK or not for Mac OS X? There must be some other issue because I built ruby 1.8.3 out-of-the- box: $ uname -a Darwin kaa.jijo.segment7.net 8.2.0 Darwin Kernel Version 8.2.0: Fri Jun 24 17:46:54 PDT 2005; root:xnu-792.2.4.obj~3/RELEASE_PPC Power Macintosh powerpc $ ruby -v ruby 1.8.3 (2005-09-21) [powerpc-darwin8.2.0] -- Eric Hodel - drbrain@segment7.net - http://segment7.net FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04