Error while trying to compile libgcrypt on macOS
Pedro Andres Aranda Gutierrez
paaguti at gmail.com
Sat May 6 07:51:59 CEST 2023
Hi
I was just trying to compile libgcrypt 1.10.2 on my Mac
libgcrypt ➤ uname -a
Darwin paag-MacBookAir 21.6.0 Darwin Kernel Version 21.6.0: Thu Mar 9 20:08:59 PST 2023; root:xnu-8020.240.18.700.8~1/RELEASE_X86_64 x86_64
And I got the following error:
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I/usr/local/include -I/usr/local/include -arch x86_64 -Os -fno-delete-null-pointer-checks -Wall -MT rndgetentropy.lo -MD -MP -MF .deps/rndgetentropy.Tpo -c -o rndgetentropy.lo rndgetentropy.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I/usr/local/include -I/usr/local/include -arch x86_64 -Os -fno-delete-null-pointer-checks -Wall -MT rndgetentropy.lo -MD -MP -MF .deps/rndgetentropy.Tpo -c rndgetentropy.c -fno-common -DPIC -o .libs/rndgetentropy.o
rndgetentropy.c:98:21: error: implicit declaration of function 'getrandom' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ret = getrandom (buffer, nbytes, GRND_RANDOM);
^
rndgetentropy.c:98:48: error: use of undeclared identifier 'GRND_RANDOM'
ret = getrandom (buffer, nbytes, GRND_RANDOM);
^
2 errors generated.
This all in my effort to get gnupg 2.4.1 running from the tarballs in gnupg.org <http://gnupg.org/>
Thanks for any help, /PA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20230506/bfe58ed8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4482 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20230506/bfe58ed8/attachment.bin>
More information about the Gnupg-devel
mailing list