gustavogenovese / curl-android-ios

Static libcurl to be used in Android and iOS apps. Build scripts included. No Android source required
641 stars 255 forks source link

build failed: 'connectx' is only available on iOS 9.0 #48

Closed Hearnseu closed 6 years ago

Hearnseu commented 6 years ago

with Xcode 9.4


connect.c:1087:12: error: 'connectx' is only available on iOS 9.0 or newer [-Werror,-Wunguarded-availability] rc = connectx(sockfd, &endpoints, SAE_ASSOCID_ANY, ^~~~ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/socket.h:713:5: note: 'connectx' has been explicitly marked partial here int connectx(int, const sa_endpoints_t *, sae_associd_t, unsigned int, ^ connect.c:1087:12: note: enclose 'connectx' in a __builtin_available check to silence this warning rc = connectx(sockfd, &endpoints, SAE_ASSOCID_ANY, ^~~~ 1 error generated. make[2]: [libcurl_la-connect.lo] Error 1 make[2]: Waiting for unfinished jobs.... make[1]: [all] Error 2 make: [all-recursive] Error 1 Error running the make program

Hearnseu commented 6 years ago

success with: https://github.com/Cogosense/iOSCurlFramework