Opened 17 months ago

Last modified 18 hours ago

#52451 new defect

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

Reported by: raimue (Rainer Müller) Owned by: wolf@…
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) 17 months ago.

Download all attachments as: .zip

Change History (3)

Changed 17 months ago by raimue (Rainer Müller)

comment:1 Changed 18 hours 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 18 hours ago by dsedivec

  • Cc dsedivec added
Note: See TracTickets for help on using tickets.