[MacPorts] #69127: libuv-devel needs clock_gettime

MacPorts noreply at macports.org
Thu Jan 18 12:16:03 UTC 2024


#69127: libuv-devel needs clock_gettime
-------------------------------------------------+-------------------------
 Reporter:  barracuda156                         |      Owner:  (none)
     Type:  defect                               |     Status:  new
 Priority:  Normal                               |  Milestone:
Component:  ports                                |    Version:  2.8.1
 Keywords:  lion, mountainlion, mavericks,       |       Port:  libuv-devel
  yosemite, elcapitan                            |
-------------------------------------------------+-------------------------
 https://build.macports.org/builders/ports-10.11_x86_64-builder/builds/248936/steps
 /install-port/logs/stdio

 {{{
 libtool: compile:  /usr/bin/clang -DPACKAGE_NAME=\"libuv\"
 -DPACKAGE_TARNAME=\"libuv\" -DPACKAGE_VERSION=\"1.47.0\"
 "-DPACKAGE_STRING=\"libuv 1.47.0\""
 -DPACKAGE_BUGREPORT=\"https://github.com/libuv/libuv/issues\"
 -DPACKAGE_URL=\"\" -DPACKAGE=\"libuv\" -DVERSION=\"1.47.0\"
 -DSUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT=1 -DSUPPORT_FLAG_VISIBILITY=1
 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1
 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1
 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1
 -DLT_OBJDIR=\".libs/\" -DHAVE_PTHREAD_PRIO_INHERIT=1 -I. -I./include
 -I./src -I./src/unix -I/opt/local/include -fno-strict-aliasing -g
 -std=gnu89 -Wall -Wextra -Wno-long-long -Wno-unused-parameter -Wstrict-
 prototypes -D_DARWIN_USE_64_BIT_INODE=1 -D_DARWIN_UNLIMITED_SELECT=1 -pipe
 -Os -arch x86_64 -fvisibility=hidden -Qunused-arguments -pthread -MT
 src/unix/libuv_la-async.lo -MD -MP -MF src/unix/.deps/libuv_la-async.Tpo
 -c src/unix/async.c -o src/unix/libuv_la-async.o >/dev/null 2>&1
 src/unix/core.c:124:11: warning: implicit declaration of function
 'clock_gettime' [-Wimplicit-function-declaration]
       r = clock_gettime(CLOCK_MONOTONIC, &t);
           ^
 src/unix/core.c:124:25: error: use of undeclared identifier
 'CLOCK_MONOTONIC'; did you mean 'UV_CLOCK_MONOTONIC'?
       r = clock_gettime(CLOCK_MONOTONIC, &t);
                         ^~~~~~~~~~~~~~~
                         UV_CLOCK_MONOTONIC
 ./include/uv.h:356:3: note: 'UV_CLOCK_MONOTONIC' declared here
   UV_CLOCK_MONOTONIC,
   ^
 src/unix/core.c:127:25: error: use of undeclared identifier
 'CLOCK_REALTIME'; did you mean 'UV_CLOCK_REALTIME'?
       r = clock_gettime(CLOCK_REALTIME, &t);
                         ^~~~~~~~~~~~~~
                         UV_CLOCK_REALTIME
 ./include/uv.h:357:3: note: 'UV_CLOCK_REALTIME' declared here
   UV_CLOCK_REALTIME
   ^
 1 warning and 2 errors generated.
 }}}

 Looks like we need `legacysupport` through Darwin 15.

-- 
Ticket URL: <https://trac.macports.org/ticket/69127>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list