Opened 6 months ago

#70146 new defect

httping build error: tcp.c: error: 'TCP_FASTOPEN' undeclared (first use in this function); did you mean 'TCP_MAXOLEN'?

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: yosemite, mavericks, mountainlion, lion, snowleopard, leopard, tiger Cc:
Port: httping

Description

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
  1. 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

Change History (0)

Note: See TracTickets for help on using tickets.