From: "djk (Daniel Kopetzky)" Date: 2012-06-11T21:23:52+09:00 Subject: [ruby-core:45568] [ruby-trunk - Bug #6576][Open] shared library references _environ macosx Lion Issue #6576 has been reported by djk (Daniel Kopetzky). ---------------------------------------- Bug #6576: shared library references _environ macosx Lion https://bugs.ruby-lang.org/issues/6576 Author: djk (Daniel Kopetzky) Status: Open Priority: Normal Assignee: Category: core Target version: 2.0.0 ruby -v: ruby 2.0.0dev (2012-06-10) [x86_64-darwin11.4.0] The code in missing/setproctitle.c references the global variable environ. The environ global variable isn't allowed in mac dylib shared libraries. Code trying to use ruby-2 as a shared library will fail. % nm libruby.dylib|grep _environ U _environ The code in hash.c has #ifdef __APPLE__ sections that appear to access the environment using Apple's suggested _NSGetEnviron() routine. -- http://bugs.ruby-lang.org/