-
Notifications
You must be signed in to change notification settings - Fork 7.5k
[s2n] build failure on macOS #21443
Description
Host Environment
- OS: macOS 10.14 Mojave
- Compiler: AppleClang 11.0.0.11000033
To Reproduce
Steps to reproduce the behavior:
./vcpkg install aws-sdk-cpp[s3]:x64-osx --no-binary-caching
Failure logs
Build fails while building the s2n library, claiming LibCrypo cannot be found
Additional context
A work-around is to manually build OpenSSL 1.1.1 first, as follows:
./vcpkg install openssl[core]:x64-osx --no-binary-caching
./vcpkg install aws-sdk-cpp[s3]:x64-osx --no-binary-caching
I also found that curl was rejecting the SSL certificate of the server providing the OpenSSL source. I had to create a text file ~/.curlrc and add the following line to the file:
--insecure
in order for curl to successfully download the OpenSSL source. I am not sure why this was necessary. I tried installing macOS security updates for macOS Mojave, and also tried updating curl with HomeBrew, but I still needed to set --insecure in ~/.curlrc for vcpkg to build OpenSSL.