Opened 5 years ago

Closed 5 years ago

#57531 closed defect (fixed)

root6: error: use of undeclared identifier 'CLOCK_REALTIME'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: cjones051073 (Chris Jones)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: mojca (Mojca Miklavec)
Port: root6

Description

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.

Change History (2)

comment:1 Changed 5 years ago by cjones051073 (Chris Jones)

The developers already know (its coming from xrootd).

xrootd already uses the legacy PortGroup. I did not realise though ports building against xrootd would also need it. I've already pushed the fix.

comment:2 Changed 5 years ago by cjones051073 (Chris Jones)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.