[MacPorts] #57531: root6: error: use of undeclared identifier 'CLOCK_REALTIME'

MacPorts noreply at macports.org
Tue Nov 6 21:09:27 UTC 2018


#57531: root6: error: use of undeclared identifier 'CLOCK_REALTIME'
------------------------+--------------------------
 Reporter:  ryandesign  |      Owner:  cjones051073
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:
 Keywords:              |       Port:  root6
------------------------+--------------------------
 [https://build.macports.org/builders/ports-10.11_x86_64-builder/builds/70794/steps
 /install-port/logs/stdio root6 fails to build on OS X 10.11 and earlier]:

 {{{
 In file included from
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_root6/root6/work/root-6-14-06/proof/proofd/src/XrdProofConn.cxx:32:
 In file included from
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_root6/root6/work/root-6-14-06/proof/proofd/inc/XpdSysPthread.h:11:
 /opt/local/include/xrootd/XrdSys/XrdSysPthread.hh:152:17: error: use of
 undeclared identifier 'CLOCK_REALTIME'
   clock_gettime(CLOCK_REALTIME, &wait);
                 ^
 /opt/local/include/xrootd/XrdSys/XrdSysPthread.hh:160:20: error: use of
 undeclared identifier 'CLOCK_REALTIME'
     clock_gettime( CLOCK_REALTIME, &cur );
                    ^
 }}}

 `CLOCK_REALTIME` was newly added to macOS in 10.12.

 Maybe the legacy_support portgroup provides a compatibility implementation
 of this. But you should also inform the developers so that they can add
 their own compatibility implementation.

-- 
Ticket URL: <https://trac.macports.org/ticket/57531>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list