Opened 8 years ago

Closed 7 years ago

#52451 closed defect (fixed)

libfaketime @0.9.5rc3: does not build on macOS 10.12 Sierra

Reported by: raimue (Rainer Müller) Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: sierra Cc: dsedivec
Port: libfaketime

Description

Maybe related to the fact that macOS 10.12 Sierra added support for clock_gettime(3).

/usr/bin/clang -o faketime -arch x86_64 -DFAKE_SLEEP -DPREFIX='"'/opt/local'"' -arch x86_64 faketime.c
libfaketime.c:139:46: error: unknown type name 'clock_serv_t'
static int          (*real_clock_get_time)  (clock_serv_t clock_serv, mach_timespec_t *cur_timeclockid_t);
                                             ^
libfaketime.c:139:71: error: unknown type name 'mach_timespec_t'
static int          (*real_clock_get_time)  (clock_serv_t clock_serv, mach_timespec_t *cur_timeclockid_t);
                                                                      ^
libfaketime.c:141:8: error: unknown type name 'clock_serv_t'
static clock_serv_t clock_serv_real;
       ^
...

Full log attached.

Attachments (1)

main.log (13.2 KB) - added by raimue (Rainer Müller) 8 years ago.

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by raimue (Rainer Müller)

Attachment: main.log added

comment:1 Changed 7 years ago by dsedivec

I have a feeling that the latest version, 0.9.7, fixes this: https://github.com/wolfcw/libfaketime/issues/99

comment:2 Changed 7 years ago by dsedivec

Cc: dsedivec added

comment:3 Changed 7 years ago by kurthindenburg (Kurt Hindenburg)

Owner: wolf@… deleted
Status: newassigned

comment:4 Changed 7 years ago by raimue (Rainer Müller)

Owner: set to raimue
Resolution: fixed
Status: assignedclosed

In 60398ebb760a23e24c76ed1134c3ea643c4be2a6/macports-ports:

libfaketime: Update to version 0.9.7

Remove patch applied upstream.
Add note about limitations on macOS with SIP enabled.

Closes: #52451

Note: See TracTickets for help on using tickets.