openssl-1.1.1l fails to build in macOS 10.13.6 with Xcode 10.1
Tomas Mraz
tomas at openssl.org
Mon Aug 30 09:43:05 UTC 2021
Thank you for the report.
This is already fixed on both 1.1.1 and master branches with:
https://github.com/openssl/openssl/pull/16409
Tomas Mraz
On Fri, 2021-08-27 at 13:34 -0400, Scott Lasley via openssl-users
wrote:
> Building openssl-1.1.1l with Xcode 10.1 under macOS 10.13.6 fails with
> this error
>
>
> In file included from crypto/rand/rand_unix.c:38:
> /usr/include/CommonCrypto/CommonRandom.h:35:9: error: unknown type name
> 'CCCryptorStatus'
> typedef CCCryptorStatus CCRNGStatus;
> ^
> crypto/rand/rand_unix.c:385:47: error: use of undeclared identifier
> 'kCCSuccess'
> if (CCRandomGenerateBytes(buf, buflen) == kCCSuccess)
> ^
> 2 errors generated.
> make[1]: *** [crypto/rand/rand_unix.o] Error 1
>
>
>
>
> The build succeeds and all tests pass if CommonCryptoError.h is added
> to the __APPLE__ includes in crypto/rand/rand_unix.c
>
> #if defined(__APPLE__)
> # include <CommonCrypto/CommonCryptoError.h>
> # include <CommonCrypto/CommonRandom.h>
> #endif
>
> Is this a safe change to make?
>
> Best regards,
> Scott
--
Tomáš Mráz
No matter how far down the wrong road you've gone, turn back.
Turkish proverb
[You'll know whether the road is wrong if you carefully listen to your
conscience.]
More information about the openssl-users
mailing list