cpp-netlib/cpp-netlib — Issue #85: Can't build 0.9.2 with boost 1.48
Author: viric
Created: 2012-01-27 19:03:29+00:00
State: open

I tried to build it, using cmake. I get a problem like this:

```
cd /tmp/nix-build-f3brdkvgq0hdf8p8700ryhhdvdfk6fq3-cpp-netlib-0.9.2.drv-0/cpp-netlib-0.9.2/build/libs/network/test/http && /nix/store/2yghakb86zfivd2da4x1ipcz03xmz6rd-gcc-wrapper-4.5.
1/bin/c++ -DBOOST_NETWORK_ENABLE_HTTPS -I/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include -I/tmp/nix-build-f3brdkvgq0hdf8p8700ryhhdvdfk6fq3-cpp-netlib-0.9.2.drv-0/cpp-netlib-0.
9.2 -I/nix/store/lyp9mjsaamp7qsrnl115j75zhwm712xp-openssl-1.0.0e/include -Wall -o CMakeFiles/cpp-netlib-http-client_get_streaming_test.dir/client_get_streaming_test.cpp.o -c /tmp/nix-build-f3b
rdkvgq0hdf8p8700ryhhdvdfk6fq3-cpp-netlib-0.9.2.drv-0/cpp-netlib-0.9.2/libs/network/test/http/client_get_streaming_test.cppESC[b
In file included from /nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/range/iterator_range.hpp:13:0,
from /nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/range/as_literal.hpp:22,
from /nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/algorithm/string/case_conv.hpp:19,
from /tmp/nix-build-f3brdkvgq0hdf8p8700ryhhdvdfk6fq3-cpp-netlib-0.9.2.drv-0/cpp-netlib-0.9.2/boost/network/protocol/http/traits/impl/headers_container.ipp:12,
from /tmp/nix-build-f3brdkvgq0hdf8p8700ryhhdvdfk6fq3-cpp-netlib-0.9.2.drv-0/cpp-netlib-0.9.2/boost/network/protocol/http/traits/message_traits.hpp:58,
from /tmp/nix-build-f3brdkvgq0hdf8p8700ryhhdvdfk6fq3-cpp-netlib-0.9.2.drv-0/cpp-netlib-0.9.2/boost/network/protocol/http/traits.hpp:14,
from /tmp/nix-build-f3brdkvgq0hdf8p8700ryhhdvdfk6fq3-cpp-netlib-0.9.2.drv-0/cpp-netlib-0.9.2/boost/network/protocol/http/message.hpp:15,
from /tmp/nix-build-f3brdkvgq0hdf8p8700ryhhdvdfk6fq3-cpp-netlib-0.9.2.drv-0/cpp-netlib-0.9.2/boost/network/protocol/http/client.hpp:11,
from /tmp/nix-build-f3brdkvgq0hdf8p8700ryhhdvdfk6fq3-cpp-netlib-0.9.2.drv-0/cpp-netlib-0.9.2/boost/network/include/http/client.hpp:11,
from /tmp/nix-build-f3brdkvgq0hdf8p8700ryhhdvdfk6fq3-cpp-netlib-0.9.2.drv-0/cpp-netlib-0.9.2/libs/network/test/http/client_get_streaming_test.cpp:7:
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/range/iterator_range_core.hpp: In static member function 'static IteratorT boost::iterator_range_detail::iterator_range_impl::adl_begin(ForwardRange&) [with ForwardRange = const boost::iterator_range, IteratorT = char*]':
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/range/iterator_range_core.hpp:186:76: instantiated from 'boost::iterator_range::iterator_range(const Range&) [with Range = boost::iterator_range, IteratorT = char*]'
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/function/function_template.hpp:153:11: instantiated from 'static void boost::detail::function::void_function_obj_invoker2::invoke(boost::detail::function::function_buffer&, T0, T1) [with FunctionObj = body_handler, R = void, T0 = const boost::iterator_range&, T1 = const boost::system::error_code&]'
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/function/function_template.hpp:907:60: instantiated from 'void boost::function2::assign_to(Functor) [with Functor = body_handler, R = void, T0 = const boost::iterator_range&, T1 = const boost::system::error_code&]'
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/function/function_template.hpp:722:7: instantiated from 'boost::function2::function2(Functor, typename boost::enable_if_c::value>::value, int>::type) [with Functor = body_handler, R = void, T0 = const boost::iterator_range&, T1 = const boost::system::error_code&, typename boost::enable_if_c::value>::value, int>::type = int]'
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/function/function_template.hpp:1042:16: instantiated from 'boost::function::function(Functor, typename boost::enable_if_c::value>::value, int>::type) [with Functor = body_handler, R = void, T0 = const boost::iterator_range&, T1 = const boost::system::error_code&, typename boost::enable_if_c::value>::value, int>::type = int]'
/tmp/nix-build-f3brdkvgq0hdf8p8700ryhhdvdfk6fq3-cpp-netlib-0.9.2.drv-0/cpp-netlib-0.9.2/boost/network/protocol/http/client/facade.hpp:56:1: [ skipping 3 instantiation contexts ]
/tmp/nix-build-f3brdkvgq0hdf8p8700ryhhdvdfk6fq3-cpp-netlib-0.9.2.drv-0/cpp-netlib-0.9.2/libs/network/test/http/client_get_streaming_test.cpp:37:9: instantiated from 'void http_client_get_streaming_test::test_method() [with client = boost::network::http::basic_client]'
/tmp/nix-build-f3brdkvgq0hdf8p8700ryhhdvdfk6fq3-cpp-netlib-0.9.2.drv-0/cpp-netlib-0.9.2/libs/network/test/http/client_get_streaming_test.cpp:29:1: instantiated from 'static void http_client_get_streaming_test_invoker::run(boost::type*) [with TestType = boost::network::http::basic_client]'
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/test/unit_test_suite_impl.hpp:357:31: instantiated from 'void boost::unit_test::ut_detail::test_case_template_invoker::operator()() [with TestCaseTemplate = http_client_get_streaming_test_invoker, TestType = boost::network::http::basic_client]'
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/test/utils/callback.hpp:56:59: instantiated from 'boost::unit_test::ut_detail::unused boost::unit_test::ut_detail::invoker::invoke(Functor&) [with Functor = boost::unit_test::ut_detail::test_case_template_invoker >]'
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/test/utils/callback.hpp:89:58: instantiated from 'R boost::unit_test::ut_detail::callback0_impl_t::invoke() [with R = boost::unit_test::ut_detail::unused, Functor = boost::unit_test::ut_detail::test_case_template_invoker >]'
/tmp/nix-build-f3brdkvgq0hdf8p8700ryhhdvdfk6fq3-cpp-netlib-0.9.2.drv-0/cpp-netlib-0.9.2/libs/network/test/http/client_get_streaming_test.cpp:47:1: instantiated from here
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/range/iterator_range_core.hpp:56:66: error: invalid static_cast from type 'const char*' to type 'char*'
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/range/iterator_range_core.hpp: In static member function 'static IteratorT boost::iterator_range_detail::iterator_range_impl::adl_end(ForwardRange&) [with ForwardRange = const boost::iterator_range, IteratorT = char*]':
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/range/iterator_range_core.hpp:186:76: instantiated from 'boost::iterator_range::iterator_range(const Range&) [with Range = boost::iterator_range, IteratorT = char*]'
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/function/function_template.hpp:153:11: instantiated from 'static void boost::detail::function::void_function_obj_invoker2::invoke(boost::detail::function::function_buffer&, T0, T1) [with FunctionObj = body_handler, R = void, T0 = const boost::iterator_range&, T1 = const boost::system::error_code&]'
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/function/function_template.hpp:907:60: instantiated from 'void boost::function2::assign_to(Functor) [with Functor = body_handler, R = void, T0 = const boost::iterator_range&, T1 = const boost::system::error_code&]'
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/function/function_template.hpp:722:7: instantiated from 'boost::function2::function2(Functor, typename boost::enable_if_c::value>::value, int>::type) [with Functor = body_handler, R = void, T0 = const boost::iterator_range&, T1 = const boost::system::error_code&, typename boost::enable_if_c::value>::value, int>::type = int]'
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/function/function_template.hpp:1042:16: instantiated from 'boost::function::function(Functor, typename boost::enable_if_c::value>::value, int>::type) [with Functor = body_handler, R = void, T0 = const boost::iterator_range&, T1 = const boost::system::error_code&, typename boost::enable_if_c::value>::value, int>::type = int]'
/tmp/nix-build-f3brdkvgq0hdf8p8700ryhhdvdfk6fq3-cpp-netlib-0.9.2.drv-0/cpp-netlib-0.9.2/boost/network/protocol/http/client/facade.hpp:56:1: [ skipping 3 instantiation contexts ]
/tmp/nix-build-f3brdkvgq0hdf8p8700ryhhdvdfk6fq3-cpp-netlib-0.9.2.drv-0/cpp-netlib-0.9.2/libs/network/test/http/client_get_streaming_test.cpp:37:9: instantiated from 'void http_client_get_streaming_test::test_method() [with client = boost::network::http::basic_client]'
/tmp/nix-build-f3brdkvgq0hdf8p8700ryhhdvdfk6fq3-cpp-netlib-0.9.2.drv-0/cpp-netlib-0.9.2/libs/network/test/http/client_get_streaming_test.cpp:29:1: instantiated from 'static void http_client_get_streaming_test_invoker::run(boost::type*) [with TestType = boost::network::http::basic_client]'
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/test/unit_test_suite_impl.hpp:357:31: instantiated from 'void boost::unit_test::ut_detail::test_case_template_invoker::operator()() [with TestCaseTemplate = http_client_get_streaming_test_invoker, TestType = boost::network::http::basic_client]'
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/test/utils/callback.hpp:56:59: instantiated from 'boost::unit_test::ut_detail::unused boost::unit_test::ut_detail::invoker::invoke(Functor&) [with Functor = boost::unit_test::ut_detail::test_case_template_invoker >]'
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/test/utils/callback.hpp:89:58: instantiated from 'R boost::unit_test::ut_detail::callback0_impl_t::invoke() [with R = boost::unit_test::ut_detail::unused, Functor = boost::unit_test::ut_detail::test_case_template_invoker >]'
/tmp/nix-build-f3brdkvgq0hdf8p8700ryhhdvdfk6fq3-cpp-netlib-0.9.2.drv-0/cpp-netlib-0.9.2/libs/network/test/http/client_get_streaming_test.cpp:47:1: instantiated from here
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/range/iterator_range_core.hpp:62:64: error: invalid static_cast from type 'const char*' to type 'char*'
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/range/iterator_range_core.hpp: In static member function 'static IteratorT boost::iterator_range_detail::iterator_range_impl::adl_begin(ForwardRange&) [with ForwardRange = const boost::iterator_range, IteratorT = char*]':
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/range/iterator_range_core.hpp:57:13: warning: control reaches end of non-void function
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/range/iterator_range_core.hpp: In static member function 'static IteratorT boost::iterator_range_detail::iterator_range_impl::adl_end(ForwardRange&) [with ForwardRange = const boost::iterator_range, IteratorT = char*]':
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/range/iterator_range_core.hpp:63:13: warning: control reaches end of non-void function
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/system/error_code.hpp: At global scope:
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/system/error_code.hpp:214:36: warning: 'boost::system::posix_category' defined but not used
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/system/error_code.hpp:215:36: warning: 'boost::system::errno_ecat' defined but not used
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/system/error_code.hpp:216:36: warning: 'boost::system::native_ecat' defined but not used
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/asio/error.hpp:244:45: warning: 'boost::asio::error::system_category' defined but not used
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/asio/error.hpp:246:45: warning: 'boost::asio::error::netdb_category' defined but not used
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/asio/error.hpp:248:45: warning: 'boost::asio::error::addrinfo_category' defined but not used
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/asio/error.hpp:250:45: warning: 'boost::asio::error::misc_category' defined but not used
/nix/store/1n86379w6rhz663cx2s6rxi2jkwkpish-boost-1.48.0/include/boost/asio/ssl/error.hpp:34:45: warning: 'boost::asio::error::ssl_category' defined but not used
make[2]: *** [libs/network/test/http/CMakeFiles/cpp-netlib-http-client_get_streaming_test.dir/client_get_streaming_test.cpp.o] Error 1
```

Any idea?