From: "kosaki (Motohiro KOSAKI)" Date: 2012-06-11T21:26:08+09:00 Subject: [ruby-core:45569] [ruby-trunk - Bug #6576][Assigned] shared library references _environ macosx Lion Issue #6576 has been updated by kosaki (Motohiro KOSAKI). Status changed from Open to Assigned Assignee set to kosaki (Motohiro KOSAKI) ---------------------------------------- Bug #6576: shared library references _environ macosx Lion https://bugs.ruby-lang.org/issues/6576#change-27164 Author: djk (Daniel Kopetzky) Status: Assigned Priority: Normal Assignee: kosaki (Motohiro KOSAKI) 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/