* Werner Koch via Gnupg-users: > We are pleased to announce the availability of a new stable GnuPG > release: version 2.4.6.
I am having problems building version 2.4.6 on macOS (Sequoia). The compiler reports errors like this one: app.c:386:5: error: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Please see the attached build log excerpt for more information. -Ralph
+ echo '***' 'Build GnuPG (-j1)' *** Build GnuPG (-j1) + build_log 'Build GnuPG (-j1)' ++ date + echo 'Wed 30 Oct 2024 02:34:40 CET: x86_64' 'Build GnuPG (-j1)' + make -j1 /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive Making all in m4 make[3]: Nothing to be done for `all'. Making all in common /Applications/Xcode.app/Contents/Developer/usr/bin/make all-am make[4]: Nothing to be done for `all-am'. Making all in regexp /Applications/Xcode.app/Contents/Developer/usr/bin/make all-am make[4]: Nothing to be done for `all-am'. Making all in kbx make[3]: Nothing to be done for `all'. Making all in g10 make[3]: Nothing to be done for `all'. Making all in sm make[3]: Nothing to be done for `all'. Making all in agent make[3]: Nothing to be done for `all'. Making all in scd gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/gnupg-2.4/share/locale\" -DGNUPG_BINDIR="\"/usr/local/gnupg-2.4/bin\"" -DGNUPG_LIBEXECDIR="\"/usr/local/gnupg-2.4/libexec\"" -DGNUPG_LIBDIR="\"/usr/local/gnupg-2.4/lib/gnupg\"" -DGNUPG_DATADIR="\"/usr/local/gnupg-2.4/share/gnupg\"" -DGNUPG_SYSCONFDIR="\"/usr/local/gnupg-2.4/etc/gnupg\"" -DGNUPG_LOCALSTATEDIR="\"/var\"" -DGNUPG_DEFAULT_AGENT="\"/usr/local/gnupg-2.4/bin/gpg-agent\"" -DGNUPG_DEFAULT_PINENTRY="\"/usr/local/gnupg-2.4/bin/pinentry\"" -DGNUPG_DEFAULT_SCDAEMON="\"/usr/local/gnupg-2.4/libexec/scdaemon\"" -DGNUPG_DEFAULT_DIRMNGR="\"/usr/local/gnupg-2.4/bin/dirmngr\"" -DGNUPG_DEFAULT_PROTECT_TOOL="\"/usr/local/gnupg-2.4/libexec/gpg-protect-tool\"" -DGNUPG_DEFAULT_DIRMNGR_LDAP="\"/usr/local/gnupg-2.4/libexec/dirmngr_ldap\"" -arch x86_64 -I/tmp/gpgosx-build-2.4.6/x86_64-dist/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=10.12 -O0 -I/tmp/gpgosx-build-2.4.6/x86_64-dist/include -I/tmp/gpgosx-build-2.4.6/x86_64-dist/include -I/tmp/gpgosx-build-2.4.6/x86_64-dist/include -I/tmp/gpgosx-build-2.4.6/x86_64-dist/include -I/tmp/gpgosx-build-2.4.6/x86_64-dist/include -Wall -Wno-pointer-sign -Wpointer-arith -arch x86_64 -m64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=10.12 -O0 -MT app.o -MD -MP -MF .deps/app.Tpo -c -o app.o app.c app.c:386:5: error: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 386 | write (card_list_lock.notify_pipe[1], "", 1); | ^ app.c:386:5: note: did you mean 'fwrite'? /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:252:9: note: 'fwrite' declared here 252 | size_t fwrite(const void * __restrict __ptr, size_t __size, size_t __nitems, FILE * __restrict __stream) __DARWIN_ALIAS(fwrite); | ^ app.c:447:11: error: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 447 | read (card_list_lock.notify_pipe[0], buf, sizeof buf); | ^ app.c:447:11: note: did you mean 'fread'? /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:245:9: note: 'fread' declared here 245 | size_t fread(void * __restrict __ptr, size_t __size, size_t __nitems, FILE * __restrict __stream); | ^ 2 errors generated. make[3]: *** [app.o] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all] Error 2 + return 1 + stepfail 45 + _die 'Error in step' 45 + echo 'Error in step' 45 Error in step 45 + exit 1 10m50.73s real 8m26.72s user 7m14.01s sys
_______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org https://lists.gnupg.org/mailman/listinfo/gnupg-users