Hello,
Martin-Éric Racine, le ven. 27 mars 2026 22:01:24 +0200, a ecrit:
> Tracker log suggests that this is caused by an implicit definition of
> strptime in gpsd-3.27.5/libgps/gpsutils.c,
It would have been useful to copy/paste the log
gpsd-3.27.5/libgps/gpsutils.c: In function ‘iso8601_to_timespec’:
gpsd-3.27.5/libgps/gpsutils.c:892:14: error: implicit declaration of function
‘strptime’; did you mean ‘strftime’? [-Wimplicit-function-declaration]
892 | dp = strptime(isotime, "%Y-%m-%dT%H:%M:%S", &tm);
| ^~~~~~~~
| strftime
> The source code however includes this comment:
>
> /* The strptime prototype is not provided unless explicitly requested.
> * We also need to set the value high enough to signal inclusion of
> * newer features (like clock_gettime). See the POSIX spec for more info:
> *
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_02_01_02
> */
>
> Are we supposed to explicitly enable this just for Hurd? How?
See man feature_test_macros and gpsd/SConscript's definitions of
_XOPEN_SOURCE etc. Apparently gpsd defines "only" what is seemingly
needed, instead of just defining what is standard. Since it's the same
glibc as linux, you can probably just add the hurd case along the linux
case.
Samuel