joto / osmium

C++/Javascript framework for working with OSM files.
http://wiki.openstreetmap.org/wiki/Osmium
GNU General Public License v3.0
123 stars 31 forks source link

Fix test-suite build failure. #98

Closed xnox closed 8 years ago

xnox commented 8 years ago

Without this it fails like so:

==========================
c++ -I../include -I. -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wredundant-decls -Wdisabled-optimization -pedantic -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wno-long-long -o tests test_main.o test_utils.o t/osmfile/test_read_and_write.cpp -I/usr/include -I/usr/include/gdal -L/usr/lib/x86_64-linux-gnu -lgeos-3.5.0 -L/usr/lib -lgdal -lboost_regex -lboost_iostreams -lboost_filesystem -lboost_system -DBOOST_TEST_DYN_LINK -Wl,-Bsymbolic-functions -Wl,-z,relro -lboost_unit_test_framework
--------------------------
In file included from /usr/include/boost/iostreams/detail/is_dereferenceable.hpp:12:0,
                 from /usr/include/boost/iostreams/detail/resolve.hpp:26,
                 from /usr/include/boost/iostreams/detail/push.hpp:24,
                 from /usr/include/boost/iostreams/filtering_stream.hpp:19,
                 from t/osmfile/test_read_and_write.cpp:11:
/usr/include/boost/type_traits/detail/bool_trait_def.hpp:18:79: note: #pragma message: NOTE: Use of this header (bool_trait_def.hpp) is deprecated
 # pragma message("NOTE: Use of this header (bool_trait_def.hpp) is deprecated")
                                                                               ^
In file included from /usr/include/boost/type_traits/detail/bool_trait_def.hpp:21:0,
                 from /usr/include/boost/iostreams/detail/is_dereferenceable.hpp:12,
                 from /usr/include/boost/iostreams/detail/resolve.hpp:26,
                 from /usr/include/boost/iostreams/detail/push.hpp:24,
                 from /usr/include/boost/iostreams/filtering_stream.hpp:19,
                 from t/osmfile/test_read_and_write.cpp:11:
/usr/include/boost/type_traits/detail/template_arity_spec.hpp:13:84: note: #pragma message: NOTE: Use of this header (template_arity_spec.hpp) is deprecated
 # pragma message("NOTE: Use of this header (template_arity_spec.hpp) is deprecated")
                                                                                    ^
In file included from /usr/include/boost/iostreams/detail/is_dereferenceable.hpp:13:0,
                 from /usr/include/boost/iostreams/detail/resolve.hpp:26,
                 from /usr/include/boost/iostreams/detail/push.hpp:24,
                 from /usr/include/boost/iostreams/filtering_stream.hpp:19,
                 from t/osmfile/test_read_and_write.cpp:11:
/usr/include/boost/type_traits/detail/template_arity_spec.hpp:13:84: note: #pragma message: NOTE: Use of this header (template_arity_spec.hpp) is deprecated
 # pragma message("NOTE: Use of this header (template_arity_spec.hpp) is deprecated")
                                                                                    ^
In file included from /usr/include/boost/test/unit_test.hpp:19:0,
                 from t/osmfile/test_read_and_write.cpp:4:
t/osmfile/test_read_and_write.cpp:36:1: error: expected initializer before ‘namespace’
 BOOST_AUTO_TEST_SUITE(OSMFile_Output)

https://launchpadlibrarian.net/255388170/buildlog_ubuntu-yakkety-amd64.osmium_0.0~20160124-b30afd3-1build1_BUILDING.txt.gz