Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 724316 - games-strategy/widelands-0.20-r1 with dev-libs/boost-1.73.0: error: ‘_1’ was not declared in this scope
Summary: games-strategy/widelands-0.20-r1 with dev-libs/boost-1.73.0: error: ‘_1’ was ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
: 724396 (view as bug list)
Depends on:
Blocks: boost-1.74
  Show dependency tree
 
Reported: 2020-05-20 10:13 UTC by Andrei Slavoiu
Modified: 2021-06-03 14:21 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge.info,8.94 KB, text/plain)
2020-05-20 10:14 UTC, Andrei Slavoiu
Details
build.log (build.log.xz,32.93 KB, application/x-xz)
2020-05-20 10:18 UTC, Andrei Slavoiu
Details
patch (widelands.patch,1.29 KB, patch)
2020-06-12 15:34 UTC, Christian
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Slavoiu 2020-05-20 10:13:05 UTC
/usr/include/boost/bind.hpp: At global scope:
/usr/include/boost/bind.hpp:36:1: note: ‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’
   36 | BOOST_PRAGMA_MESSAGE(
      | ^~~~~~~~~~~~~~~~~~~~
[1791/2219] /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -DWL_USE_GLVND -I/var/tmp/portage/games-strategy/widelands-0.20-r1/work/widelands-build20/src -Isrc -isystem /usr/include/SDL2 -isystem /usr/include/GL  -march=native -ggdb3 -O2 -pipe -fdiagnostics-color    -std=c++11 -fext-numeric-literals  -DNDEBUG -DNOPARACHUTE -Wredundant-decls -Wall -Wpedantic -Wdeprecated-declarations -Wextra -Wformat -Wformat-nonliteral -Wformat-security -Wformat-y2k -Winit-self -Winvalid-pch -Wlogical-op -Wmissing-include-dirs -Wno-undef -Wold-style-cast -Woverlength-strings -Wpacked -Wpointer-arith -Wsign-promo -Wsync-nand -Wtrampolines -Wundef -Wunused -Wunused-macros -Werror=format-security -Werror=return-type -Werror=shadow -Werror=uninitialized -MD -MT src/editor/CMakeFiles/editor.dir/ui_menus/tool_set_terrain_options_menu.cc.o -MF src/editor/CMakeFiles/editor.dir/ui_menus/tool_set_terrain_options_menu.cc.o.d -o src/editor/CMakeFiles/editor.dir/ui_menus/tool_set_terrain_options_menu.cc.o -c /var/tmp/portage/games-strategy/widelands-0.20-r1/work/widelands-build20/src/editor/ui_menus/tool_set_terrain_options_menu.cc
FAILED: src/editor/CMakeFiles/editor.dir/ui_menus/tool_set_terrain_options_menu.cc.o 
/usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -DWL_USE_GLVND -I/var/tmp/portage/games-strategy/widelands-0.20-r1/work/widelands-build20/src -Isrc -isystem /usr/include/SDL2 -isystem /usr/include/GL  -march=native -ggdb3 -O2 -pipe -fdiagnostics-color    -std=c++11 -fext-numeric-literals  -DNDEBUG -DNOPARACHUTE -Wredundant-decls -Wall -Wpedantic -Wdeprecated-declarations -Wextra -Wformat -Wformat-nonliteral -Wformat-security -Wformat-y2k -Winit-self -Winvalid-pch -Wlogical-op -Wmissing-include-dirs -Wno-undef -Wold-style-cast -Woverlength-strings -Wpacked -Wpointer-arith -Wsign-promo -Wsync-nand -Wtrampolines -Wundef -Wunused -Wunused-macros -Werror=format-security -Werror=return-type -Werror=shadow -Werror=uninitialized -MD -MT src/editor/CMakeFiles/editor.dir/ui_menus/tool_set_terrain_options_menu.cc.o -MF src/editor/CMakeFiles/editor.dir/ui_menus/tool_set_terrain_options_menu.cc.o.d -o src/editor/CMakeFiles/editor.dir/ui_menus/tool_set_terrain_options_menu.cc.o -c /var/tmp/portage/games-strategy/widelands-0.20-r1/work/widelands-build20/src/editor/ui_menus/tool_set_terrain_options_menu.cc
In file included from /var/tmp/portage/games-strategy/widelands-0.20-r1/work/widelands-build20/src/editor/ui_menus/tool_set_terrain_options_menu.h:27,
                 from /var/tmp/portage/games-strategy/widelands-0.20-r1/work/widelands-build20/src/editor/ui_menus/tool_set_terrain_options_menu.cc:20:
/var/tmp/portage/games-strategy/widelands-0.20-r1/work/widelands-build20/src/editor/ui_menus/categorized_item_selection_menu.h: In constructor ‘CategorizedItemSelectionMenu<DescriptionType, ToolType>::CategorizedItemSelectionMenu(UI::Panel*, const DescriptionMaintainer<Widelands::EditorCategory>&, const DescriptionMaintainer<DescriptionType>&, std::function<UI::Checkbox*(UI::Panel*, const DescriptionType&)>, std::function<void()>, ToolType*)’:
/var/tmp/portage/games-strategy/widelands-0.20-r1/work/widelands-build20/src/editor/ui_menus/categorized_item_selection_menu.h:127:88: error: ‘_1’ was not declared in this scope
  127 |    cb->changedto.connect(boost::bind(&CategorizedItemSelectionMenu::selected, this, i, _1));


Reproducible: Always
Comment 1 Andrei Slavoiu 2020-05-20 10:14:37 UTC
Created attachment 640552 [details]
emerge --info
Comment 2 Andrei Slavoiu 2020-05-20 10:18:06 UTC
Created attachment 640554 [details]
build.log
Comment 3 Christian 2020-06-12 15:34:22 UTC
Created attachment 644528 [details, diff]
patch

builds with this patch

upstream, the issues are fixed, but the commit diffs couldn't be applied to release, so i just made changes manually
Comment 4 Larry the Git Cow gentoo-dev 2020-06-14 22:13:51 UTC
The bug has been closed via the following commit(s):

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

commit 030ea7d9d612e6effe3f833e5f7cba260be9452c
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2020-06-14 22:13:28 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-06-14 22:13:28 +0000

    games-strategy/widelands: Fix for boost 1.73
    
    Closes: https://bugs.gentoo.org/724316
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: David Seifert <soap@gentoo.org>

 .../files/widelands-0.20-boost-1.73.patch          | 22 ++++++++++++++++++++++
 games-strategy/widelands/widelands-0.20-r1.ebuild  |  5 +++--
 2 files changed, 25 insertions(+), 2 deletions(-)
Comment 5 Ionen Wolkens gentoo-dev 2021-06-03 14:21:19 UTC
*** Bug 724396 has been marked as a duplicate of this bug. ***