Opened 6 months ago
Closed 6 months ago
#73857 closed defect (fixed)
libfyaml @0.9.6: needs clock_gettime and MAP_ANONYMOUS
| Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | brunvonlope (Bruno) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.12.4 |
| Keywords: | leopard snowleopard lion mountainlion mavericks yosemite elcapitan | Cc: | brunvonlope (Bruno) |
| Port: | libfyaml |
Description
/opt/local/var/macports/build/libfyaml-12e0b87e/work/libfyaml-0.9.6/src/internal/fy-thread.c:196:2: error: call to undeclared function 'clock_gettime'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
clock_gettime(CLOCK_MONOTONIC, &s->execute);
^
/opt/local/var/macports/build/libfyaml-12e0b87e/work/libfyaml-0.9.6/src/internal/fy-thread.c:196:16: error: use of undeclared identifier 'CLOCK_MONOTONIC'
clock_gettime(CLOCK_MONOTONIC, &s->execute);
^
/opt/local/var/macports/build/libfyaml-12e0b87e/work/libfyaml-0.9.6/src/allocator/fy-allocator-mremap.c:122:68: error: use of undeclared identifier 'MAP_ANONYMOUS'
mem = mmap(NULL, balloon_size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
^
/opt/local/var/macports/build/libfyaml-12e0b87e/work/libfyaml-0.9.6/src/allocator/fy-allocator-mremap.c:125:73: error: use of undeclared identifier 'MAP_ANONYMOUS'
mran = mmap(NULL, size_page_align, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
^
/opt/local/var/macports/build/libfyaml-12e0b87e/work/libfyaml-0.9.6/src/allocator/fy-allocator-mremap.c:235:87: error: use of undeclared identifier 'MAP_ANONYMOUS'
mem = mmap((char *)mran + mran->size, mran->size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
^
3 errors generated.
The legacysupport portgroup can help with both.
Change History (3)
comment:1 Changed 6 months ago by brunvonlope (Bruno)
| Cc: | brunvonlope added |
|---|
comment:2 Changed 6 months ago by brunvonlope (Bruno)
comment:3 Changed 6 months ago by brunvonlope (Bruno)
| Owner: | set to brunvonlope |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |
Note: See
TracTickets for help on using
tickets.

https://github.com/macports/macports-ports/pull/32245 should take care of the build failures