cannot build

138 views
Skip to first unread message

Thien ND

unread,
Jan 16, 2013, 10:01:38 AM1/16/13
to libpax...@googlegroups.com
Hi,
I can not build the libpaxos-cpp-0.6.1, plz help:
....
In file included from /usr/include/c++/4.7/utility:72:0,
                 from /usr/include/boost/config/no_tr1/utility.hpp:21,
                 from /usr/include/boost/config/select_stdlib_config.hpp:33,
                 from /usr/include/boost/config.hpp:40,
                 from /usr/include/boost/uuid/uuid.hpp:35,
                 from /usr/include/boost/uuid/uuid_io.hpp:15,
                 from detail/client/protocol/initiate_request.cpp:1:
/usr/include/c++/4.7/bits/stl_pair.h:119:17: note: 'constexpr std::pair<_T1, _T2>::pair(const std::pair<_T1, _T2>&) [with _T1 = const boost::exception_detail::type_info_; _T2 = boost::shared_ptr<boost::exception_detail::error_info_base>; std::pair<_T1, _T2> = std::pair<const boost::exception_detail::type_info_, boost::shared_ptr<boost::exception_detail::error_info_base> >]' is implicitly deleted because the default definition would be ill-formed:
/usr/include/c++/4.7/bits/stl_pair.h:119:17: error: use of deleted function 'boost::shared_ptr<boost::exception_detail::error_info_base>::shared_ptr(const boost::shared_ptr<boost::exception_detail::error_info_base>&)'
In file included from /usr/include/boost/function/detail/maybe_include.hpp:23:0,
                 from /usr/include/boost/function/detail/function_iterate.hpp:14,
                 from /usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp:57,
                 from /usr/include/boost/function.hpp:64,
                 from detail/client/protocol/../../command.hpp:8,
                 from detail/client/protocol/initiate_request.cpp:4:
/usr/include/boost/function/function_template.hpp: At global scope:
/usr/include/boost/function/function_template.hpp:712:1: error: 'boost::function2<R, T1, T2>::function2(Functor, typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type) [with Functor = paxos::detail::client::protocol::initiate_request::step1(const string&, paxos::detail::quorum::client_view&, paxos::detail::client::protocol::initiate_request::callback_type, paxos::detail::client::protocol::initiate_request::queue_guard_type)::<lambda(boost::optional<paxos::detail::error_code>, const paxos::detail::command&)>; R = void; T0 = boost::optional<paxos::detail::error_code>; T1 = const paxos::detail::command&; typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type = int]', declared using local type 'paxos::detail::client::protocol::initiate_request::step1(const string&, paxos::detail::quorum::client_view&, paxos::detail::client::protocol::initiate_request::callback_type, paxos::detail::client::protocol::initiate_request::queue_guard_type)::<lambda(boost::optional<paxos::detail::error_code>, const paxos::detail::command&)>', is used but never defined [-fpermissive]
make[2]: *** [detail/client/protocol/initiate_request.lo] Error 1
make[2]: Leaving directory `/home/bobo/libpaxos-cpp-0.6.1/paxos++'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bobo/libpaxos-cpp-0.6.1'
make: *** [all] Error 2

Leon Mergen

unread,
Jan 16, 2013, 6:16:06 PM1/16/13
to libpax...@googlegroups.com
Hello Thien,

What is the gcc and boost version you're using ?


- Leon

Leon Mergen

unread,
Jan 17, 2013, 6:16:14 AM1/17/13
to Bobo Nguyen Duc Thien, libpax...@googlegroups.com
Yeah this looks like it has something to do with the move semantics. I
can't reproduce it at my system here, but I'll take a look as soon as
I can.

Regards,

- Leon Mergen



On Thu, Jan 17, 2013 at 12:14 PM, Bobo Nguyen Duc Thien
<thie...@yahoo.com> wrote:
> I have other problem: here it is:
> What happened with "libpaxos-cpp-0.6.1/examples/introduction_1"?
> -----------------------
>
> /usr/include/c++/4.7/bits/stl_pair.h:119:17: note: ‘constexpr std::pair<_T1,
> _T2>::pair(const std::pair<_T1, _T2>&) [with _T1 = const
> boost::exception_detail::type_info_; _T2 =
> boost::shared_ptr<boost::exception_detail::error_info_base>; std::pair<_T1,
> _T2> = std::pair<const boost::exception_detail::type_info_,
> boost::shared_ptr<boost::exception_detail::error_info_base> >]’ is
> implicitly deleted because the default definition would be ill-formed:
> /usr/include/c++/4.7/bits/stl_pair.h:119:17: error: use of deleted function
> ‘boost::shared_ptr<boost::exception_detail::error_info_base>::shared_ptr(const
> boost::shared_ptr<boost::exception_detail::error_info_base>&)’
> make[3]: *** [client.o] Error 1
> make[3]: Leaving directory
> `/home/bobo/libpaxos-cpp-0.6.1/examples/introduction_1'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/bobo/libpaxos-cpp-0.6.1/examples'
>
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/bobo/libpaxos-cpp-0.6.1'
> make: *** [all] Error 2
>
>
>
> On Thu, Jan 17, 2013 at 10:38 AM, Bobo Nguyen Duc Thien <thie...@yahoo.com>
> wrote:
>>
>> Hi,
>> am using GCC 4.7 and C++11 suport. Boost 1.52. Ubuntu 12.04.
>> Thank you
>>
>>
>>
>> On Wed, Jan 16, 2013 at 5:01 PM, Leon Mergen <le...@solatis.com> wrote:
>>>
>>> Hello,
>>>
>>> What is your compiler version and boost version ?
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups
>>> > "libpaxos-cpp" group.
>>> > To post to this group, send email to libpax...@googlegroups.com.
>>> > To unsubscribe from this group, send email to
>>> > libpaxos-cpp...@googlegroups.com.
>>> >
>>> >
>>
>>
>>
>>
>> --
>> Thank you very much,
>> Cheers,
>> Thien (Mr.Bobo)
>> ======================
>> Mobile/Viber: +39-392-619-9472
>
>
>
>
> --
> Thank you very much,
> Cheers,
> Thien (Mr.Bobo)
> ======================
> Mobile/Viber: +39-392-619-9472
Reply all
Reply to author
Forward
0 new messages