Project

General

Profile

Bug #406

alfred-gpsd: Fails to build with libgps 3.20(-3)

Added by Sven Eckelmann 3 months ago. Updated 28 days ago.

Status:
Closed
Priority:
Normal
Assignee:
batman-adv developers
Target version:
Start date:
01/15/2020
Due date:
% Done:

100%

Estimated time:

Description

Just got following FTBFS error report from Debian (sid):

ake[3]: Entering directory '/<<PKGBUILDDIR>>/gpsd'
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -D_FILE_OFFSET_BITS=64 -pedantic -Wall -W -std=gnu99 -fno-strict-aliasing -MD -MP -I/usr/include/libnl3 -I/usr/include/libnl3  -pedantic -Wall -W -std=gnu99 -fno-strict-aliasing -MD -MP  -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DCONFIG_ALFRED_CAPABILITIES -D_GNU_SOURCE  -c -o alfred-gpsd.o alfred-gpsd.c
alfred-gpsd.c: In function ‘gpsd_get_location’:
alfred-gpsd.c:85:3: error: unknown type name ‘timestamp_t’
   85 |   timestamp_t now = timestamp();
      |   ^~~~~~~~~~~
alfred-gpsd.c:85:21: warning: implicit declaration of function ‘timestamp’; did you mean ‘timercmp’? [-Wimplicit-function-declaration]
   85 |   timestamp_t now = timestamp();
      |                     ^~~~~~~~~
      |                     timercmp
alfred-gpsd.c:92:4: warning: implicit declaration of function ‘unix_to_iso8601’; did you mean ‘now_to_iso8601’? [-Wimplicit-function-declaration]
   92 |    unix_to_iso8601(now, tbuf, sizeof(tbuf)),
      |    ^~~~~~~~~~~~~~~
      |    now_to_iso8601
alfred-gpsd.c:88:4: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Wformat=]
   88 |    "{\"class\":\"TPV\",\"device\":\"command line\"," 
      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
   92 |    unix_to_iso8601(now, tbuf, sizeof(tbuf)),
      |    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |    |
      |    int
alfred-gpsd.c:89:17: note: format string is defined here
   89 |    "\"time\":\"%s\"," 
      |                ~^
      |                 |
      |                 char *
      |                %d

History

#1

Updated by Sven Eckelmann 3 months ago

  • % Done changed from 0 to 100
  • Target version set to 2020.0
  • Status changed from New to Resolved
#2

Updated by Sven Eckelmann 28 days ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF