[MacPorts] #70146: httping build error: tcp.c: error: 'TCP_FASTOPEN' undeclared (first use in this function); did you mean 'TCP_MAXOLEN'?
MacPorts
noreply at macports.org
Mon Jun 3 12:27:54 UTC 2024
#70146: httping build error: tcp.c: error: 'TCP_FASTOPEN' undeclared (first use in
this function); did you mean 'TCP_MAXOLEN'?
-------------------------------------------------+-------------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.9.3
Keywords: yosemite, mavericks, mountainlion, | Port: httping
lion, snowleopard, leopard, tiger |
-------------------------------------------------+-------------------------
https://github.com/folkertvanheusden/HTTPing/issues/19
{{{
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_httping/httping/work/HTTPing-3.6/tcp.c:
In function 'connect_to':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_httping/httping/work/HTTPing-3.6/tcp.c:166:45:
error: 'TCP_FASTOPEN' undeclared (first use in this function); did you
mean 'TCP_MAXOLEN'?
166 | setsockopt(fd, IPPROTO_TCP, TCP_FASTOPEN, &enable,
sizeof(enable));
| ^~~~~~~~~~~~
| TCP_MAXOLEN
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_httping/httping/work/HTTPing-3.6/tcp.c:166:45:
note: each undeclared identifier is reported only once for each function
it appears in
make[2]: *** [CMakeFiles/httping.dir/tcp.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_httping/httping/work/HTTPing-3.6/main.c:
In function 'main':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_httping/httping/work/HTTPing-3.6/main.c:1631:27:
warning: unused variable 'recv_tos_len' [-Wunused-variable]
1631 | socklen_t recv_tos_len = sizeof recv_tos;
| ^~~~~~~~~~~~
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_httping/httping/work/HTTPing-3.6/main.c:956:13:
warning: unused variable 'write_sleep' [-Wunused-variable]
956 | int write_sleep = 500; /* in us (microseconds), determines
resolution of transmit time determination */
| ^~~~~~~~~~~
make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_httping/httping/work/build'
make[1]: *** [CMakeFiles/httping.dir/all] Error 2
}}}
P. S. Both gcc-4.2 and gcc13 fails on this spot, so SDK issue.
On buildbots it is broken up to Yosemite:
https://ports.macports.org/port/httping/details
--
Ticket URL: <https://trac.macports.org/ticket/70146>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list