openssl-1.1.1l fails to build in macOS 10.13.6 with Xcode 10.1
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:
On Fri, 2021-08-27 at 13:34 -0400, Scott Lasley via openssl-users
> 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
> typedef CCCryptorStatus CCRNGStatus;
> crypto/rand/rand_unix.c:385:47: error: use of undeclared identifier
> if (CCRandomGenerateBytes(buf, buflen) == kCCSuccess)
> 2 errors generated.
> make: *** [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>
> Is this a safe change to make?
> Best regards,
No matter how far down the wrong road you've gone, turn back.
[You'll know whether the road is wrong if you carefully listen to your
More information about the openssl-users