[MacPorts] #59355: haproxy @1.9.6: error: use of undeclared identifier 'CLOCK_MONOTONIC'

MacPorts noreply at macports.org
Wed Oct 16 20:35:50 UTC 2019


#59355: haproxy @1.9.6: error: use of undeclared identifier 'CLOCK_MONOTONIC'
------------------------+----------------------
 Reporter:  ryandesign  |      Owner:  aphor
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.6.1
 Keywords:              |       Port:  haproxy
------------------------+----------------------
 [https://build.macports.org/builders/ports-10.10_x86_64-builder/builds/99089/steps
 /install-port/logs/stdio haproxy doesn't build on OS X 10.10]:

 {{{
 include/common/time.h:526:2: warning: implicit declaration of function
 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
         clock_gettime(CLOCK_MONOTONIC, &ts);
         ^
 include/common/time.h:526:16: error: use of undeclared identifier
 'CLOCK_MONOTONIC'
         clock_gettime(CLOCK_MONOTONIC, &ts);
                       ^
 include/common/time.h:538:16: error: use of undeclared identifier
 'CLOCK_THREAD_CPUTIME_ID'
         clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts);
                       ^
 }}}

 I believe these features were introduced in macOS 10.12.

 Using the legacysupport portgroup may help, since it provides
 compatibility definitions of these things.

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


More information about the macports-tickets mailing list