Trunk: ‘serialization’ has not been declared

Get help with compiling or installing the game, and discuss announcements of new official releases.

Moderators: Forum Moderators, Developers

Post Reply
jdsampayo
Posts: 185
Joined: April 1st, 2007, 5:10 pm
Location: Mexico
Contact:

Trunk: ‘serialization’ has not been declared

Post by jdsampayo »

Hello,

I was getting this error since last week, I needed a library, but no check fails at the start.

Code: Select all

jorge@molko:/usr/src/wesnoth$ svn update
U    players_changelog
U    src/play_controller.hpp
U    src/actions.cpp
U    src/playsingle_controller.cpp
U    src/gamestatus.cpp
U    src/attack_prediction_display.hpp
U    src/replay_controller.cpp
U    src/replay.hpp
U    src/multiplayer_ui.cpp
U    src/playturn.hpp
U    src/play_controller.cpp
U    src/ai/default/contexts.cpp
U    src/unit_types.hpp
U    src/unit.hpp
U    src/unit_abilities.cpp
U    src/unit_display.hpp
U    src/playmp_controller.cpp
U    src/attack_prediction_display.cpp
U    src/replay.cpp
U    src/game_events.cpp
U    src/playturn.cpp
U    src/gui/dialogs/lobby_main.cpp
U    src/gui/widgets/generator.cpp
U    src/gui/widgets/minimap.cpp
U    src/unit_types.cpp
U    src/unit.cpp
U    src/unit_display.cpp
U    src/mouse_events.cpp
U    data/gui/default/macros/_initial.cfg
U    data/gui/default/window/lobby_main.cfg
U    changelog
Updated to revision 37034.
jorge@molko:/usr/src/wesnoth$ scons
scons: Reading SConscript files ...
Saved options: default_targets = 'test,wesnoth,wesnothd'
Checking whether C++ compiler works (g++ version >= 3.3 required)... (cached) yes
Checking for Gettext's libintl... (cached) libc built-in
Checking for Boost iostreams library version >= 1.33.0... (cached) yes
Checking for gzip support in Boost Iostreams... (cached) yes
Checking for Boost smart_ptr library... (cached) yes
Checking for Simple DirectMedia Layer library version >= 1.2.7... (cached) yes
Checking for SDL_net library... (cached) yes
Checking for Pango with cairo backend... (cached) yes
Checking for fontconfig... (cached) yes
Checking for Lua development files version 5.1... (cached) yes
Checking for Boost regex library... (cached) yes
Checking for SDL_ttf library version >= 2.0.8... (cached) yes
Checking for SDL_mixer library version >= 1.2.0... (cached) yes
Checking for SDL_image library version >= 1.2.0... (cached) yes
Checking for Ogg Vorbis support in SDL... (cached) yes
Checking for C library X11... (cached) yes
Checking for fribidi >= 0.10.9... (cached) yes
Checking for C header file poll.h... (cached) yes
Checking for C header file sys/poll.h... (cached) yes
Checking for C header file sys/select.h... (cached) yes
Checking for C header file sys/sendfile.h... (cached) yes
Checking for C function sendfile()... (cached) yes
Checking for C function round()... (cached) yes
Checking for Boost unit_test_framework library version >= 1.33.0... (cached) yes
If any config checks fail, look in build/config.log for details
If a check fails spuriously due to caching, use --config=force to force its rerun
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/release/tests/main.o -c -std=c++98 -W -Wall -O2 -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_CONFIG_H -D_X11 -DBOOST_TEST_DYN_LINK -I/usr/include -I/usr/include/SDL -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/lua5.1 -I/usr/include/fribidi -I. -Isrc src/tests/main.cpp
In file included from /usr/include/boost/multi_index/detail/node_type.hpp:23,
                 from /usr/include/boost/multi_index/detail/index_base.hpp:21,
                 from /usr/include/boost/multi_index/detail/base_type.hpp:21,
                 from /usr/include/boost/multi_index_container.hpp:32,
                 from src/shared_object.hpp:19,
                 from src/tstring.hpp:18,
                 from src/game_config.hpp:21,
                 from src/tests/main.cpp:37:
