我也遇到这个问题了。
貌似今天突然出现的,难道用到curl都会出这个错误吗?
另外我用你的脚本编译curl,碰到一个奇怪的错误:
/bin/sh …/libtool --tag=CC --mode=compile /Users/trdehero/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -DHAVE_CONFIG_H -I…/include/curl -I…/include -I…/include -I…/lib -I…/lib -DBUILDING_LIBCURL -DCURL_STATICLIB -DCURL_HIDDEN_SYMBOLS -fvisibility=hidden -arch arm64 -isysroot /Users/trdehero/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -miphoneos-version-min=6.0 -Qunused-arguments -Os -MT libcurl_la-url.lo -MD -MP -MF .deps/libcurl_la-url.Tpo -c -o libcurl_la-url.lo test -f 'url.c' || echo './'
url.c
libtool: compile: /Users/trdehero/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -DHAVE_CONFIG_H -I…/include/curl -I…/include -I…/include -I…/lib -I…/lib -DBUILDING_LIBCURL -DCURL_STATICLIB -DCURL_HIDDEN_SYMBOLS -fvisibility=hidden -arch arm64 -isysroot /Users/trdehero/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -miphoneos-version-min=6.0 -Qunused-arguments -Os -MT libcurl_la-url.lo -MD -MP -MF .deps/libcurl_la-url.Tpo -c url.c -o libcurl_la-url.o
url.c:51
error: “We can’t compile without socket() support!”
#error “We can’t compile without socket() support!”
网上也没有找到解决方案。请赐教!