|
From: | Frank Nicholas |
Subject: | Re: [gpsd-dev] 3.13 does not compile on OS X 10.10 |
Date: | Fri, 27 Feb 2015 16:23:27 -0500 |
Frank Nicholas <address@hidden>:
Nope. That's a toolchain bug; clock_gettime should be declared in> git clone git://git.sv.gnu.org/gpsd.git
>
> scons check
>
> .
>
> .
>
> ntpshmread.c:75:5: warning: implicit declaration of function
> 'clock_gettime' is
>
> invalid in C99 [-Wimplicit-function-declaration]
>
> clock_gettime(CLOCK_REALTIME, &shm_stat->tvc);
>
> ^
>
> ntpshmread.c:75:19: error: use of undeclared identifier 'CLOCK_REALTIME'
>
> clock_gettime(CLOCK_REALTIME, &shm_stat->tvc);
>
> ^
>
> 1 warning and 1 error generated.
>
> scons: *** [ntpshmread.os] Error 1
>
> scons: building terminated because of errors.
>
> This is using Apple's developer tools that come with Xcode. This is the
> same toolchain I've always used.
>
> Any other info I can provide?
/usr/incude/time.h but apparently on the Mac it is not. Attempted
fix pushed to repo.
--
<a href="" href="http://www.catb.org/~esr/" target="_blank">http://www.catb.org/~esr/">Eric S. Raymond</a>
* @(#)time.h 8.3 (Berkeley) 1/21/94
[Prev in Thread] | Current Thread | [Next in Thread] |