Fehler beim Kompilieren des Litecoin-Klons, Boost-Fehler

Ich versuche, Litecoin zum Üben zu klonen, und aus irgendeinem Grund funktioniert mein Build-System dieses Mal nicht richtig.

Hier ist der Fehler, den ich habe, nachdem ich versucht habe, meinen Klon UND die Litecoin 8.7.4-Quelle zu kompilieren

bitcoinrpc.cpp:984:52:   required from here
/usr/include/boost/thread/once.hpp:38:18: error: no matching function for     call to ‘call_once(boost::once_flag&, void (*&)())’
     call_once(flag,func);
              ^
In file included from /usr/include/boost/thread/once.hpp:20:0,
             from /usr/include/boost/thread.hpp:17,
             from util.h:24,
             from bignum.h:12,
             from main.h:8,
             from wallet.h:13,
             from init.h:8,
             from bitcoinrpc.cpp:6:
/usr/include/boost/thread/pthread/once_atomic.hpp:121:15: note: candidate: template<class Function, class ... ArgTypes> void boost::call_once(boost::once_flag&, boost::detail::thread_move_t<T>, boost::detail::thread_move_t<Args>...)
   inline void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTypes)... args)
           ^
/usr/include/boost/thread/pthread/once_atomic.hpp:121:15: note:   template argument deduction/substitution failed:
In file included from /usr/include/boost/thread.hpp:17:0,
             from util.h:24,
             from bignum.h:12,
             from main.h:8,
             from wallet.h:13,
             from init.h:8,
             from bitcoinrpc.cpp:6:
/usr/include/boost/thread/once.hpp:38:18: note:   mismatched types ‘boost::detail::thread_move_t<T>’ and ‘void (*)()’
     call_once(flag,func);
              ^
/usr/include/boost/thread/once.hpp:35:13: note: candidate: template<class         Function> void boost::call_once(Function, boost::once_flag&)
inline void call_once(Function func,once_flag& flag)
         ^
/usr/include/boost/thread/once.hpp:35:13: note:   template argument deduction/substitution failed:
/usr/include/boost/thread/once.hpp:38:18: note:   cannot convert ‘func’   (type ‘void (*)()’) to type ‘boost::once_flag&’
     call_once(flag,func);
              ^
make: *** [obj/bitcoinrpc.o] Error 1

Kann mir bitte jemand sagen was das ist? Ich habe versucht, ein Problem zu lösen und eine Zeile in rpcrawtransaction.cpp zu ändern

<const CScriptID &> 

Zu

<CScriptID> 

und auch Code-Snippet von Feathercoin ausprobiert, beide erfolglos.

Wäre sehr dankbar, wenn jemand helfen könnte, mein System wieder baubar zu machen.

Antworten (1)

Vergiss es, tut mir leid, ich habe diesen Teil überwunden. Ich hatte als der Compiler von update-alternatives geklirrt, musste zurück auf gcc wechseln. Derzeit am kompilieren, hoffentlich keine Fehler mehr.