[MacPorts] #70267: libgpg-error @1.50 does not build: Undefined symbols: "_environ"

MacPorts noreply at macports.org
Fri Jun 21 07:02:40 UTC 2024


#70267: libgpg-error @1.50 does not build: Undefined symbols: "_environ"
-------------------------+-------------------------------------------------
  Reporter:              |      Owner:  ryandesign
  barracuda156           |
      Type:  defect      |     Status:  accepted
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.9.3
Resolution:              |   Keywords:  legacy-os tiger leopard snowleopard
      Port:  libgpg-     |  lion haspatch
  error                  |
-------------------------+-------------------------------------------------
Changes (by ryandesign):

 * keywords:  legacy-os tiger leopard snowleopard lion => legacy-os tiger
     leopard snowleopard lion haspatch


Comment:

 The usual fix:

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

 does not work here because this code also defines `struct
 gpgrt_spawn_actions` which contains an `environ` member, so I've submitted
 a slightly different fix in https://github.com/macports/macports-
 ports/pull/24601

 Marius, since you already have an account on their bug tracker, maybe you
 can update https://dev.gnupg.org/T7169 with the solution.

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


More information about the macports-tickets mailing list