-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[c-ares] Build error (1.33.0) #40387
Comments
Looks like your CentOS is too old and does not have support for TCP_FASTOPEN_CONNECT I"ve tried on Ubuntu 20.04 LTS and it was successfully built:
as a more advanced option - you could try to add missed fucntionality, eg: https://git.centos.org/rpms/iproute/c/99be8fbcce3c2415d08028a4716229389aca3e3d.patch |
Hello, I have updated my CentOS 7 but this build failure persists. This is preventing me from using other packages dependent upon c-ares (such as grpc). Is there a way I can fallback to the c-ares and grpc versions before this upgrade? Thanks. |
make sure that your updated CentOS7 knows about this feature - what Linux Kernel version do you have?
|
The kernel version is 3.10.0-1160.66.1.el7.x86_64, thanks |
The TCP_FASTOPEN_CONNECT socket option was added in Linux kernel version 4.11, which was released in 2017 Regarding its inclusion in CentOS, TCP_FASTOPEN_CONNECT would be available in CentOS versions that include or are based on kernel 4.11 or later. PS |
Thanks, I understand CentOS 7 is an old system, but before I go ahead and upgrade to CentOS 8, is there a way to fallback to older versions of c-ares and grpc? Thanks. |
@cd606 You can pin port version in manifest mode. In classic mode, you might copy the port directory from an earlier revision, and use that as an overlay port. And you might check with upstream if it is a known issue, or an issue they would be interested in fixing. |
@cd606 |
Cf. #40646 |
Obsolete. |
Hello, my c-ares (1.33.0) build (x64-linux, Centos 7, gcc 11) failed with the following error message, could somebody help look into this? Thanks!
/opt/rh/devtoolset-11/root/usr/bin/cc -DCARES_BUILDING_LIBRARY -DHAVE_CONFIG_H=1 -D_GNU_SOURCE -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -I$HOME/vcpkg/buildtrees/c-ares/x64-linux-dbg -I$HOME/vcpkg/buildtrees/c-ares/src/v1.33.0-7b5315fac5.clean -I$HOME/vcpkg/buildtrees/c-ares/src/v1.33.0-7b5315fac5.clean/include -I$HOME/vcpkg/buildtrees/c-ares/src/v1.33.0-7b5315fac5.clean/src/lib -fPIC -Wall -Wextra -Waggregate-return -Wcast-align -Wcast-qual -Wconversion -Wdeclaration-after-statement -Wdouble-promotion -Wfloat-equal -Wformat-security -Winit-self -Wjump-misses-init -Wlogical-op -Wmissing-braces -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-prototypes -Wnested-externs -Wno-coverage-mismatch -Wold-style-definition -Wpacked -Wpedantic -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-conversion -Wstrict-overflow -Wstrict-prototypes -Wtrampolines -Wundef -Wunreachable-code -Wunused -Wvariadic-macros -Wvla -Wwrite-strings -Wimplicit-fallthrough=3 -Werror=implicit-int -Werror=implicit-function-declaration -Wno-long-long -fdiagnostics-color=always -g -fno-omit-frame-pointer -O0 -std=gnu90 -MD -MT src/lib/CMakeFiles/c-ares.dir/ares__socket.c.o -MF src/lib/CMakeFiles/c-ares.dir/ares__socket.c.o.d -o src/lib/CMakeFiles/c-ares.dir/ares__socket.c.o -c $HOME/vcpkg/buildtrees/c-ares/src/v1.33.0-7b5315fac5.clean/src/lib/ares__socket.c
$HOME/vcpkg/buildtrees/c-ares/src/v1.33.0-7b5315fac5.clean/src/lib/ares__socket.c: In function ‘configure_socket’:
$HOME/vcpkg/buildtrees/c-ares/src/v1.33.0-7b5315fac5.clean/src/lib/ares__socket.c:64:30: error: ‘TCP_FASTOPEN_CONNECT’ undeclared (first use in this function)
64 | # define TFO_CLIENT_SOCKOPT TCP_FASTOPEN_CONNECT
| ^~~~~~~~~~~~~~~~~~~~
$HOME/vcpkg/buildtrees/c-ares/src/v1.33.0-7b5315fac5.clean/src/lib/ares__socket.c:456:43: note: in expansion of macro ‘TFO_CLIENT_SOCKOPT’
456 | setsockopt(conn->fd, IPPROTO_TCP, TFO_CLIENT_SOCKOPT, (void *)&opt,
| ^~~~~~~~~~~~~~~~~~
$HOME/vcpkg/buildtrees/c-ares/src/v1.33.0-7b5315fac5.clean/src/lib/ares__socket.c:64:30: note: each undeclared identifier is reported only once for each function it appears in
64 | # define TFO_CLIENT_SOCKOPT TCP_FASTOPEN_CONNECT
| ^~~~~~~~~~~~~~~~~~~~
$HOME/vcpkg/buildtrees/c-ares/src/v1.33.0-7b5315fac5.clean/src/lib/ares__socket.c:456:43: note: in expansion of macro ‘TFO_CLIENT_SOCKOPT’
456 | setsockopt(conn->fd, IPPROTO_TCP, TFO_CLIENT_SOCKOPT, (void *)&opt,
The text was updated successfully, but these errors were encountered: