exechelp-posix.c:527:5: error: use of undeclared identifier 'environ'

Ralph Seichter ralph at ml.seichter.de
Mon Jul 15 21:42:30 CEST 2024


I see the following error when trying to build GnuPG 2.5.0 on macOS:

  exechelp-posix.c:527:5: error: use of undeclared identifier 'environ'
    environ = act->environ;
    ^
  1 error generated.
  make[3]: *** [libcommon_a-exechelp-posix.o] Error 1

Similar to the suggestion in https://dev.gnupg.org/T7169 , I was able to
temporarily work around the issue by creating a crude patch (attached).

-Ralph

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnupg-2.5.0-macos.patch
Type: text/x-patch
Size: 351 bytes
Desc: macOS patch
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20240715/59ee6808/attachment.bin>


More information about the Gnupg-devel mailing list