Opened 5 years ago

Closed 4 years ago

#59355 closed defect (fixed)

haproxy @1.9.6: error: use of undeclared identifier 'CLOCK_MONOTONIC'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: aphor (Jeremy McMillan)
Priority: Normal Milestone:
Component: ports Version: 2.6.1
Keywords: Cc:
Port: haproxy

Description

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.

Change History (2)

comment:1 Changed 4 years ago by herbygillot (Herby Gillot)

In f92c88935e5781f546b6077e796d368d1c4dd056/macports-ports (master):

haproxy: update to 2.2.1

  • remove Makefile patch as change looks to be upstream for this version
  • add variant for building with Lua support
  • add legacysupport portgroup in an attempt to address: #59355

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

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