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

MacPorts noreply at macports.org
Sun Oct 1 10:33:20 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):

 Got the same error now with `R-webfakes`:

 {{{
 /opt/local/bin/gcc-mp-12
 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG
 -isystem/opt/local/include/LegacySupport -I/opt/local/include   -DNO_CGI
 -DNO_FILES -DARCH_IS_BIG_ENDIAN=1 -fPIC  -pipe -Os -arch ppc  -c
 civetweb.c -o civetweb.o
 In file included from /usr/include/sys/time.h:197,
                  from /opt/local/include/LegacySupport/sys/time.h:25,
                  from civetweb.c:371:
 /opt/local/include/LegacySupport/time.h:83:27: error: unknown type name
 'clockid_t'; 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:84:27: error: unknown type name
 'clockid_t'; did you mean 'clock_id_t'?
    84 | extern int clock_getres ( clockid_t clk_id, struct timespec *ts );
       |                           ^~~~~~~~~
       |                           clock_id_t
 make: *** [civetweb.o] Error 1
 ERROR: compilation failed for package ‘webfakes’
 }}}

 So looks like this is `legacy-support` fault, not `zmq` (even though `zmq`
 seems to have an unnecessary/harmful chunk of code which triggers the
 error).

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


More information about the macports-tickets mailing list