Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 852566 - games-engines/odamex-10.0.0 - /.../main.cpp: error: time was not declared in this scope
Summary: games-engines/odamex-10.0.0 - /.../main.cpp: error: time was not declared in ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-12
  Show dependency tree
 
Reported: 2022-06-16 12:16 UTC by Toralf Förster
Modified: 2022-06-17 22:49 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,20.42 KB, text/plain)
2022-06-16 12:16 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,85.55 KB, application/x-bzip)
2022-06-16 12:16 UTC, Toralf Förster
Details
environment (environment,110.49 KB, text/plain)
2022-06-16 12:16 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,36.30 KB, application/x-bzip)
2022-06-16 12:16 UTC, Toralf Förster
Details
games-engines:odamex-10.0.0:20220616-111809.log.bz2 (games-engines:odamex-10.0.0:20220616-111809.log.bz2,49.56 KB, application/x-bzip)
2022-06-16 12:16 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,14.36 KB, application/x-bzip)
2022-06-16 12:16 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,77.18 KB, application/x-bzip)
2022-06-16 12:16 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-16 12:16:13 UTC
/var/tmp/portage/games-engines/odamex-10.0.0/work/odamex-src-10.0.0/master/i_net.h:138:24: warning: useless cast to type unsigned char’ [-Wuseless-cast]
  138 |                 return (unsigned char)data[readpos];
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/games-engines/odamex-10.0.0/work/odamex-src-10.0.0/master/main.cpp: In function void pingServer(SServer&)’:
/var/tmp/portage/games-engines/odamex-10.0.0/work/odamex-src-10.0.0/master/main.cpp:372:42: error: time’ was not declared in this scope; did you mean utimes’?
  372 |         s.key_sent = rand() * getpid() * time(0);
      |                                          ^~~~

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

  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:
1)	Eclipse Temurin JDK 11.0.15_p10 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.3_p7 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.332_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

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

  HEAD of ::gentoo
commit f936af7c9148b1481a803904947494142603e46a
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Jun 16 10:48:19 2022 +0000

    2022-06-16 10:48:19 UTC

emerge -qpvO games-engines/odamex
[ebuild  N    ] games-engines/odamex-10.0.0  USE="X client master portmidi -hidpi -odalaunch -server -upnp"
Comment 1 Toralf Förster gentoo-dev 2022-06-16 12:16:14 UTC
Created attachment 785696 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-06-16 12:16:16 UTC
Created attachment 785699 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2022-06-16 12:16:17 UTC
Created attachment 785702 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-06-16 12:16:19 UTC
Created attachment 785705 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-06-16 12:16:21 UTC
Created attachment 785708 [details]
games-engines:odamex-10.0.0:20220616-111809.log.bz2
Comment 6 Toralf Förster gentoo-dev 2022-06-16 12:16:22 UTC
Created attachment 785711 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-06-16 12:16:24 UTC
Created attachment 785714 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2022-06-17 22:49:59 UTC
The bug has been closed via the following commit(s):

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

commit a7a34ec3f155cab724c8106e4375fd2fa08a347a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-17 21:39:15 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-17 22:49:06 +0000

    games-engines/odamex: fix build with GCC 12
    
    Closes: https://bugs.gentoo.org/852566
    Signed-off-by: Sam James <sam@gentoo.org>

 .../odamex/files/odamex-10.0.0-gcc12.patch          | 21 +++++++++++++++++++++
 games-engines/odamex/odamex-10.0.0.ebuild           |  1 +
 2 files changed, 22 insertions(+)