jasonacox / Build-OpenSSL-cURL

Scripts to build OpenSSL, HTTP/2 (nghttp2) and cURL (libcurl) for MacOS, iOS and tvOS devices (x86_64, armv7, armv7s, arm64, arm64e). Now Supporting Apple Silicon, OpenSSL 3.0.x with TLS 1.3 and Mac Catalyst builds.
MIT License
419 stars 125 forks source link

Build.sh error (curl i386) #38

Closed linusix closed 3 years ago

linusix commented 4 years ago

Error occurs in curl i386.

Xcode 11.2.1

git clone https://github.com/jasonacox/Build-OpenSSL-cURL.git

cd Build-OpenSSL-cURL.git

./build.sh

==> /tmp/curl-7.68.0-iOS-i386-bitcode.log <== checking for sys/socket.h... (cached) yes checking for recv... no configure: error: Unable to link function recv

curl-7.68.0-iOS-i386-bitcode.log

jasonacox commented 4 years ago

I'm not able to get the same failure. This could occur if the nghttp2 library to build property but you would have seen that error as well. I'm using Xcode Version 11.4.1. Since the i386 architecture for iOS is only for the simulator and is likely not needed anymore, you can remove the buildIOS "i386" and related lines from the ./curl/libcurl-build.sh script.