Bug#1016225: boinc: FTBFS: sched_util.cpp:115:23: error: ‘time’ was not declared in this scope
Lucas Nussbaum
lucas at debian.org
Fri Jul 29 17:20:22 BST 2022
Source: boinc
Version: 7.20.2+dfsg-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220728 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> /bin/bash ../libtool --tag=CXX --mode=compile /usr/bin/g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../api -I../db -I../lib -I../lib/mac -I../sched -I../tools -I../vda -pthread -I/usr/include/mariadb -I/usr/include/mariadb/mysql -pthread -Wdate-time -D_FORTIFY_SOURCE=2 -I.. -I../api -I../db -I../lib -I../lib/mac -I../sched -I../tools -I../vda -pthread -I/usr/include/mariadb -I/usr/include/mariadb/mysql -pthread -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O3 -funroll-loops -fforce-addr -ffast-math -flto -Wall -c -o libsched_la-sched_util.lo `test -f 'sched_util.cpp' || echo './'`sched_util.cpp
> libtool: compile: /usr/bin/g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../api -I../db -I../lib -I../lib/mac -I../sched -I../tools -I../vda -pthread -I/usr/include/mariadb -I/usr/include/mariadb/mysql -pthread -Wdate-time -D_FORTIFY_SOURCE=2 -I.. -I../api -I../db -I../lib -I../lib/mac -I../sched -I../tools -I../vda -pthread -I/usr/include/mariadb -I/usr/include/mariadb/mysql -pthread -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O3 -funroll-loops -fforce-addr -ffast-math -flto -Wall -c sched_util.cpp -fPIC -DPIC -o .libs/libsched_la-sched_util.o
> sched_util.cpp: In function ‘int restrict_wu(WORKUNIT&, DB_ID_TYPE, int)’:
> sched_util.cpp:115:23: error: ‘time’ was not declared in this scope
> 115 | asg.create_time = time(0);
> | ^~~~
> sched_util.cpp:24:1: note: ‘time’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’?
> 23 | #include "sched_util.h"
> +++ |+#include <ctime>
> 24 |
> make[5]: *** [Makefile:1776: libsched_la-sched_util.lo] Error 1
The full build log is available from:
http://qa-logs.debian.net/2022/07/28/boinc_7.20.2+dfsg-1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220728;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220728&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 marking 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.
More information about the pkg-boinc-devel
mailing list