URL:
<http://gna.org/bugs/?21303>
Summary: read-only variable is not assignable
Project: Battle for Wesnoth
Submitted by: ryandesign
Submitted on: Tue 26 Nov 2013 11:16:39 AM GMT
Category: Bug
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None of the others
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.10.7
Operating System: OS X 10.9
_______________________________________________________
Details:
wesnoth 1.10.7 does not build on OS X 10.9. The error is:
cd
/opt/local/var/macports/build/_Users_rschmidt_macports_dports_games_wesnoth/wesnoth/work/wesnoth-1.10.7/src
&& /usr/bin/clang++ -DDISABLE_POOL_ALLOC -DHAS_RELATIVE_LOCALEDIR=1
-DHAVE_CONFIG_H -DHAVE_FRIBIDI -DLUA_USE_POSIX -D_X11 -pipe -Os
-isystem/opt/local/include -arch x86_64 -arch i386 -stdlib=libc++ -DNDEBUG
-arch x86_64 -arch i386 -I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/SDL -I/opt/local/include/pango-1.0
-I/opt/local/include/cairo -I/opt/local/include/pixman-1
-I/opt/local/include/libpng16 -I/opt/local/include/harfbuzz
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_games_wesnoth/wesnoth/work/wesnoth-1.10.7/src
-I/opt/local/include/fribidi -I/opt/local/include/SDL -D_GNU_SOURCE=1
-D_THREAD_SAFE -DWESNOTH_PATH=\"/opt/local/share/wesnoth\"
-DLOCALEDIR=\"translations\" -DFIFODIR=\"/var/run/wesnothd\" -o
CMakeFiles/wesnoth-game.dir/construct_dialog.cpp.o -c
/opt/local/var/macports/build/_Users_rschmidt_macports_dports_games_wesnoth/wesnoth/work/wesnoth-1.10.7/src/construct_dialog.cpp
In file included from
/opt/local/var/macports/build/_Users_rschmidt_macports_dports_games_wesnoth/wesnoth/work/wesnoth-1.10.7/src/construct_dialog.cpp:19:
In file included from
/opt/local/var/macports/build/_Users_rschmidt_macports_dports_games_wesnoth/wesnoth/work/wesnoth-1.10.7/src/construct_dialog.hpp:20:
In file included from
/opt/local/var/macports/build/_Users_rschmidt_macports_dports_games_wesnoth/wesnoth/work/wesnoth-1.10.7/src/show_dialog.hpp:24:
In file included from
/opt/local/var/macports/build/_Users_rschmidt_macports_dports_games_wesnoth/wesnoth/work/wesnoth-1.10.7/src/font.hpp:18:
In file included from
/opt/local/var/macports/build/_Users_rschmidt_macports_dports_games_wesnoth/wesnoth/work/wesnoth-1.10.7/src/exceptions.hpp:19:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:434:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/algorithm:593:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/utility:255:15:
error: read-only variable is not assignable
first = __p.first;
~~~~~ ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__tree:1246:35:
note: in instantiation of member function 'std::__1::pair<gui::preview_pane
*const, SDL_Rect>::operator=' requested here
__cache->__value_ = *__first;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__tree:1187:9:
note: in instantiation of function template specialization
'std::__1::__tree<std::__1::pair<gui::preview_pane *const, SDL_Rect>,
std::__1::__map_value_compare<gui::preview_pane *const, SDL_Rect,
std::__1::less<gui::preview_pane *const>, true>,
std::__1::allocator<std::__1::pair<gui::preview_pane *const, SDL_Rect> >
>::__assign_multi<std::__1::__tree_const_iterator<std::__1::pair<gui::preview_pane
*const, SDL_Rect>, const
std::__1::__tree_node<std::__1::pair<gui::preview_pane *const, SDL_Rect>, void
*> *, long> >' requested here
__assign_multi(__t.begin(), __t.end());
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:766:21:
note: in instantiation of member function
'std::__1::__tree<std::__1::pair<gui::preview_pane *const, SDL_Rect>,
std::__1::__map_value_compare<gui::preview_pane *const, SDL_Rect,
std::__1::less<gui::preview_pane *const>, true>,
std::__1::allocator<std::__1::pair<gui::preview_pane *const, SDL_Rect> >
>::operator=' requested here
__tree_ = __m.__tree_;
^
/opt/local/var/macports/build/_Users_rschmidt_macports_dports_games_wesnoth/wesnoth/work/wesnoth-1.10.7/src/construct_dialog.hpp:188:9:
note: in instantiation of member function 'std::__1::map<gui::preview_pane
*const, SDL_Rect, std::__1::less<gui::preview_pane *const>,
std::__1::allocator<std::__1::pair<gui::preview_pane *const, SDL_Rect> >
>::operator=' requested here
struct dimension_measurements {
^
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?21303>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs