exechelp-posix.c:527:5: error: use of undeclared identifier 'environ'
Ralph Seichter via Gnupg-devel <[email protected]>
| Newsgroups | gmane.comp.encryption.gpg.devel |
|---|---|
| Message-ID | <[email protected]> |
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
_______________________________________________
Gnupg-devel mailing list
[email protected]
https://lists.gnupg.org/mailman/listinfo/gnupg-devel
gnupg-2.5.0-macos.patch
(text/x-patch, 351 B)
diff --color -u -r a/common/exechelp-posix.c b/common/exechelp-posix.c --- a/common/exechelp-posix.c 2024-07-05 15:06:38 +++ b/common/exechelp-posix.c 2024-07-15 19:52:56 @@ -76,6 +76,8 @@ #include "sysutils.h" #include "exechelp.h" +/* inspired by https://dev.gnupg.org/T7169 */ +extern char **environ; /* Helper */ static inline gpg_error_t