pngphoon: FTBFS on arm{el,hf}: tws.c:40:13: error: conflicting types for ‘time’; have ‘long int()’

Bug #2059140 reported by Nick Rosbrook
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pngphoon (Debian)
New
Unknown
pngphoon (Ubuntu)
Won't Fix
High
Nick Rosbrook

Bug Description

Imported from Debian bug http://bugs.debian.org/1065972:

Source: pngphoon
Version: 1.3-3
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: <email address hidden>

https://buildd.debian.org/status/fetch.php?pkg=pngphoon&arch=armhf&ver=1.3-3%2Bb1&stamp=1709981075&raw=0

tws.c:40:13: error: conflicting types for ‘time’; have ‘long int()’
   40 | extern long time();
      | ^~~~
In file included from /usr/include/features.h:490,
                 from /usr/include/arm-linux-gnueabihf/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from tws.c:29:
/usr/include/time.h:86:15: note: previous declaration of ‘time’ with type ‘time_t(time_t *)’ {aka ‘long long int(long long int *)’}
   86 | extern time_t __REDIRECT_NTH (time, (time_t *__timer), __time64);
      | ^~~~~~~~~~~~~~
tws.c: In function ‘dlocaltime’:
tws.c:72:20: warning: passing argument 1 of ‘localtime’ from incompatible pointer type [-Wincompatible-pointer-types]
   72 | tm = localtime( clock );
      | ^~~~~
      | |
      | long int *
/usr/include/time.h:141:19: note: expected ‘const time_t *’ {aka ‘const long long int *’} but argument is of type ‘long int *’
  141 | extern struct tm *__REDIRECT_NTH (localtime, (const time_t *__timer),
      | ^~~~~~~~~~~~~~
make[1]: *** [Makefile:12: tws.o] Error 1

Cheers
--
Sebastian Ramacher

Nick Rosbrook (enr0n)
tags: added: update-excuse
Changed in pngphoon (Ubuntu):
status: New → In Progress
assignee: nobody → Nick Rosbrook (enr0n)
Nick Rosbrook (enr0n)
Changed in pngphoon (Ubuntu):
importance: Undecided → High
Revision history for this message
Nick Rosbrook (enr0n) wrote :

This package has been removed from the archive, but I have a patch that I can forward to Debian.

tags: added: time-t
Changed in pngphoon (Ubuntu):
status: In Progress → Won't Fix
Changed in pngphoon (Debian):
importance: Undecided → Unknown
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.