Project

General

Profile

Actions

Bug #6576

closed

shared library references _environ macosx Lion

Added by djk (Daniel Kopetzky) almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.0.0dev (2012-06-10) [x86_64-darwin11.4.0]
Backport:
[ruby-core:45568]

Description

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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0