Bug#949008: alfred ftbfs unknown type name ‘timestamp_t’

2020-01-16 Thread Sven Eckelmann
Control: tags -1 + patch

On Wed, 15 Jan 2020 22:40:01 + peter green  wrote:
> alfred failed to build when binnmu'd for the libgps transition.
> 
> > alfred-gpsd.c:85:3: error: unknown type name ‘timestamp_t’
[...]
> > make[3]: *** [Makefile:87: alfred-gpsd.o] Error 1

Patch for this can be found at 
https://patchwork.open-mesh.org/patch/18070/

Kind regards,
Sven

signature.asc
Description: This is a digitally signed message part.


Bug#949008: alfred ftbfs unknown type name ‘timestamp_t’

2020-01-15 Thread peter green

package: alfred
version: 2018.2.1
severity: serious

alfred failed to build when binnmu'd for the libgps transition.


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
make[3]: *** [Makefile:87: alfred-gpsd.o] Error 1