[MacPorts] #68213: zmq: error: unknown type name 'clockid_t'; did you mean 'clock_id_t'

MacPorts noreply at macports.org
Thu Sep 21 13:22:03 UTC 2023


#68213: zmq: error: unknown type name 'clockid_t'; did you mean 'clock_id_t'
--------------------------+--------------------
  Reporter:  Schamschula  |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  zmq          |
--------------------------+--------------------

Comment (by barracuda156):

 Same on 10.6.8 Rosetta.
 {{{
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_zmq
 /zmq-devel/work/libzmq-
 8c725093ac4b44a97e6cb64566989ef12b71986c/src/clock.hpp:48,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_zmq
 /zmq-devel/work/libzmq-
 8c725093ac4b44a97e6cb64566989ef12b71986c/src/clock.cpp:31:
 /opt/local/include/LegacySupport/time.h:83:27: error: 'clockid_t' was not
 declared in this scope; did you mean 'clock_id_t'?
    83 | extern int clock_gettime( clockid_t clk_id, struct timespec *ts );
       |                           ^~~~~~~~~
       |                           clock_id_t
 /opt/local/include/LegacySupport/time.h:83:45: error: expected primary-
 expression before 'struct'
    83 | extern int clock_gettime( clockid_t clk_id, struct timespec *ts );
       |                                             ^~~~~~
 /opt/local/include/LegacySupport/time.h:83:65: error: expression list
 treated as compound expression in initializer [-fpermissive]
    83 | extern int clock_gettime( clockid_t clk_id, struct timespec *ts );
       |                                                                 ^
 /opt/local/include/LegacySupport/time.h:84:27: error: 'clockid_t' was not
 declared in this scope; did you mean 'clock_id_t'?
    84 | extern int clock_getres ( clockid_t clk_id, struct timespec *ts );
       |                           ^~~~~~~~~
       |                           clock_id_t
 /opt/local/include/LegacySupport/time.h:84:45: error: expected primary-
 expression before 'struct'
    84 | extern int clock_getres ( clockid_t clk_id, struct timespec *ts );
       |                                             ^~~~~~
 /opt/local/include/LegacySupport/time.h:84:65: error: expression list
 treated as compound expression in initializer [-fpermissive]
    84 | extern int clock_getres ( clockid_t clk_id, struct timespec *ts );
       |                                                                 ^
 cc1plus: note: unrecognized command-line option '-Wno-tautological-
 constant-compare' may have been intended to silence earlier diagnostics
 make[2]: *** [CMakeFiles/objects.dir/src/clock.cpp.o] Error 1
 make[2]: *** Waiting for unfinished jobs....
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/68213#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list