[MacPorts] #59616: py37-numpy: Symbol not found: _environ, Referenced from: libgfortran.5.dylib, Expected in: flat namespace

MacPorts noreply at macports.org
Mon Mar 29 00:13:26 UTC 2021


#59616: py37-numpy: Symbol not found: _environ, Referenced from:
libgfortran.5.dylib, Expected in: flat namespace
-------------------------+-----------------------
  Reporter:  ryandesign  |      Owner:  michaelld
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.6.2
Resolution:              |   Keywords:
      Port:  py-numpy    |
-------------------------+-----------------------

Comment (by kencu):

 It's already fixed upstream, in exactly the same way I was going to fix
 it:

 <https://github.com/gcc-
 mirror/gcc/blob/499fa254ae8c9752d8c2cf3130b13ffddfd83546/libgfortran/intrinsics/execute_command_line.c#L37>

 {{{
 #ifdef HAVE_POSIX_SPAWN
 #include <spawn.h>
 # ifdef __APPLE__
 #  include <crt_externs.h>
 #  define environ (*_NSGetEnviron ())
 # else
 extern char **environ;
 # endif
 #endif
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/59616#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list