Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 852182 - net-libs/gloox-1.0.24 - tag_perf.cpp: error: time was not declared in this scope
Summary: net-libs/gloox-1.0.24 - tag_perf.cpp: 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: 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-15 15:51 UTC by Toralf Förster
Modified: 2022-06-15 21:43 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.64 KB, text/plain)
2022-06-15 15:51 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,77.56 KB, text/plain)
2022-06-15 15:51 UTC, Toralf Förster
Details
environment (environment,71.83 KB, text/plain)
2022-06-15 15:51 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,20.12 KB, application/x-bzip)
2022-06-15 15:51 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,9.33 KB, application/x-bzip)
2022-06-15 15:51 UTC, Toralf Förster
Details
net-libs:gloox-1.0.24:20220615-112610.log.bz2 (net-libs:gloox-1.0.24:20220615-112610.log.bz2,15.02 KB, application/x-bzip)
2022-06-15 15:51 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,35.47 KB, application/x-bzip)
2022-06-15 15:51 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-15 15:51:48 UTC
tag_perf.cpp:35:23: warning: conversion from __suseconds_t’ {aka long int’} to double’ may change value [-Wconversion]
   35 |   t +=  ( tv2.tv_usec - tv1.tv_usec ) / divider;
      |         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
tag_perf.cpp: In function void randomize(int)’:
tag_perf.cpp:70:10: error: time’ was not declared in this scope
   70 |   srand( time( 0 ) );
      |          ^~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-j4_test-20220614-140043

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

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 Ruby profiles:
  (none found)
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]
Available Java Virtual Machines:
  [1]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:
  (none found)

  HEAD of ::gentoo
commit 4e3be6aa9b6a348f331cf7ec198e8b93590fb1f3
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Jun 15 10:18:17 2022 +0000

    2022-06-15 10:18:16 UTC

emerge -qpvO net-libs/gloox
[ebuild  N    ] net-libs/gloox-1.0.24  USE="ssl test zlib -debug -gnutls -idn -static-libs"
Comment 1 Toralf Förster gentoo-dev 2022-06-15 15:51:49 UTC
Created attachment 785480 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-06-15 15:51:51 UTC
Created attachment 785483 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-06-15 15:51:53 UTC
Created attachment 785486 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-06-15 15:51:54 UTC
Created attachment 785489 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-06-15 15:51:55 UTC
Created attachment 785492 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-06-15 15:51:56 UTC
Created attachment 785495 [details]
net-libs:gloox-1.0.24:20220615-112610.log.bz2
Comment 7 Toralf Förster gentoo-dev 2022-06-15 15:51:57 UTC
Created attachment 785498 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2022-06-15 21:39:34 UTC
The bug has been closed via the following commit(s):

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

commit fbc8b09098da7aee25c2b242a863f08596f61383
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-15 21:39:19 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-15 21:39:19 +0000

    net-libs/gloox: fix build with GCC 12; fix bashism
    
    Closes: https://bugs.gentoo.org/852182
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/gloox-1.0.24-bashism-configure.patch     | 11 ++++
 .../gloox/files/gloox-1.0.24-fix-gcc12-time.patch  | 21 +++++++
 net-libs/gloox/gloox-1.0.24-r1.ebuild              | 65 ++++++++++++++++++++++
 3 files changed, 97 insertions(+)