Opened 16 months ago
Last modified 16 months ago
#67888 reopened defect
blink @1.0.0: error: implicit declaration of function 'clock_gettime' is invalid in C99
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | herbygillot (Herby Gillot) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | elcapitan | Cc: | |
Port: | blink |
Description
On El Capitan and earlier:
./blink/timespec.h:11:13: error: implicit declaration of function 'clock_gettime' is invalid in C99 [-Werror,-Wimplicit-function-declaration] unassert(!clock_gettime(CLOCK_REALTIME, &ts)); ^
legacysupport should help.
Change History (3)
comment:1 Changed 16 months ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:2 Changed 16 months ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Unfortunately the build still fails, now with:
blink/xlat.c:762:48: error: use of undeclared identifier 'CLOCK_PROCESS_CPUTIME_ID' CASE(CLOCK_PROCESS_CPUTIME_ID_LINUX, res = CLOCK_PROCESS_CPUTIME_ID); ^ blink/xlat.c:763:47: error: use of undeclared identifier 'CLOCK_THREAD_CPUTIME_ID' CASE(CLOCK_THREAD_CPUTIME_ID_LINUX, res = CLOCK_THREAD_CPUTIME_ID); ^ 2 errors generated.
See https://github.com/macports/macports-legacy-support/pull/58 which attempted to add support for those.
comment:3 Changed 16 months ago by ryandesign (Ryan Carsten Schmidt)
Note: See
TracTickets for help on using
tickets.
In 822c4f24f7678749d5fd2bc6f39ddc06ab992352/macports-ports (master):