Opened 10 years ago

Closed 10 years ago

#47577 closed defect (fixed)

bitcoin-0.10.1 compilation problems

Reported by: easye Owned by: easye
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: easye
Port: bitcoin

Description

After patching 'finance/bitcoin' in attached file, one runs into the following compilation error:

In file included from rpcrawtransaction.cpp:6:
In file included from ./base58.h:21:
In file included from ./script/standard.h:12:
In file included from /opt/local/include/boost/variant.hpp:22:
/opt/local/include/boost/variant/get.hpp:212:5: error: implicit instantiation of undefined template 'boost::STATIC_ASSERTION_FAILURE<false>'
    BOOST_STATIC_ASSERT_MSG(
    ^
/opt/local/include/boost/static_assert.hpp:36:48: note: expanded from macro 'BOOST_STATIC_ASSERT_MSG'
#     define BOOST_STATIC_ASSERT_MSG( B, Msg ) BOOST_STATIC_ASSERT( B )
                                               ^
/opt/local/include/boost/static_assert.hpp:169:13: note: expanded from macro 'BOOST_STATIC_ASSERT'
            sizeof(::boost::STATIC_ASSERTION_FAILURE< BOOST_STATIC_ASSERT_BOOL_CAST( __VA_ARGS__ ) >)>\
            ^
/opt/local/include/boost/variant/get.hpp:284:12: note: in instantiation of function template specialization 'boost::strict_get<const CScriptID &, CNoDestination, CKeyID, CScriptID, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_>' requested here
    return strict_get<U>(operand);
           ^
rpcrawtransaction.cpp:290:48: note: in instantiation of function template specialization 'boost::get<const CScriptID &, CNoDestination, CKeyID, CScriptID, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_>' requested here
                const CScriptID& hash = boost::get<const CScriptID&>(address);
                                               ^
/opt/local/include/boost/static_assert.hpp:87:26: note: template is declared here
template <bool x> struct STATIC_ASSERTION_FAILURE;
                         ^
1 error generated.
make[2]: *** [libbitcoin_server_a-rpcrawtransaction.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_Users_evenson_dports_finance_bitcoin/bitcoin/work/bitcoin-0.10.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_Users_evenson_dports_finance_bitcoin/bitcoin/work/bitcoin-0.10.1/src'
make: *** [all-recursive] Error 1
make: Leaving directory `/opt/local/var/macports/build/_Users_evenson_dports_finance_bitcoin/bitcoin/work/bitcoin-0.10.1'
Command failed:  cd "/opt/local/var/macports/build/_Users_evenson_dports_finance_bitcoin/bitcoin/work/bitcoin-0.10.1" && /usr/bin/make -w all 

Attachments (1)

finance-bitcoin-Portfile-0.10.1.diff (2.2 KB) - added by easye 10 years ago.

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by easye

comment:1 Changed 10 years ago by vergus@…

reported earlier as bitcoin issue, since it's not specific to macports: https://github.com/bitcoin/bitcoin/issues/6056

comment:2 in reply to:  1 Changed 10 years ago by easye

Replying to vergus@…:

reported earlier as bitcoin issue, since it's not specific to macports: https://github.com/bitcoin/bitcoin/issues/6056

Thanks for the notification: I'll watch that issue for resolution rather than trying to wade through C++/Boost interactions

As far as I can determine, Bitcoin Core doesn't declare which versions of its dependencies it should be compiled against. Or is that a mistaken impression?

comment:3 Changed 10 years ago by easye

Resolution: fixed
Status: newclosed

Source was moved around post v0.10.1 tag, so it took a bit of searching to find the right place to apply a derived patch.

Resolved with <http://trac.macports.org/changeset/136010>.

Note: See TracTickets for help on using tickets.