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
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
_______________________________________________
Gnupg-devel mailing list
[email protected]
https://lists.gnupg.org/mailman/listinfo/gnupg-devel