Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 846935 - games-simulation/EmptyEpsilon-2022.03.16 - /.../websocket.cpp: error: socket was not declared in this scope
Summary: games-simulation/EmptyEpsilon-2022.03.16 - /.../websocket.cpp: error: socket ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Florian Schmaus
URL: https://github.com/daid/SeriousProton...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-22 09:21 UTC by Toralf Förster
Modified: 2022-05-22 17:57 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,18.61 KB, text/plain)
2022-05-22 09:21 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,78.72 KB, application/x-bzip)
2022-05-22 09:21 UTC, Toralf Förster
Details
environment (environment,92.57 KB, text/plain)
2022-05-22 09:21 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,24.06 KB, application/x-bzip)
2022-05-22 09:21 UTC, Toralf Förster
Details
games-simulation:EmptyEpsilon-2022.03.16:20220521-221018.log.bz2 (games-simulation:EmptyEpsilon-2022.03.16:20220521-221018.log.bz2,16.32 KB, application/x-bzip)
2022-05-22 09:21 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,4.89 KB, application/x-bzip)
2022-05-22 09:21 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,38.82 KB, application/x-bzip)
2022-05-22 09:21 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-05-22 09:21:43 UTC
    6 | #include <unordered_map>
  +++ |+#include <memory>
    7 | 
/var/tmp/portage/games-simulation/EmptyEpsilon-2022.03.16/work/SeriousProton-EE-2022.03.16/src/io/http/websocket.cpp: In constructor sp::io::http::Websocket::Websocket()’:
/var/tmp/portage/games-simulation/EmptyEpsilon-2022.03.16/work/SeriousProton-EE-2022.03.16/src/io/http/websocket.cpp:47:5: error: socket’ was not declared in this scope; did you mean Websocket’?
   47 |     socket = std::make_unique<network::TcpSocket>();
      |     ^~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_systemd-j4-20220515-232600

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.1.0 *
clang/llvm (if any):
clang version 14.0.3
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/14/bin
/usr/lib/llvm/14
14.0.3
Python 3.9.13
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.60.0
  [2]   rust-1.60.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 11.0.15_p10 [openjdk-bin-11]
2)	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  system-vm
  [3]   openjdk-bin-17 

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit d031166542ff56237b6db14da337c9cd6edffb76
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat May 21 21:17:58 2022 +0000

    2022-05-21 21:17:57 UTC

emerge -qpvO games-simulation/EmptyEpsilon
[ebuild  N    ] games-simulation/EmptyEpsilon-2022.03.16
Comment 1 Toralf Förster gentoo-dev 2022-05-22 09:21:44 UTC
Created attachment 779888 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-05-22 09:21:45 UTC
Created attachment 779891 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2022-05-22 09:21:47 UTC
Created attachment 779894 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-05-22 09:21:48 UTC
Created attachment 779897 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-05-22 09:21:48 UTC
Created attachment 779900 [details]
games-simulation:EmptyEpsilon-2022.03.16:20220521-221018.log.bz2
Comment 6 Toralf Förster gentoo-dev 2022-05-22 09:21:49 UTC
Created attachment 779903 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-05-22 09:21:50 UTC
Created attachment 779906 [details]
temp.tar.bz2
Comment 8 Florian Schmaus gentoo-dev 2022-05-22 10:34:25 UTC
Root cause:

In file included from /var/tmp/portage/games-simulation/EmptyEpsilon-2022.03.16/work/SeriousProton-EE-2022.03.16/src/io/http/websocket.cpp:1:
/var/tmp/portage/games-simulation/EmptyEpsilon-2022.03.16/work/SeriousProton-EE-2022.03.16/src/io/http/websocket.h:61:10: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
   61 |     std::unique_ptr<sp::io::network::TcpSocket> socket;
      |          ^~~~~~~~~~
/var/tmp/portage/games-simulation/EmptyEpsilon-2022.03.16/work/SeriousProton-EE-2022.03.16/src/io/http/websocket.h:7:1: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
    6 | #include <unordered_map>
  +++ |+#include <memory>
    7 |
Comment 9 Larry the Git Cow gentoo-dev 2022-05-22 17:57:14 UTC
The bug has been closed via the following commit(s):

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

commit df31905a60fab5a2db71994d7b2a2eeabeb31268
Author:     Florian Schmaus <flow@gentoo.org>
AuthorDate: 2022-05-22 17:53:56 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2022-05-22 17:53:56 +0000

    games-simulation/EmptyEpsilon: fix compilation with gcc 12
    
    Closes: https://bugs.gentoo.org/846935
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 .../EmptyEpsilon/EmptyEpsilon-2022.03.16.ebuild    |  6 +++++-
 ...Add-missing-include-memory-to-websocket.h.patch | 23 ++++++++++++++++++++++
 2 files changed, 28 insertions(+), 1 deletion(-)