Opened 2 years ago
Closed 2 months ago
#67888 closed defect (fixed)
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 (4)
comment:1 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
comment:2 Changed 2 years 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 2 years ago by ryandesign (Ryan Carsten Schmidt)
comment:4 Changed 2 months ago by aeiouaeiouaeiouaeiouaeiouaeiou
| Resolution: | → fixed |
|---|---|
| Status: | reopened → closed |
Note: See
TracTickets for help on using
tickets.

In 822c4f24f7678749d5fd2bc6f39ddc06ab992352/macports-ports (master):