cloudflare / homebrew-cloudflare

97 stars 39 forks source link

Unable to install curl with http3 on Mac m2 16.3.2 #66

Closed zoonderkins closed 11 months ago

zoonderkins commented 1 year ago

I got this error code

I have modified the original code to curl version 8.3.0.

==> Pouring rust--1.72.0_2.arm64_ventura.bottle.tar.gz
==> Downloading https://formulae.brew.sh/api/cask.jws.json
############################################################################################# 100.0%
🍺  /opt/homebrew/Cellar/rust/1.72.0_2: 38,925 files, 842.7MB
==> Installing curl
==> cargo build --release --package=quiche --features=ffi,pkg-config-meta,qlog
==> ./configure --disable-silent-rules --with-ssl=/private/tmp/curl-20230922-43560-1lsgoux/curl-8.3.
==> make install
Last 15 lines from /Users/edwardoo/Library/Logs/Homebrew/curl/03.make:
        SSL_CTX_set_default_verify_paths(ssl_ctx);
                                         ^~~~~~~
                                         select
/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/sys/_select.h:43:10: note: 'select' declared here
int      select(int, fd_set * __restrict, fd_set * __restrict,
         ^
1 error generated.
make[1]: *** [vquic/libcurl_la-curl_quiche.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
libtool: compile:  clang -DHAVE_CONFIG_H -I../include -I../lib -I../lib -DBUILDING_LIBCURL -DCURL_HIDDEN_SYMBOLS -isystem /private/tmp/curl-20230922-43560-1lsgoux/curl-8.3.0/quiche/quiche/deps/boringssl/src/include -isystem /opt/homebrew/Cellar/openssl@3/3.1.2/include -isystem /opt/homebrew/Cellar/libssh2/1.11.0_1/include -isystem /opt/homebrew/Cellar/openssl@3/3.1.2/include -isystem /opt/homebrew/Cellar/rtmpdump/2.4-20151223_3/include -isystem /opt/homebrew/Cellar/libidn2/2.3.4_1/include -isystem /opt/homebrew/Cellar/libnghttp2/1.56.0/include -isystem /private/tmp/curl-20230922-43560-1lsgoux/curl-8.3.0/quiche/quiche/include -fvisibility=hidden -Qunused-arguments -O2 -Wno-pointer-bool-conversion -Werror=partial-availability -c vtls/x509asn1.c -o vtls/libcurl_la-x509asn1.o >/dev/null 2>&1
libtool: compile:  clang -DHAVE_CONFIG_H -I../include -I../lib -I../lib -DBUILDING_LIBCURL -DCURL_HIDDEN_SYMBOLS -isystem /private/tmp/curl-20230922-43560-1lsgoux/curl-8.3.0/quiche/quiche/deps/boringssl/src/include -isystem /opt/homebrew/Cellar/openssl@3/3.1.2/include -isystem /opt/homebrew/Cellar/libssh2/1.11.0_1/include -isystem /opt/homebrew/Cellar/openssl@3/3.1.2/include -isystem /opt/homebrew/Cellar/rtmpdump/2.4-20151223_3/include -isystem /opt/homebrew/Cellar/libidn2/2.3.4_1/include -isystem /opt/homebrew/Cellar/libnghttp2/1.56.0/include -isystem /private/tmp/curl-20230922-43560-1lsgoux/curl-8.3.0/quiche/quiche/include -fvisibility=hidden -Qunused-arguments -O2 -Wno-pointer-bool-conversion -Werror=partial-availability -c vtls/vtls.c -o vtls/libcurl_la-vtls.o >/dev/null 2>&1
libtool: compile:  clang -DHAVE_CONFIG_H -I../include -I../lib -I../lib -DBUILDING_LIBCURL -DCURL_HIDDEN_SYMBOLS -isystem /private/tmp/curl-20230922-43560-1lsgoux/curl-8.3.0/quiche/quiche/deps/boringssl/src/include -isystem /opt/homebrew/Cellar/openssl@3/3.1.2/include -isystem /opt/homebrew/Cellar/libssh2/1.11.0_1/include -isystem /opt/homebrew/Cellar/openssl@3/3.1.2/include -isystem /opt/homebrew/Cellar/rtmpdump/2.4-20151223_3/include -isystem /opt/homebrew/Cellar/libidn2/2.3.4_1/include -isystem /opt/homebrew/Cellar/libnghttp2/1.56.0/include -isystem /private/tmp/curl-20230922-43560-1lsgoux/curl-8.3.0/quiche/quiche/include -fvisibility=hidden -Qunused-arguments -O2 -Wno-pointer-bool-conversion -Werror=partial-availability -c vquic/vquic.c  -fno-common -DPIC -o vquic/.libs/libcurl_la-vquic.o
libtool: compile:  clang -DHAVE_CONFIG_H -I../include -I../lib -I../lib -DBUILDING_LIBCURL -DCURL_HIDDEN_SYMBOLS -isystem /private/tmp/curl-20230922-43560-1lsgoux/curl-8.3.0/quiche/quiche/deps/boringssl/src/include -isystem /opt/homebrew/Cellar/openssl@3/3.1.2/include -isystem /opt/homebrew/Cellar/libssh2/1.11.0_1/include -isystem /opt/homebrew/Cellar/openssl@3/3.1.2/include -isystem /opt/homebrew/Cellar/rtmpdump/2.4-20151223_3/include -isystem /opt/homebrew/Cellar/libidn2/2.3.4_1/include -isystem /opt/homebrew/Cellar/libnghttp2/1.56.0/include -isystem /private/tmp/curl-20230922-43560-1lsgoux/curl-8.3.0/quiche/quiche/include -fvisibility=hidden -Qunused-arguments -O2 -Wno-pointer-bool-conversion -Werror=partial-availability -c vquic/vquic.c -o vquic/libcurl_la-vquic.o >/dev/null 2>&1
libtool: compile:  clang -DHAVE_CONFIG_H -I../include -I../lib -I../lib -DBUILDING_LIBCURL -DCURL_HIDDEN_SYMBOLS -isystem /private/tmp/curl-20230922-43560-1lsgoux/curl-8.3.0/quiche/quiche/deps/boringssl/src/include -isystem /opt/homebrew/Cellar/openssl@3/3.1.2/include -isystem /opt/homebrew/Cellar/libssh2/1.11.0_1/include -isystem /opt/homebrew/Cellar/openssl@3/3.1.2/include -isystem /opt/homebrew/Cellar/rtmpdump/2.4-20151223_3/include -isystem /opt/homebrew/Cellar/libidn2/2.3.4_1/include -isystem /opt/homebrew/Cellar/libnghttp2/1.56.0/include -isystem /private/tmp/curl-20230922-43560-1lsgoux/curl-8.3.0/quiche/quiche/include -fvisibility=hidden -Qunused-arguments -O2 -Wno-pointer-bool-conversion -Werror=partial-availability -c vtls/sectransp.c -o vtls/libcurl_la-sectransp.o >/dev/null 2>&1
make: *** [install-recursive] Error 1
junhochoi commented 1 year ago

8.3.0 was buggy on this build. I opened #67 to update curl.rb with curl 8.4.0 release (which fixed this issue). Please try.