Page MenuHome GnuPG

gnupg-2.5.0: Use gpgrt_process_spawn API (was: Does not build due to undeclared identifier 'environ')
Testing, NormalPublic

Description

gnupg-2.5.0: Does not build due to undeclared identifier 'environ'

This is similar to T7169.

This is on macOS.

Details

Version
gnupg-2.5.0

Revisions and Commits

Event Timeline

diff --git a/common/exechelp-posix.c b/common/exechelp-posix.c
index 97d8fa4ad..e7109d760 100644
--- a/common/exechelp-posix.c
+++ b/common/exechelp-posix.c
@@ -76,6 +76,7 @@
 #include "sysutils.h"
 #include "exechelp.h"
 
+extern char **environ;
 
 /* Helper */
 static inline gpg_error_t
gniibe triaged this task as Normal priority.
gniibe added a project: gnupg.
gniibe added a subscriber: gniibe.

Thank you for your report. We are about to migrate to use the gpgrt_spawn_process API.
(In our development history, it was originally implemented and tested as gnupg_spawn_process API and moved to libgpg-error.)

Let me change the bug title, since it will be non-issue after the migration.

gniibe renamed this task from gnupg-2.5.0: Does not build due to undeclared identifier 'environ' to gnupg-2.5.0: Use gpgrt_process_spawn API (was: Does not build due to undeclared identifier 'environ').Jul 9 2024, 3:14 AM