/usr/include/boost/multi_index/detail/index_node_base.hpp:22:42: error: boost/serialization/access.hpp: No such file or directory
In file included from /usr/include/boost/multi_index/detail/index_base.hpp:27,
                 from /usr/include/boost/multi_index/detail/base_type.hpp:21,
                 from /usr/include/boost/multi_index_container.hpp:32,
                 from src/shared_object.hpp:19,
                 from src/tstring.hpp:18,
                 from src/game_config.hpp:21,
                 from src/tests/main.cpp:37:
/usr/include/boost/multi_index/detail/index_loader.hpp:21:39: error: boost/serialization/nvp.hpp: No such file or directory
In file included from /usr/include/boost/multi_index_container.hpp:46,
                 from src/shared_object.hpp:19,
                 from src/tstring.hpp:18,
                 from src/game_config.hpp:21,
                 from src/tests/main.cpp:37:
/usr/include/boost/multi_index/detail/archive_constructed.hpp:19:49: error: boost/serialization/serialization.hpp: No such file or directory
In file included from src/shared_object.hpp:19,
                 from src/tstring.hpp:18,
                 from src/game_config.hpp:21,
                 from src/tests/main.cpp:37:
/usr/include/boost/multi_index_container.hpp:48:48: error: boost/serialization/split_member.hpp: No such file or directory
In file included from /usr/include/boost/multi_index/detail/node_type.hpp:23,
                 from /usr/include/boost/multi_index/detail/index_base.hpp:21,
                 from /usr/include/boost/multi_index/detail/base_type.hpp:21,
                 from /usr/include/boost/multi_index_container.hpp:32,
                 from src/shared_object.hpp:19,
                 from src/tstring.hpp:18,
                 from src/game_config.hpp:21,
                 from src/tests/main.cpp:37:
/usr/include/boost/multi_index/detail/index_node_base.hpp:72: error: ‘boost::serialization’ has not been declared
/usr/include/boost/multi_index/detail/index_node_base.hpp:72: error: friend declaration does not name a class or function
In file included from /usr/include/boost/multi_index/detail/index_base.hpp:27,
                 from /usr/include/boost/multi_index/detail/base_type.hpp:21,
                 from /usr/include/boost/multi_index_container.hpp:32,
                 from src/shared_object.hpp:19,
                 from src/tstring.hpp:18,
                 from src/game_config.hpp:21,
                 from src/tests/main.cpp:37:
/usr/include/boost/multi_index/detail/index_loader.hpp: In member function ‘void boost::multi_index::detail::index_loader<Node, FinalNode, Allocator>::add(Node*, Archive&, unsigned int)’:
/usr/include/boost/multi_index/detail/index_loader.hpp:49: error: ‘serialization’ has not been declared
/usr/include/boost/multi_index/detail/index_loader.hpp: In member function ‘void boost::multi_index::detail::index_loader<Node, FinalNode, Allocator>::add_track(Node*, Archive&, unsigned int)’:
/usr/include/boost/multi_index/detail/index_loader.hpp:56: error: ‘serialization’ has not been declared
/usr/include/boost/multi_index/detail/index_loader.hpp: In member function ‘FinalNode* boost::multi_index::detail::index_loader<Node, FinalNode, Allocator>::unchecked_load_node(Archive&) const’:
/usr/include/boost/multi_index/detail/index_loader.hpp:104: error: ‘serialization’ has not been declared
/usr/include/boost/multi_index/detail/index_loader.hpp: In member function ‘FinalNode* boost::multi_index::detail::index_loader<Node, FinalNode, Allocator>::load_node(Archive&) const’:
/usr/include/boost/multi_index/detail/index_loader.hpp:112: error: ‘serialization’ has not been declared
In file included from /usr/include/boost/multi_index/detail/index_base.hpp:28,
                 from /usr/include/boost/multi_index/detail/base_type.hpp:21,
                 from /usr/include/boost/multi_index_container.hpp:32,
                 from src/shared_object.hpp:19,
                 from src/tstring.hpp:18,
                 from src/game_config.hpp:21,
                 from src/tests/main.cpp:37:
/usr/include/boost/multi_index/detail/index_saver.hpp: In member function ‘void boost::multi_index::detail::index_saver<Node, Allocator>::add(Node*, Archive&, unsigned int)’:
/usr/include/boost/multi_index/detail/index_saver.hpp:46: error: ‘serialization’ has not been declared
/usr/include/boost/multi_index/detail/index_saver.hpp: In member function ‘void boost::multi_index::detail::index_saver<Node, Allocator>::add_track(Node*, Archive&, unsigned int)’:
/usr/include/boost/multi_index/detail/index_saver.hpp:53: error: ‘serialization’ has not been declared
/usr/include/boost/multi_index/detail/index_saver.hpp: In static member function ‘static void boost::multi_index::detail::index_saver<Node, Allocator>::save_node(Node*, Archive&)’:
/usr/include/boost/multi_index/detail/index_saver.hpp:123: error: ‘serialization’ has not been declared
In file included from /usr/include/boost/multi_index_container.hpp:46,
                 from src/shared_object.hpp:19,
                 from src/tstring.hpp:18,
                 from src/game_config.hpp:21,
                 from src/tests/main.cpp:37:
/usr/include/boost/multi_index/detail/archive_constructed.hpp: In constructor ‘boost::multi_index::detail::archive_constructed<T>::archive_constructed(Archive&, unsigned int)’:
/usr/include/boost/multi_index/detail/archive_constructed.hpp:37: error: ‘serialization’ has not been declared
/usr/include/boost/multi_index/detail/archive_constructed.hpp: In constructor ‘boost::multi_index::detail::archive_constructed<T>::archive_constructed(const char*, Archive&, unsigned int)’:
/usr/include/boost/multi_index/detail/archive_constructed.hpp:51: error: ‘serialization’ has not been declared
/usr/include/boost/multi_index/detail/archive_constructed.hpp:53: error: ‘serialization’ has not been declared
In file included from src/shared_object.hpp:19,
                 from src/tstring.hpp:18,
                 from src/game_config.hpp:21,
                 from src/tests/main.cpp:37:
