[MacPorts] #64597: libusb @ 1.0.25: error: use of undeclared identifier 'CLOCK_MONOTONIC'; error: 'TARGET_OS_OSX' is not defined, evaluates to 0; 'clock_gettime' is invalid in C99
MacPorts
noreply at macports.org
Thu Feb 3 06:15:34 UTC 2022
#64597: libusb @ 1.0.25: error: use of undeclared identifier 'CLOCK_MONOTONIC';
error: 'TARGET_OS_OSX' is not defined, evaluates to 0; 'clock_gettime' is
invalid in C99
---------------------------------+-----------------------
Reporter: thetrial | Owner: michaelld
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Keywords: elcapitan legacy-os | Port: libusb
---------------------------------+-----------------------
Something goes wrong. Happened on two machines with El Capitan.
{{{
:info:build os/darwin_usb.c:1804:3: error: implicit declaration of
function 'clock_gettime' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
:info:build clock_gettime(CLOCK_MONOTONIC, &start);
:info:build ^
:info:build os/darwin_usb.c:1804:3: note: did you mean 'clock_get_time'?
:info:build /usr/include/mach/clock.h:52:15: note: 'clock_get_time'
declared here
:info:build kern_return_t clock_get_time
:info:build ^
:info:build os/darwin_usb.c:1804:17: error: use of undeclared identifier
'CLOCK_MONOTONIC'
:info:build clock_gettime(CLOCK_MONOTONIC, &start);
:info:build ^
:info:build os/darwin_usb.c:1811:19: error: use of undeclared identifier
'CLOCK_MONOTONIC'
:info:build clock_gettime(CLOCK_MONOTONIC, &now);
:info:build ^
:info:build os/darwin_usb.c:2420:5: error: 'TARGET_OS_OSX' is not defined,
evaluates to 0 [-Werror,-Wundef]
:info:build #if TARGET_OS_OSX
:info:build ^
:info:build 4 errors generated.
}}}
--
Ticket URL: <https://trac.macports.org/ticket/64597>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list