Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 851603 - x11-wm/blackbox-0.77 - Toolbar.cc: error: time was not declared in this scope
Summary: x11-wm/blackbox-0.77 - Toolbar.cc: error: time was not declared in this scope
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ben Kohler
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-12
  Show dependency tree
 
Reported: 2022-06-12 19:31 UTC by Toralf Förster
Modified: 2022-06-12 19:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.90 KB, text/plain)
2022-06-12 19:32 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,88.58 KB, text/plain)
2022-06-12 19:32 UTC, Toralf Förster
Details
environment (environment,71.49 KB, text/plain)
2022-06-12 19:32 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,32.22 KB, application/x-bzip)
2022-06-12 19:32 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,12.17 KB, application/x-bzip)
2022-06-12 19:32 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,26.63 KB, application/x-bzip)
2022-06-12 19:32 UTC, Toralf Förster
Details
x11-wm:blackbox-0.77:20220612-181519.log (x11-wm:blackbox-0.77:20220612-181519.log,43.13 KB, text/plain)
2022-06-12 19:32 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-06-12 19:31:59 UTC
too long lines were shrinked:

x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..  -include config.h -I..   -I/usr/include/freetype2  -DLOCDIR=\"/usr/share/locale\" -DDEFAULTMENU=\"/usr/share/blackbox/menu\" -DDEFAULTSTYLE=\"/usr/share/blackbox/styles/Gray\" -I../lib   -pipe -march=native -fno-diagnostics-color -O2 -c -o Toolbar.o 
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..  -include config.h -I..   -I/usr/include/freetype2  -DLOCDIR=\"/usr/share/locale\" -DDEFAULTMENU=\"/usr/share/blackbox/menu\" -DDEFAULTSTYLE=\"/usr/share/blackbox/styles/Gray\" -I../lib   -pipe -march=native -fno-diagnostics-color -O2 -c -o Toolbarmen
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..  -include config.h -I..   -I/usr/include/freetype2  -DLOCDIR=\"/usr/share/locale\" -DDEFAULTMENU=\"/usr/share/blackbox/menu\" -DDEFAULTSTYLE=\"/usr/share/blackbox/styles/Gray\" -I../lib   -pipe -march=native -fno-diagnostics-color -O2 -c -o Window.o W
Toolbar.cc: In member function void Toolbar::reconfigure()’:
Toolbar.cc:260:17: error: time’ was not declared in this scope; did you mean Time’?
  260 |   time_t ttmp = time(NULL);
      |                 ^~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-j4-20220611-210005

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.1.1 *
clang/llvm (if any):
/usr/lib/llvm/14
14.0.5
Python 3.9.13
Available Rust versions:
  [1]   rust-1.61.0 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:
  [1]   php8.1 *

  HEAD of ::gentoo
commit 185dabb7b94383f5825cafc10666bb6912b0ad0e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Jun 12 16:48:02 2022 +0000

    2022-06-12 16:48:01 UTC

emerge -qpvO x11-wm/blackbox
[ebuild  N    ] x11-wm/blackbox-0.77  USE="nls truetype -debug -static-libs"
Comment 1 Toralf Förster gentoo-dev 2022-06-12 19:32:00 UTC
Created attachment 784403 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-06-12 19:32:01 UTC
Created attachment 784406 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-06-12 19:32:03 UTC
Created attachment 784409 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-06-12 19:32:04 UTC
Created attachment 784412 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-06-12 19:32:05 UTC
Created attachment 784415 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-06-12 19:32:07 UTC
Created attachment 784418 [details]
temp.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-06-12 19:32:08 UTC
Created attachment 784421 [details]
x11-wm:blackbox-0.77:20220612-181519.log
Comment 8 Larry the Git Cow gentoo-dev 2022-06-12 19:51:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9a0fbedd1906e5ef876e7c90cab82cc63d07221

commit c9a0fbedd1906e5ef876e7c90cab82cc63d07221
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-12 19:50:58 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-12 19:51:01 +0000

    x11-wm/blackbox: fix build with GCC 12
    
    Closes: https://bugs.gentoo.org/851603
    Signed-off-by: Sam James <sam@gentoo.org>

 x11-wm/blackbox/blackbox-0.77.ebuild               |  4 +++
 .../blackbox/files/blackbox-0.77-gcc12-time.patch  | 35 ++++++++++++++++++++++
 2 files changed, 39 insertions(+)