[MacPorts] #65464: gpac 2.0.0: error: use of undeclared identifier 'CLOCK_MONOTONIC'

MacPorts noreply at macports.org
Fri Jul 8 09:15:06 UTC 2022


#65464: gpac 2.0.0: error: use of undeclared identifier 'CLOCK_MONOTONIC'
--------------------------+------------------------
 Reporter:  sambthompson  |      Owner:  mohd-akram
     Type:  defect        |     Status:  assigned
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.7.2
 Keywords:  elcapitan     |       Port:  gpac
--------------------------+------------------------
 gpac fails to build on OS X 10.11:

 {{{
 quickjs/quickjs-libc.c:2058:5: warning: implicit declaration of function
 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
 :info:build     clock_gettime(CLOCK_MONOTONIC, &ts);
 :info:build     ^
 :info:build quickjs/quickjs-libc.c:2058:19: error: use of undeclared
 identifier 'CLOCK_MONOTONIC'
 :info:build     clock_gettime(CLOCK_MONOTONIC, &ts);
 :info:build                   ^
 :info:build 1 warning and 1 error generated.
 }}}

 Presumably affects earlier versions of OS X; per #65124, Ryan Schmidt
 wrote:
 > `clock_gettime` and related identifiers were added in macOS 10.12.
 Consider including the legacy support portgroup which provides an
 implementation of `clock_gettime` for older systems.

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


More information about the macports-tickets mailing list