Closed lux5am closed 7 months ago
Try removing --enable-static --disable-shared
and build it.
Alright. But I haven't been able to finish the github actions these past few days.
asyn-ares.c: In function 'Curl_resolver_getsock':
asyn-ares.c:297:3: error: 'ares_getsock' is deprecated: Use ARES_OPT_EVENT_THREAD or ARES_OPT_SOCK_STATE_CB instead [-Werror=deprecated-declarations]
297 | int max = ares_getsock((ares_channel)data->state.async.resolver,
| ^~~
In file included from asyn-ares.c:67:
/data/curl-aarch64/include/ares.h:616:31: note: declared here
616 | ARES_OPT_SOCK_STATE_CB) int ares_getsock(ares_channel_t *channel,
| ^~~~~~~~~~~~
asyn-ares.c: In function 'waitperform':
asyn-ares.c:332:3: error: 'ares_getsock' is deprecated: Use ARES_OPT_EVENT_THREAD or ARES_OPT_SOCK_STATE_CB instead [-Werror=deprecated-declarations]
332 | bitmask = ares_getsock((ares_channel)data->state.async.resolver, socks,
| ^~~~~~~
/data/curl-aarch64/include/ares.h:616:31: note: declared here
616 | ARES_OPT_SOCK_STATE_CB) int ares_getsock(ares_channel_t *channel,
| ^~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:2208: libcurl_la-asyn-ares.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/data/curl-8.7.1/lib'
make[1]: Leaving directory '/data/curl-8.7.1/lib'
make[1]: *** [Makefile:1536: all] Error 2
make: *** [Makefile:1267: all-recursive] Error 1
Try removing --enable-ares
,
You may need to remove other static compilation parameters.
Okay thanks I figured out.
Added --enable-shared still didn't produce libcurl.so I need it for python/lua binding for openwrt arm64.