/usr/include/boost/multi_index_container.hpp: At global scope:
/usr/include/boost/multi_index_container.hpp:564: error: ‘boost::serialization’ has not been declared
/usr/include/boost/multi_index_container.hpp:564: error: friend declaration does not name a class or function
/usr/include/boost/multi_index_container.hpp:568: error: expected ‘;’ before ‘typedef’
/usr/include/boost/multi_index_container.hpp: In member function ‘void boost::multi_index::multi_index_container<Value, IndexSpecifierList, Allocator>::save(Archive&, unsigned int) const’:
/usr/include/boost/multi_index_container.hpp:575: error: ‘serialization’ has not been declared
/usr/include/boost/multi_index_container.hpp:576: error: ‘index_saver_type’ was not declared in this scope
/usr/include/boost/multi_index_container.hpp:576: error: expected `;' before ‘sm’
/usr/include/boost/multi_index_container.hpp:579: error: ‘serialization’ has not been declared
/usr/include/boost/multi_index_container.hpp:580: error: ‘sm’ was not declared in this scope
/usr/include/boost/multi_index_container.hpp:582: error: ‘sm’ was not declared in this scope
/usr/include/boost/multi_index_container.hpp: In member function ‘void boost::multi_index::multi_index_container<Value, IndexSpecifierList, Allocator>::load(Archive&, unsigned int)’:
/usr/include/boost/multi_index_container.hpp:595: error: ‘serialization’ has not been declared
In file included from /usr/include/boost/multi_index/hashed_index.hpp:26,
                 from src/shared_object.hpp:20,
                 from src/tstring.hpp:18,
                 from src/game_config.hpp:21,
                 from src/tests/main.cpp:37:
/usr/include/boost/multi_index/detail/bucket_array.hpp: At global scope:
/usr/include/boost/multi_index/detail/bucket_array.hpp:140: error: ‘boost::serialization’ has not been declared
/usr/include/boost/multi_index/detail/bucket_array.hpp:140: error: friend declaration does not name a class or function
In file included from /usr/include/boost/multi_index/hashed_index.hpp:27,
                 from src/shared_object.hpp:20,
                 from src/tstring.hpp:18,
                 from src/game_config.hpp:21,
                 from src/tests/main.cpp:37:
/usr/include/boost/multi_index/detail/hash_index_iterator.hpp:72: error: expected ‘;’ before ‘typedef’
/usr/include/boost/multi_index/detail/hash_index_iterator.hpp: In member function ‘void boost::multi_index::detail::hashed_index_iterator<Node, BucketArray, Derived>::save(Archive&, unsigned int) const’:
/usr/include/boost/multi_index/detail/hash_index_iterator.hpp:77: error: ‘node_base_type’ was not declared in this scope
/usr/include/boost/multi_index/detail/hash_index_iterator.hpp:77: error: ‘bnode’ was not declared in this scope
/usr/include/boost/multi_index/detail/hash_index_iterator.hpp:78: error: ‘serialization’ has not been declared
/usr/include/boost/multi_index/detail/hash_index_iterator.hpp:79: error: ‘serialization’ has not been declared
/usr/include/boost/multi_index/detail/hash_index_iterator.hpp: In member function ‘void boost::multi_index::detail::hashed_index_iterator<Node, BucketArray, Derived>::load(Archive&, unsigned int)’:
/usr/include/boost/multi_index/detail/hash_index_iterator.hpp:85: error: ‘node_base_type’ was not declared in this scope
/usr/include/boost/multi_index/detail/hash_index_iterator.hpp:85: error: ‘bnode’ was not declared in this scope
/usr/include/boost/multi_index/detail/hash_index_iterator.hpp:86: error: ‘serialization’ has not been declared
/usr/include/boost/multi_index/detail/hash_index_iterator.hpp:88: error: ‘serialization’ has not been declared
In file included from src/shared_object.hpp:20,
                 from src/tstring.hpp:18,
                 from src/game_config.hpp:21,
                 from src/tests/main.cpp:37:
/usr/include/boost/multi_index/hashed_index.hpp: In member function ‘void boost::multi_index::detail::hashed_index<KeyFromValue, Hash, Pred, SuperMeta, TagList, Category>::save_(Archive&, unsigned int, const typename SuperMeta::type::index_saver_type&) const’:
/usr/include/boost/multi_index/hashed_index.hpp:816: error: ‘serialization’ has not been declared
/usr/include/boost/multi_index/hashed_index.hpp: In member function ‘void boost::multi_index::detail::hashed_index<KeyFromValue, Hash, Pred, SuperMeta, TagList, Category>::load_(Archive&, unsigned int, const typename SuperMeta::type::index_loader_type&)’:
/usr/include/boost/multi_index/hashed_index.hpp:823: error: ‘serialization’ has not been declared
scons: *** [build/release/tests/main.o] Error 1
scons: building terminated because of errors.
jorge@molko:/usr/src/wesnoth$ 
Installing the packages:
libboost-serialization-dev
libbost-serialization1.34.1


Solved the problem, I hope this helps somebody.
And maybe the lib can be add to the start check?

Best Regards.
In quechquixcauh maniz cemanahuatl, ayc pollihuiz yn itenyo, yn itauhca in Mexico-Tenochtitlan
As long as the world exists, no one will forget the glory and honor of Mexico-Tenochtitlan - Culhuacan memorial

silene
Posts: 1109
Joined: August 28th, 2004, 10:02 pm

Re: Trunk: ‘serialization’ has not been declared

Post by silene »

jdsampayo wrote:Installing the packages:
libboost-serialization-dev
libbost-serialization1.34.1


Solved the problem, I hope this helps somebody.
And maybe the lib can be add to the start check?
Please report it to your linux distribution. Wesnoth does not depend on Boost.Serialization, so there is no reason for us to test for it. But it seems like Boost.MultiIndex does depend on it, so your distribution should fix the dependencies of the Boost packages.

Post Reply