[libtorrent] Recovering build symbols on linux
Brought to you by:
arvidn
From: Bedeho M. <bed...@gm...> - 2015-07-31 08:45:33
|
I am building my libtorrent application on linux for the first time, and as such I have had to rebuild libtorrent. I am getting a strange error (see below) from a boost header. I suspect this is due to me not correctly specifying all the correct build symbols which were used during the building of libtorrent, When I built a previous version on windows, there were files which specified which symbols had been used, but I cannot seem to find them now. Is there some way to get the full list when building on linux? I am building using boost.build and gcc. In file included from /usr/local/include/boost/bind.hpp:22:0, from ../../libs/libtorrent-rasterbar-1.0.5/include/libtorrent/socks5_stream.hpp:37, from ../../libs/libtorrent-rasterbar-1.0.5/include/libtorrent/socket_type.hpp:38, from ../../libs/libtorrent-rasterbar-1.0.5/include/libtorrent/aux_/session_impl.hpp:76, from ../../libs/libtorrent-rasterbar-1.0.5/include/libtorrent/torrent.hpp:75, from ../../JoyStream/core/extension/TorrentPlugin.hpp:17, from ../../JoyStream/core/view/MainWindow.hpp:11, from ../../JoyStream/core/controller/Controller.hpp:12, from ../../JoyStream/core/controller/Controller.cpp:8: /usr/local/include/boost/bind/bind.hpp: In instantiation of 'void boost::_bi::list2<A1, A2>::operator()(boost::_bi::type<void>, F&, A&, int) [with F = boost::_mfi::mf1<void, Controller, std::auto_ptr<libtorrent::alert> >; A = boost::_bi::list1<const std::auto_ptr<libtorrent::alert>&>; A1 = boost::_bi::value<Controller*>; A2 = boost::arg<1>]': /usr/local/include/boost/bind/bind.hpp:905:50: required from 'boost::_bi::bind_t<R, F, L>::result_type boost::_bi::bind_t<R, F, L>::operator()(A1&&) [with A1 = std::auto_ptr<libtorrent::alert>; R = void; F = boost::_mfi::mf1<void, Controller, std::auto_ptr<libtorrent::alert> >; L = boost::_bi::list2<boost::_bi::value<Controller*>, boost::arg<1> >; boost::_bi::bind_t<R, F, L>::result_type = void]' /usr/local/include/boost/function/function_template.hpp:159:11: required from 'static void boost::detail::function::void_function_obj_invoker1<FunctionObj, R, T0>::invoke(boost::detail::function::function_buffer&, T0) [with FunctionObj = boost::_bi::bind_t<void, boost::_mfi::mf1<void, Controller, std::auto_ptr<libtorrent::alert> >, boost::_bi::list2<boost::_bi::value<Controller*>, boost::arg<1> > >; R = void; T0 = std::auto_ptr<libtorrent::alert>]' /usr/local/include/boost/function/function_template.hpp:940:38: required from 'void boost::function1<R, T1>::assign_to(Functor) [with Functor = boost::_bi::bind_t<void, boost::_mfi::mf1<void, Controller, std::auto_ptr<libtorrent::alert> >, boost::_bi::list2<boost::_bi::value<Controller*>, boost::arg<1> > >; R = void; T0 = std::auto_ptr<libtorrent::alert>]' /usr/local/include/boost/function/function_template.hpp:728:7: required from 'boost::function1<R, T1>::function1(Functor, typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type) [with Functor = boost::_bi::bind_t<void, boost::_mfi::mf1<void, Controller, std::auto_ptr<libtorrent::alert> >, boost::_bi::list2<boost::_bi::value<Controller*>, boost::arg<1> > >; R = void; T0 = std::auto_ptr<libtorrent::alert>; typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type = int]' /usr/local/include/boost/function/function_template.hpp:1077:16: required from 'boost::function<R(T0)>::function(Functor, typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type) [with Functor = boost::_bi::bind_t<void, boost::_mfi::mf1<void, Controller, std::auto_ptr<libtorrent::alert> >, boost::_bi::list2<boost::_bi::value<Controller*>, boost::arg<1> > >; R = void; T0 = std::auto_ptr<libtorrent::alert>; typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type = int]' ../../JoyStream/core/controller/Controller.cpp:1115:105: required from here /usr/local/include/boost/bind/bind.hpp:313:34: error: passing 'const std::auto_ptr<libtorrent::alert>' as 'this' argument of 'std::auto_ptr< <template-parameter-1-1> >::operator std::auto_ptr_ref<_Tp1>() [with _Tp1 = libtorrent::alert; _Tp = libtorrent::alert]' discards qualifiers [-fpermissive] unwrapper<F>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_]); |