gpsd-dev
[Top][All Lists]
Advanced

[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: 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

On Fri, Feb 27, 2015 at 3:02 PM, Eric S. Raymond <address@hidden> wrote:
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="" href="http://www.catb.org/~esr/" target="_blank">http://www.catb.org/~esr/">Eric S. Raymond</a>

Confirmed fixed in new clone.  'scons check' is successful.

This version/notice info is in "time.h":

 *      @(#)time.h      8.3 (Berkeley) 1/21/94


There is also an Apple header copyright notice dated 2000.

Just an FYI for future reference - the Apple developer tools are installed with Xcode in the following path:  "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include">

Thanks,
Frank


reply via email to

[Prev in Thread] Current Thread [Next in Thread]