Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 723520 - games-board/pokerth-1.1.2 with boost-1.73.0: serveracceptwebhelper.cpp:61:109: error: ‘_1’ was not declared in this scope
Summary: games-board/pokerth-1.1.2 with boost-1.73.0: serveracceptwebhelper.cpp:61:109...
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: boost-1.74
  Show dependency tree
 
Reported: 2020-05-17 23:45 UTC by Stefan Strogin
Modified: 2020-05-18 01:35 UTC (History)
0 users

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


Attachments
build.log (build.log,46.81 KB, text/plain)
2020-05-17 23:46 UTC, Stefan Strogin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Strogin gentoo-dev 2020-05-17 23:45:33 UTC
$ emerge -pqv '=games-board/pokerth-1.1.2::gentoo'
[ebuild  N    ] games-board/pokerth-1.1.2  USE="-dedicated"

x86_64-pc-linux-gnu-g++ -c -march=skylake -O3 -pipe -fPIC -Wall -Wextra -frtti -D_REENTRANT -DENABLE_IPV6 -DTIXML_USE_STL -DBOOST_FILESYSTEM_DEPRECATED -DQT_NO_DEBUG -I. -I. -Isrc -Isrc/engine -Isrc/gui -Isrc/gui/qt -Isrc/gui/qt/qttools -Isrc/net -Isrc/engine/local_engine -Isrc/engine/network_engine -Isrc/config -Isrc/core -Iopt/gsasl/include -I/usr/lib64/qt5/mkspecs/linux-g++ -o obj/serveracceptwebhelper.o src/net/common/serveracceptwebhelper.cpp
src/net/common/serveracceptwebhelper.cpp: In member function ‘virtual void ServerAcceptWebHelper::Listen(unsigned int, bool, const string&, boost::shared_ptr<ServerLobbyThread>)’:
src/net/common/serveracceptwebhelper.cpp:61:109: error: ‘_1’ was not declared in this scope
   61 |  m_webSocketServer->set_validate_handler(boost::bind(boost::mem_fn(&ServerAcceptWebHelper::validate), this, _1));
      |                                                                                                             ^~
src/net/common/serveracceptwebhelper.cpp:61:109: note: suggested alternatives:
In file included from /usr/include/boost/mpl/aux_/include_preprocessed.hpp:37,
                 from /usr/include/boost/mpl/placeholders.hpp:43,
                 from /usr/include/boost/mpl/apply.hpp:24,
                 from /usr/include/boost/mpl/aux_/fold_impl.hpp:19,
                 from /usr/include/boost/mpl/fold.hpp:20,
                 from /usr/include/boost/mpl/remove_if.hpp:18,
                 from /usr/include/boost/mpl/remove.hpp:18,
                 from /usr/include/boost/function_types/components.hpp:44,
                 from /usr/include/boost/function_types/is_member_function_pointer.hpp:14,
                 from /usr/include/boost/tti/detail/dmem_fun.hpp:10,
                 from /usr/include/boost/tti/has_member_function.hpp:15,
                 from /usr/include/boost/uuid/random_generator.hpp:20,
                 from /usr/include/boost/uuid/uuid_generators.hpp:17,
                 from src/net/serverlobbythread.h:39,
                 from src/net/serveracceptwebhelper.h:38,
                 from src/net/common/serveracceptwebhelper.cpp:32:
/usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp:29:16: note:   ‘mpl_::_1’
   29 | typedef arg<1> _1;
      |                ^~
In file included from /usr/include/websocketpp/common/functional.hpp:53,
                 from /usr/include/websocketpp/transport/base/endpoint.hpp:31,
                 from /usr/include/websocketpp/transport/iostream/endpoint.hpp:31,
                 from /usr/include/websocketpp/config/core.hpp:40,
                 from /usr/include/websocketpp/config/asio_no_tls.hpp:31,
                 from src/net/websocket_defs.h:36,
                 from src/net/serveracceptwebhelper.h:36,
                 from src/net/common/serveracceptwebhelper.cpp:32:
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/include/g++-v10/functional:221:34: note:   ‘std::placeholders::_1’
  221 |     extern const _Placeholder<1> _1;
      |                                  ^~
In file included from /usr/include/boost/mpl/aux_/include_preprocessed.hpp:37,
                 from /usr/include/boost/mpl/placeholders.hpp:43,
                 from /usr/include/boost/mpl/apply.hpp:24,
                 from /usr/include/boost/mpl/aux_/fold_impl.hpp:19,
                 from /usr/include/boost/mpl/fold.hpp:20,
                 from /usr/include/boost/mpl/remove_if.hpp:18,
                 from /usr/include/boost/mpl/remove.hpp:18,
                 from /usr/include/boost/function_types/components.hpp:44,
                 from /usr/include/boost/function_types/is_member_function_pointer.hpp:14,
                 from /usr/include/boost/tti/detail/dmem_fun.hpp:10,
                 from /usr/include/boost/tti/has_member_function.hpp:15,
                 from /usr/include/boost/uuid/random_generator.hpp:20,
                 from /usr/include/boost/uuid/uuid_generators.hpp:17,
                 from src/net/serverlobbythread.h:39,
                 from src/net/serveracceptwebhelper.h:38,
                 from src/net/common/serveracceptwebhelper.cpp:32:
/usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp:29:16: note:   ‘mpl_::_1’
   29 | typedef arg<1> _1;
      |                ^~
In file included from /usr/include/boost/bind/bind.hpp:2356,
                 from /usr/include/boost/thread/detail/thread.hpp:33,
                 from /usr/include/boost/thread/thread_only.hpp:22,
                 from /usr/include/boost/thread/thread.hpp:12,
                 from /usr/include/boost/thread.hpp:13,
                 from src/net/sessiondata.h:40,
                 from src/net/sessionmanager.h:39,
                 from src/net/serverlobbythread.h:41,
                 from src/net/serveracceptwebhelper.h:38,
                 from src/net/common/serveracceptwebhelper.cpp:32:
/usr/include/boost/bind/placeholders.hpp:46:38: note:   ‘boost::placeholders::_1’
   46 | BOOST_STATIC_CONSTEXPR boost::arg<1> _1;
      |                                      ^~
In file included from /usr/include/boost/mpl/aux_/include_preprocessed.hpp:37,
                 from /usr/include/boost/mpl/placeholders.hpp:43,
                 from /usr/include/boost/mpl/apply.hpp:24,
                 from /usr/include/boost/mpl/aux_/fold_impl.hpp:19,
                 from /usr/include/boost/mpl/fold.hpp:20,
                 from /usr/include/boost/mpl/remove_if.hpp:18,
                 from /usr/include/boost/mpl/remove.hpp:18,
                 from /usr/include/boost/function_types/components.hpp:44,
                 from /usr/include/boost/function_types/is_member_function_pointer.hpp:14,
                 from /usr/include/boost/tti/detail/dmem_fun.hpp:10,
                 from /usr/include/boost/tti/has_member_function.hpp:15,
                 from /usr/include/boost/uuid/random_generator.hpp:20,
                 from /usr/include/boost/uuid/uuid_generators.hpp:17,
                 from src/net/serverlobbythread.h:39,
                 from src/net/serveracceptwebhelper.h:38,
                 from src/net/common/serveracceptwebhelper.cpp:32:
/usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp:29:16: note:   ‘mpl_::_1’
   29 | typedef arg<1> _1;
      |                ^~
src/net/common/serveracceptwebhelper.cpp:64:114: error: ‘_2’ was not declared in this scope
   64 |  m_webSocketServer->set_message_handler(boost::bind(boost::mem_fn(&ServerAcceptWebHelper::on_message), this, _1, _2));
      |                                                                                                                  ^~
src/net/common/serveracceptwebhelper.cpp:64:114: note: suggested alternatives:
In file included from /usr/include/boost/mpl/aux_/include_preprocessed.hpp:37,
                 from /usr/include/boost/mpl/placeholders.hpp:43,
                 from /usr/include/boost/mpl/apply.hpp:24,
                 from /usr/include/boost/mpl/aux_/fold_impl.hpp:19,
                 from /usr/include/boost/mpl/fold.hpp:20,
                 from /usr/include/boost/mpl/remove_if.hpp:18,
                 from /usr/include/boost/mpl/remove.hpp:18,
                 from /usr/include/boost/function_types/components.hpp:44,
                 from /usr/include/boost/function_types/is_member_function_pointer.hpp:14,
                 from /usr/include/boost/tti/detail/dmem_fun.hpp:10,
                 from /usr/include/boost/tti/has_member_function.hpp:15,
                 from /usr/include/boost/uuid/random_generator.hpp:20,
                 from /usr/include/boost/uuid/uuid_generators.hpp:17,
                 from src/net/serverlobbythread.h:39,
                 from src/net/serveracceptwebhelper.h:38,
                 from src/net/common/serveracceptwebhelper.cpp:32:
/usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp:42:16: note:   ‘mpl_::_2’
   42 | typedef arg<2> _2;
      |                ^~
In file included from /usr/include/websocketpp/common/functional.hpp:53,
                 from /usr/include/websocketpp/transport/base/endpoint.hpp:31,
                 from /usr/include/websocketpp/transport/iostream/endpoint.hpp:31,
                 from /usr/include/websocketpp/config/core.hpp:40,
                 from /usr/include/websocketpp/config/asio_no_tls.hpp:31,
                 from src/net/websocket_defs.h:36,
                 from src/net/serveracceptwebhelper.h:36,
                 from src/net/common/serveracceptwebhelper.cpp:32:
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/include/g++-v10/functional:222:34: note:   ‘std::placeholders::_2’
  222 |     extern const _Placeholder<2> _2;
      |                                  ^~
