Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946365 - dev-cpp/websocketpp-0.8.2 fails to compile: none.hpp:66:24: error: io_service in namespace websocketpp::lib::asio does not name a type
Summary: dev-cpp/websocketpp-0.8.2 fails to compile: none.hpp:66:24: error: io_service...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
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: boost-1.87 946516
  Show dependency tree
 
Reported: 2024-12-13 14:39 UTC by Agostino Sarubbo
Modified: 2025-05-01 16:35 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,174.67 KB, text/plain)
2024-12-13 14:39 UTC, Agostino Sarubbo
Details
hingobway.patch (hingobway.patch,405.55 KB, patch)
2025-03-20 13:35 UTC, Attila Tóth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-12-13 14:39:51 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-cpp/websocketpp-0.8.2 fails to compile.
Discovered on: amd64 (internal ref: gcc15_tinderbox)
System: GCC-15-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-15)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-12-13 14:39:52 UTC
Created attachment 913920 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-12-13 14:39:53 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


FAILED: test/endpoint/CMakeFiles/test_endpoint.dir/endpoint.cpp.o 
FAILED: test/transport/CMakeFiles/test_transport_asio_security.dir/asio/security.cpp.o 
/var/tmp/portage/dev-cpp/websocketpp-0.8.2/work/websocketpp-0.8.2/websocketpp/transport/asio/security/none.hpp:66:24: error: ‘io_service’ in namespace ‘websocketpp::lib::asio’ does not name a type
Comment 3 gen2dev 2024-12-16 22:05:39 UTC
Someone opened an upstream issue, no proposed patch or PR as yet though.
https://github.com/zaphoyd/websocketpp/issues/1157
Comment 4 Blake Batson 2025-03-17 18:44:43 UTC
This also prevents obs-studio with the websocket flag from building. There is now a fix upstream but it is not merged yet: https://github.com/zaphoyd/websocketpp/pull/1164
Comment 5 Attila Tóth 2025-03-20 11:57:28 UTC
(In reply to Blake Batson from comment #4)
> This also prevents obs-studio with the websocket flag from building. There
> is now a fix upstream but it is not merged yet:
> https://github.com/zaphoyd/websocketpp/pull/1164

There's also a tree:
https://github.com/jcelerier/websocketpp/commits/ossia/2024-12-18/
Comment 6 Attila Tóth 2025-03-20 13:18:52 UTC
(In reply to Blake Batson from comment #4)
> This also prevents obs-studio with the websocket flag from building. There
> is now a fix upstream but it is not merged yet:
> https://github.com/zaphoyd/websocketpp/pull/1164

It looks like this will be included in 0.8.3, that is not on the horizon. The commit addressing the issue does not apply cleanly. I'll post a modified patch as a workaround.
Comment 7 Attila Tóth 2025-03-20 13:35:09 UTC
Created attachment 921340 [details, diff]
hingobway.patch

Contains boost-1.87 asio fixes, adjusted to apply cleanly.
Comment 8 Larry the Git Cow gentoo-dev 2025-05-01 16:35:45 UTC
The bug has been closed via the following commit(s):

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

commit 7af7ec9d419ae1c1fae19678591d017c3ba92b4b
Author:     Louis Sautier <sbraz@gentoo.org>
AuthorDate: 2025-05-01 16:19:02 +0000
Commit:     Louis Sautier <sbraz@gentoo.org>
CommitDate: 2025-05-01 16:34:15 +0000

    dev-cpp/websocketpp: fix build with boost 1.87 (#946365)
    
    Also add a patch that fixes C++20 errors from #939739 and bump to
    EAPI=8.
    
    Closes: https://bugs.gentoo.org/946365
    Closes: https://bugs.gentoo.org/946516
    Bug: https://bugs.gentoo.org/939739
    Signed-off-by: Louis Sautier <sbraz@gentoo.org>

 dev-cpp/websocketpp/Manifest                       |  1 +
 .../files/websocketpp-0.8.2-c++20-compat.patch     | 94 ++++++++++++++++++++++
 dev-cpp/websocketpp/websocketpp-0.8.2-r1.ebuild    | 56 +++++++++++++
 3 files changed, 151 insertions(+)