[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] ✘gpsd is now C99, really.
From: |
Hal Murray |
Subject: |
Re: [gpsd-dev] ✘gpsd is now C99, really. |
Date: |
Tue, 16 Aug 2016 12:44:21 -0700 |
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
--
These are my opinions. I hate spam.
- [gpsd-dev] ✘gpsd is now C99, really., Gary E. Miller, 2016/08/16
- Re: [gpsd-dev] ✘gpsd is now C99, really., Hal Murray, 2016/08/16
- Re: [gpsd-dev] ✘gpsd is now C99, really., Gary E. Miller, 2016/08/16
- Re: [gpsd-dev] ✘gpsd is now C99, really., Hal Murray, 2016/08/16
- Re: [gpsd-dev] ✘gpsd is now C99, really., Gary E. Miller, 2016/08/16
- Re: [gpsd-dev] ✘gpsd is now C99, really., Fred Wright, 2016/08/16
- Re: [gpsd-dev] ✘gpsd is now C99, really., Hal Murray, 2016/08/16
- Re: [gpsd-dev] ✘gpsd is now C99, really., Fred Wright, 2016/08/16
- Re: [gpsd-dev] ✘gpsd is now C99, really., Gary E. Miller, 2016/08/16
Re: [gpsd-dev] ✘gpsd is now C99, really., Jason Azze, 2016/08/16