In file included from /usr/include/boost/mpl/aux_/include_preprocessed.hpp:37,
                 from /usr/include/boost/mpl/placeholders.hpp:43,
                 from /usr/include/boost/mpl/apply.hpp:24,
                 from /usr/include/boost/mpl/aux_/fold_impl.hpp:19,
                 from /usr/include/boost/mpl/fold.hpp:20,
                 from /usr/include/boost/mpl/remove_if.hpp:18,
                 from /usr/include/boost/mpl/remove.hpp:18,
                 from /usr/include/boost/function_types/components.hpp:44,
                 from /usr/include/boost/function_types/is_member_function_pointer.hpp:14,
                 from /usr/include/boost/tti/detail/dmem_fun.hpp:10,
                 from /usr/include/boost/tti/has_member_function.hpp:15,
                 from /usr/include/boost/uuid/random_generator.hpp:20,
                 from /usr/include/boost/uuid/uuid_generators.hpp:17,
                 from src/net/serverlobbythread.h:39,
                 from src/net/serveracceptwebhelper.h:38,
                 from src/net/common/serveracceptwebhelper.cpp:32:
/usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp:42:16: note:   ‘mpl_::_2’
   42 | typedef arg<2> _2;
      |                ^~
In file included from /usr/include/boost/bind/bind.hpp:2356,
                 from /usr/include/boost/thread/detail/thread.hpp:33,
                 from /usr/include/boost/thread/thread_only.hpp:22,
                 from /usr/include/boost/thread/thread.hpp:12,
                 from /usr/include/boost/thread.hpp:13,
                 from src/net/sessiondata.h:40,
                 from src/net/sessionmanager.h:39,
                 from src/net/serverlobbythread.h:41,
                 from src/net/serveracceptwebhelper.h:38,
                 from src/net/common/serveracceptwebhelper.cpp:32:
/usr/include/boost/bind/placeholders.hpp:47:38: note:   ‘boost::placeholders::_2’
   47 | BOOST_STATIC_CONSTEXPR boost::arg<2> _2;
      |                                      ^~
In file included from /usr/include/boost/mpl/aux_/include_preprocessed.hpp:37,
                 from /usr/include/boost/mpl/placeholders.hpp:43,
                 from /usr/include/boost/mpl/apply.hpp:24,
                 from /usr/include/boost/mpl/aux_/fold_impl.hpp:19,
                 from /usr/include/boost/mpl/fold.hpp:20,
                 from /usr/include/boost/mpl/remove_if.hpp:18,
                 from /usr/include/boost/mpl/remove.hpp:18,
                 from /usr/include/boost/function_types/components.hpp:44,
                 from /usr/include/boost/function_types/is_member_function_pointer.hpp:14,
                 from /usr/include/boost/tti/detail/dmem_fun.hpp:10,
                 from /usr/include/boost/tti/has_member_function.hpp:15,
                 from /usr/include/boost/uuid/random_generator.hpp:20,
                 from /usr/include/boost/uuid/uuid_generators.hpp:17,
                 from src/net/serverlobbythread.h:39,
                 from src/net/serveracceptwebhelper.h:38,
                 from src/net/common/serveracceptwebhelper.cpp:32:
/usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp:42:16: note:   ‘mpl_::_2’
   42 | typedef arg<2> _2;
      |                ^~
make[1]: *** [Makefile.pokerth_lib:1908: obj/serveracceptwebhelper.o] Error 1
make[1]: Leaving directory '/var/tmp/portage/games-board/pokerth-1.1.2/work/pokerth-1.1.2-rc'
make: *** [Makefile:107: sub-pokerth_lib-pro-make_first-ordered] Error 2
Comment 1 Stefan Strogin gentoo-dev 2020-05-17 23:46:10 UTC
Created attachment 639902 [details]
build.log
Comment 2 Larry the Git Cow gentoo-dev 2020-05-18 01:35:29 UTC
The bug has been closed via the following commit(s):

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

commit 37c8f41312b0ad6f990df3b17eba2b06aabc38e9
Author:     Stefan Strogin <steils@gentoo.org>
AuthorDate: 2020-05-18 01:30:28 +0000
Commit:     Stefan Strogin <steils@gentoo.org>
CommitDate: 2020-05-18 01:33:27 +0000

    games-board/pokerth: add patch for boost-1.73
    
    Closes: https://bugs.gentoo.org/723520
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Stefan Strogin <steils@gentoo.org>

 .../pokerth/files/pokerth-1.1.2-boost-1.73.patch   | 42 ++++++++++++++++++++++
 games-board/pokerth/pokerth-1.1.2.ebuild           |  3 +-
 2 files changed, 44 insertions(+), 1 deletion(-)