[MacPorts] #47494: root6: Undefined symbol "_environ" on Mac OS X 10.7
MacPorts
noreply at macports.org
Sun Apr 19 12:01:41 PDT 2015
#47494: root6: Undefined symbol "_environ" on Mac OS X 10.7
----------------------+---------------------
Reporter: mojca@… | Owner: mojca@…
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: fixed | Keywords: lion
Port: root6 |
----------------------+---------------------
Comment (by jeremyhu@…):
You can't use environ directly in libraries on OS X. See environ(7):
{{{
Shared libraries and bundles don't have direct access to environ,
which is only available to the
loader ld(1) when a complete program is being linked. The
environment routines can still be used,
but if direct access to environ is needed, the _NSGetEnviron()
routine, defined in
<crt_externs.h>, can be used to retrieve the address of environ at
runtime.
}}}
--
Ticket URL: <https://trac.macports.org/ticket/47494#comment:4>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list