Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 851666 - net-libs/libnipper-0.12.6-r1 - /.../report-text.cpp: error: time was not declared in this scope
Summary: net-libs/libnipper-0.12.6-r1 - /.../report-text.cpp: error: time was not decl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-12
  Show dependency tree
 
Reported: 2022-06-13 07:15 UTC by Toralf Förster
Modified: 2022-06-13 12:10 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,18.32 KB, text/plain)
2022-06-13 07:15 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,191.78 KB, text/plain)
2022-06-13 07:15 UTC, Toralf Förster
Details
environment (environment,94.00 KB, text/plain)
2022-06-13 07:15 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,26.04 KB, application/x-bzip)
2022-06-13 07:15 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,3.98 KB, application/x-bzip)
2022-06-13 07:15 UTC, Toralf Förster
Details
net-libs:libnipper-0.12.6-r1:20220612-214650.log (net-libs:libnipper-0.12.6-r1:20220612-214650.log,15.76 KB, text/plain)
2022-06-13 07:15 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,24.83 KB, application/x-bzip)
2022-06-13 07:15 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-13 07:15:20 UTC
too long lines were shrinked:

[14/176] /usr/bin/x86_64-pc-linux-gnu-g++ -Dnipper_EXPORTS   -pipe -march=native -fno-diagnostics-color -O2 -falign-functions=32:25:16 -fPIC   -O2 -MD -MT CMakeFiles/nipper.dir/report/report-text.o -MF CMakeFiles/nipper.dir/report/report-text.o.d -o CMakeFiles/nipper.dir/report/report-text.o -c /var
FAILED: CMakeFiles/nipper.dir/report/report-text.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -Dnipper_EXPORTS   -pipe -march=native -fno-diagnostics-color -O2 -falign-functions=32:25:16 -fPIC   -O2 -MD -MT CMakeFiles/nipper.dir/report/report-text.o -MF CMakeFiles/nipper.dir/report/report-text.o.d -o CMakeFiles/nipper.dir/report/report-text.o -c /var/tmp/port
/var/tmp/portage/net-libs/libnipper-0.12.6-r1/work/libnipper-0.12.6/report/report-text.cpp: In member function int Report::writeText(const char*, Device::paragraphStruct*, bool, bool)’:
/var/tmp/portage/net-libs/libnipper-0.12.6-r1/work/libnipper-0.12.6/report/report-text.cpp:237:36: error: time’ was not declared in this scope; did you mean tm’?
  237 |                         tempTime = time(NULL);
      |                                    ^~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-j4-20220610-230005

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.1.1 *
clang/llvm (if any):
clang version 14.0.5
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/14/bin
/usr/lib/llvm/14
14.0.5
Python 3.9.13
Available Rust versions:
  [1]   rust-1.61.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.3_p7 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.332_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:
  [1]   php8.1 *

  HEAD of ::gentoo
commit 1ca7ee743d3b2f927d5cfbc3e06fe6d02318fdfd
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Jun 12 20:47:59 2022 +0000

    2022-06-12 20:47:59 UTC

emerge -qpvO net-libs/libnipper
[ebuild  N    ] net-libs/libnipper-0.12.6-r1
Comment 1 Toralf Förster gentoo-dev 2022-06-13 07:15:21 UTC
Created attachment 784523 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-06-13 07:15:23 UTC
Created attachment 784526 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-06-13 07:15:24 UTC
Created attachment 784529 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-06-13 07:15:25 UTC
Created attachment 784532 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-06-13 07:15:26 UTC
Created attachment 784535 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-06-13 07:15:27 UTC
Created attachment 784538 [details]
net-libs:libnipper-0.12.6-r1:20220612-214650.log
Comment 7 Toralf Förster gentoo-dev 2022-06-13 07:15:28 UTC
Created attachment 784541 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2022-06-13 12:10:23 UTC
The bug has been closed via the following commit(s):

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

commit bab011b72162d5f0a2dc3b36d1cf6d420cd43e10
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-13 11:59:28 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-13 12:10:16 +0000

    net-libs/libnipper: fix build with GCC 12; fix -Werror=format-security
    
    Closes: https://bugs.gentoo.org/851666
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/libnipper-0.12.6-gcc12-time.patch        | 11 +++++++++++
 .../files/libnipper-0.12.6-wformat-security.patch  | 11 +++++++++++
 net-libs/libnipper/libnipper-0.12.6-r2.ebuild      | 22 ++++++++++++++++++++++
 3 files changed, 44 insertions(+)