Page MenuHome GnuPG

environ not declared in macOS; gpgrt 1.50 failed to build.
Closed, DuplicatePublic

Description

@Marius_Schamschula reported this and mentioned rEfbe1f5153c3


With the release of libgpg-error 1.50 I now get the following error:

libtool: compile: /usr/bin/clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/opt/local/share/locale\" -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -Wall -Wpointer-arith -MT libgpg_error_la-argparse.lo -MD -MP -MF .deps/libgpg_error_la-argparse.Tpo -c argparse.c -fno-common -DPIC -o .libs/libgpg_error_la-argparse.o
spawn-posix.c:345:5: error: use of undeclared identifier 'environ'

environ = act->environ;
^

1 error generated.

while attempting to update under MacPorts.

macOS 14.5 23F79 arm64
Xcode 15.4 15F31d
Apple clang version 15.0.0 (clang-1500.3.9.4)

Details

Version
1.50