[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] 3.13 does not compile on OS X 10.10
From: |
Eric S. Raymond |
Subject: |
Re: [gpsd-dev] 3.13 does not compile on OS X 10.10 |
Date: |
Fri, 27 Feb 2015 15:02:33 -0500 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
Frank Nicholas <address@hidden>:
> 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?
Nope. That's a toolchain bug; clock_gettime should be declared in
/usr/incude/time.h but apparently on the Mac it is not. Attempted
fix pushed to repo.
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>