URL:
<http://gna.org/bugs/?15459>
Summary: Invoke BOOST_MULTI_INDEX_DISABLE_SERIALIZATION
macro
Project: Battle for Wesnoth
Submitted by: melior
Submitted on: Monday 02/22/2010 at 20:06
Category: Bug
Severity: 1 - Wish
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.7.13
Operating System: Ubuntu 9.04
_______________________________________________________
Details:
The way Debian and Ubuntu split up the boost libraries can cause some unmet
internal dependencies when compiling BfW. Specifically, BfW uses the Boost
multi index containers library in src/shared_object.hpp. The main Boost
development library on Debian and Ubuntu systems (libboost-dev) includes
Boost.MultiIndex, but it depends on Boost.Serialization by default, which is
packaged separately as libboost-serialization-dev. The latter is pulled in
by default as a recommendation, but I installed Boost.Iostreams using
--without-recommends, so I only had libboost-dev, libboost-regex-dev, and
libboost-iostreams-dev. The result was the attached file, which I also
brought this up in the forums here:
http://forums.wesnoth.org/viewtopic.php?f=5&t=28577
On ivanovic's advice filed a bug report here:
https://bugs.launchpad.net/ubuntu/+source/boost-defaults/+bug/522761
Even though this is an upstream problem, BfW can remove the dependency by
adding the following line to src/shared_object.hpp:
#define BOOST_MULTI_INDEX_DISABLE_SERIALIZATION
I don't think BfW doesn't use the serialization functionality, as I am
successfully playing with this addition. I verified the build by manually
removing the serialization library and doing the build again. I admit I
could be missing something though. More info on the macro here:
http://www.boost.org/doc/libs/1_41_0/libs/multi_index/doc/tutorial/creation.html#serialization
Marking this Wish, as this is mostly an upstream problem. Theoretically it
should slightly decrease build time, though. Of course the other option is
rolling your own hash map and dropping the Boost.MultiIndex dependency
altogether, but that's not as easy as this solution.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Monday 02/22/2010 at 20:06 Name: wesnoth_errors.log Size: 13kB By:
melior
<http://gna.org/bugs/download.php?file_id=8223>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?15459>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs