[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1016273: blackbox: FTBFS: Toolbar.cc:260:17: error: ‘time’ was not declared in this scope



Source: blackbox
Version: 0.70.1-38
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas@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):
> g++ -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -DSHAPE -DXFT  -DNLS -DLOCALEPATH=\"/usr/share/blackbox/nls\" -DDEFAULTMENU=\"/etc/X11/blackbox/blackbox-menu\" -DDEFAULTSTYLE=\"/usr/share/blackbox/styles/Gray\" -I../lib  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -c -o Toolbar.o Toolbar.cc
> Toolbar.cc: In member function ‘void Toolbar::reconfigure()’:
> Toolbar.cc:260:17: error: ‘time’ was not declared in this scope
>   260 |   time_t ttmp = time(NULL);
>       |                 ^~~~
> Toolbar.cc:41:1: note: ‘time’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’?
>    40 | #include <assert.h>
>   +++ |+#include <ctime>
>    41 | 
> Toolbar.cc:265:21: error: ‘localtime’ was not declared in this scope
>   265 |     struct tm *tt = localtime(&ttmp);
>       |                     ^~~~~~~~~
> Toolbar.cc:265:21: note: ‘localtime’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’?
> Toolbar.cc:268:17: error: ‘strftime’ was not declared in this scope
>   268 |       int len = strftime(t, 1024, options.strftime_format.c_str(), tt);
>       |                 ^~~~~~~~
> Toolbar.cc:268:17: note: ‘strftime’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’?
> Toolbar.cc: In member function ‘void Toolbar::redrawClockLabel()’:
> Toolbar.cc:458:14: error: ‘time’ was not declared in this scope
>   458 |   if ((tmp = time(NULL)) == -1)
>       |              ^~~~
> Toolbar.cc:458:14: note: ‘time’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’?
> Toolbar.cc:460:8: error: ‘localtime’ was not declared in this scope
>   460 |   tt = localtime(&tmp);
>       |        ^~~~~~~~~
> Toolbar.cc:460:8: note: ‘localtime’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’?
> Toolbar.cc:463:9: error: ‘strftime’ was not declared in this scope
>   463 |   if (! strftime(str, sizeof(str), options.strftime_format.c_str(), tt))
>       |         ^~~~~~~~
> Toolbar.cc:463:9: note: ‘strftime’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’?
> make[4]: *** [Makefile:504: Toolbar.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2022/07/28/blackbox_0.70.1-38_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.


Reply to: