Opened 9 months ago
#69099 new defect
folly fails on 10.11: error: no member named 'tcpi_txretransmitpackets' in 'tcp_connection_info'
Reported by: | barracuda156 | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | elcapitan | Cc: | |
Port: | folly |
Description
While 10.11 has tcp_connection_info
: https://developer.apple.com/documentation/kernel/tcp_connection_info
It does not find tcpi_txretransmitpackets
in it:
[257/324] /opt/local/bin/clang++-mp-16 -DFMT_SHARED -DFOLLY_XLOG_STRIP_PREFIXES=\"/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/folly-v2024.01.08.00:/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/build\" -DGFLAGS_IS_A_DLL=0 -D_GNU_SOURCE -D_REENTRANT -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/folly-v2024.01.08.00 -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/build -I/opt/local/libexec/boost/1.81/include -I/opt/local/include -I/opt/local/libexec/openssl3/include -I/opt/local/include/libfmt10 -pipe -I/opt/local/libexec/openssl3/include -I/opt/local/libexec/boost/1.81/include -Os -std=c++17 -fno-aligned-allocation -DNDEBUG -isystem/opt/local/include/libcxx/v1 -nostdinc++ -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -I/opt/local/libexec/boost/1.81/include -isystem/opt/local/include -Wno-undef-prefix -stdlib=libc++ -arch x86_64 -mmacosx-version-min=10.11 -fPIC -g -finput-charset=UTF-8 -fsigned-char -Wall -Wno-deprecated -Wno-deprecated-declarations -Wno-sign-compare -Wno-unused -Wuninitialized -Wunused-label -Wunused-result -Wno-noexcept-type -Wno-nullability-completeness -Wno-inconsistent-missing-override -fopenmp -std=gnu++17 -MD -MT CMakeFiles/folly_base.dir/folly/net/TcpInfo.cpp.o -MF CMakeFiles/folly_base.dir/folly/net/TcpInfo.cpp.o.d -o CMakeFiles/folly_base.dir/folly/net/TcpInfo.cpp.o -c /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/folly-v2024.01.08.00/folly/net/TcpInfo.cpp FAILED: CMakeFiles/folly_base.dir/folly/net/TcpInfo.cpp.o /opt/local/bin/clang++-mp-16 -DFMT_SHARED -DFOLLY_XLOG_STRIP_PREFIXES=\"/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/folly-v2024.01.08.00:/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/build\" -DGFLAGS_IS_A_DLL=0 -D_GNU_SOURCE -D_REENTRANT -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/folly-v2024.01.08.00 -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/build -I/opt/local/libexec/boost/1.81/include -I/opt/local/include -I/opt/local/libexec/openssl3/include -I/opt/local/include/libfmt10 -pipe -I/opt/local/libexec/openssl3/include -I/opt/local/libexec/boost/1.81/include -Os -std=c++17 -fno-aligned-allocation -DNDEBUG -isystem/opt/local/include/libcxx/v1 -nostdinc++ -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -I/opt/local/libexec/boost/1.81/include -isystem/opt/local/include -Wno-undef-prefix -stdlib=libc++ -arch x86_64 -mmacosx-version-min=10.11 -fPIC -g -finput-charset=UTF-8 -fsigned-char -Wall -Wno-deprecated -Wno-deprecated-declarations -Wno-sign-compare -Wno-unused -Wuninitialized -Wunused-label -Wunused-result -Wno-noexcept-type -Wno-nullability-completeness -Wno-inconsistent-missing-override -fopenmp -std=gnu++17 -MD -MT CMakeFiles/folly_base.dir/folly/net/TcpInfo.cpp.o -MF CMakeFiles/folly_base.dir/folly/net/TcpInfo.cpp.o.d -o CMakeFiles/folly_base.dir/folly/net/TcpInfo.cpp.o -c /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/folly-v2024.01.08.00/folly/net/TcpInfo.cpp /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/folly-v2024.01.08.00/folly/net/TcpInfo.cpp:262:41: error: no member named 'tcpi_txretransmitpackets' in 'tcp_connection_info'; did you mean 'tcpi_txretransmitbytes'? return getFieldAsOptUInt64(&tcp_info::tcpi_txretransmitpackets); ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ tcpi_txretransmitbytes /usr/include/netinet/tcp.h:269:19: note: 'tcpi_txretransmitbytes' declared here u_int64_t tcpi_txretransmitbytes __attribute__((aligned(8))); ^ 1 error generated.
Note: See
TracTickets for help on using
tickets.