Bug#1069435: olpc-powerd: FTBFS on armhf: olpc-switchd.c:311:14: error: ‘struct input_event’ has no member named ‘time’
Source: olpc-powerd
Version: 23-4
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas@debian.org
Usertags: ftbfs-20240420 ftbfs-trixie ftbfs-t64-armhf
Hi,
During a rebuild of all packages in sid, your package failed to build
on armhf.
Relevant part (hopefully):
> cc -Wall -O2 -g -DVERSION=23 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro pnmto565fb.c -o pnmto565fb
> pnmto565fb.c: In function ‘showimage’:
> pnmto565fb.c:374:5: warning: implicit declaration of function ‘readahead’ [-Wimplicit-function-declaration]
> 374 | readahead(fd, 0, sb.st_size);
> | ^~~~~~~~~
> olpc-switchd.c: In function ‘round_secs’:
> olpc-switchd.c:311:14: error: ‘struct input_event’ has no member named ‘time’
> 311 | return ev->time.tv_sec + ((ev->time.tv_usec > 500000) ? 1 : 0);
> | ^~
> olpc-switchd.c:311:34: error: ‘struct input_event’ has no member named ‘time’
> 311 | return ev->time.tv_sec + ((ev->time.tv_usec > 500000) ? 1 : 0);
> | ^~
> olpc-switchd.c: In function ‘power_button_event’:
> olpc-switchd.c:323:11: error: ‘struct input_event’ has no member named ‘time’
> 323 | ev->time.tv_sec, ev->time.tv_usec,
> | ^~
> olpc-switchd.c:323:28: error: ‘struct input_event’ has no member named ‘time’
> 323 | ev->time.tv_sec, ev->time.tv_usec,
> | ^~
> pnmto565fb.c:312:25: warning: variable ‘rightfillcols’ set but not used [-Wunused-but-set-variable]
> 312 | int bottomfillrows, rightfillcols;
> | ^~~~~~~~~~~~~
> olpc-switchd.c: In function ‘lid_event’:
> olpc-switchd.c:339:11: error: ‘struct input_event’ has no member named ‘time’
> 339 | ev->time.tv_sec, ev->time.tv_usec,
> | ^~
> olpc-switchd.c:339:28: error: ‘struct input_event’ has no member named ‘time’
> 339 | ev->time.tv_sec, ev->time.tv_usec,
> | ^~
> olpc-switchd.c: In function ‘ebook_event’:
> olpc-switchd.c:359:11: error: ‘struct input_event’ has no member named ‘time’
> 359 | ev->time.tv_sec, ev->time.tv_usec,
> | ^~
> olpc-switchd.c:359:28: error: ‘struct input_event’ has no member named ‘time’
> 359 | ev->time.tv_sec, ev->time.tv_usec,
> | ^~
> olpc-switchd.c: In function ‘acpwr_event’:
> olpc-switchd.c:379:11: error: ‘struct input_event’ has no member named ‘time’
> 379 | ev->time.tv_sec, ev->time.tv_usec,
> | ^~
> olpc-switchd.c:379:28: error: ‘struct input_event’ has no member named ‘time’
> 379 | ev->time.tv_sec, ev->time.tv_usec,
> | ^~
> olpc-switchd.c: In function ‘round_secs’:
> olpc-switchd.c:312:1: warning: control reaches end of non-void function [-Wreturn-type]
> 312 | }
> | ^
> make[1]: *** [<builtin>: olpc-switchd] Error 1
The full build log is available from:
http://qa-logs.debian.net/2024/04/20/olpc-powerd_23-4_unstable-armhf.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240420;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240420&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
Reply to: