gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] ✘gpsd is now C99, really.


From: Gary E. Miller
Subject: Re: [gpsd-dev] ✘gpsd is now C99, really.
Date: Tue, 16 Aug 2016 12:50:14 -0700

Yo Hal!

Yeah, I also see those on 32 bit Gentoo RasPi.  Patch coming.

It seems like once you start to specify standards define's you gotta
specify them all.

On Tue, 16 Aug 2016 12:44:21 -0700
Hal Murray <address@hidden> wrote:

> On Raspbian:
> 
> ./libgpsd.a(libgpsd_core.o): In function `gpsd_poll':
> libgpsd_core.c:(.text+0x2200): undefined reference to `isfinite'
> libgpsd_core.c:(.text+0x2220): undefined reference to `isfinite'
> libgpsd_core.c:(.text+0x223c): undefined reference to `isfinite'
> libgpsd_core.c:(.text+0x2290): undefined reference to `isfinite'
> collect2: error: ld returned 1 exit status
> scons: *** [gpsd] Error 1
> 
> libgpsd_core.c: In function 'gpsd_error_model':
> libgpsd_core.c:933:2: warning: implicit declaration of function
> 'isfinite' [-Wimplicit-function-declaration]
>   if (isnan(fix->epx) != 0 && isfinite(session->gpsdata.dop.hdop) !=
> 0) ^
> libgpsd_core.c: In function 'gpsd_await_data':
> libgpsd_core.c:1036:5: warning: implicit declaration of function
> 'pselect' [-Wimplicit-function-declaration]
>      status = pselect(maxfd + 1, rfds, NULL, NULL, NULL, NULL);
>      ^
> man page says:
>        fpclassify(), isfinite(), isnormal():
>            _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE ||
>            _POSIX_C_SOURCE >= 200112L;
>            or cc -std=c99
> 
> --------
> 
> On Fedora 24:
> 
> libgpsd_core.c: In function 'gpsd_await_data':
> libgpsd_core.c:1036:14: warning: implicit declaration of function
> 'pselect' [-Wimplicit-function-declaration]
>      status = pselect(maxfd + 1, rfds, NULL, NULL, NULL, NULL);
> 
> Man page says:
>        pselect(): _POSIX_C_SOURCE >= 200112L
> 
> 




RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        address@hidden  Tel:+1 541 382 8588

Attachment: pgpEwXhgG43nc.pgp
Description: OpenPGP digital signature


reply via email to

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