你好,在 Leap 3.1编译kafka插件的时候有如下报错:
/data/eos3.1_source_with_kafka/src/leap/plugins/kafka_plugin/kafka_plugin.cpp:75:13: error: no template named 'optional' in namespace 'fc'
fc::optionalboost::signals2::scoped_connection accepted_block_connection;
~~~~^
/data/eos3.1_source_with_kafka/src/leap/plugins/kafka_plugin/kafka_plugin.cpp:76:13: error: no template named 'optional' in namespace 'fc'
fc::optionalboost::signals2::scoped_connection irreversible_block_connection;
~~~~^
/data/eos3.1_source_with_kafka/src/leap/plugins/kafka_plugin/kafka_plugin.cpp:77:13: error: no template named 'optional' in namespace 'fc'
fc::optionalboost::signals2::scoped_connection accepted_transaction_connection;
~~~~^
/data/eos3.1_source_with_kafka/src/leap/plugins/kafka_plugin/kafka_plugin.cpp:78:13: error: no template named 'optional' in namespace 'fc'
fc::optionalboost::signals2::scoped_connection applied_transaction_connection;
~~~~^
/data/eos3.1_source_with_kafka/src/leap/plugins/kafka_plugin/kafka_plugin.cpp:94:17: error: no template named 'optional' in namespace 'fc'
fc::optionalchain::transaction_receipt_header receipt;
~~~~^
/data/eos3.1_source_with_kafka/src/leap/plugins/kafka_plugin/kafka_plugin.cpp:162:13: error: no template named 'optional' in namespace 'fc'
fc::optionalchain::chain_id_type chain_id;
~~~~^
/data/eos3.1_source_with_kafka/src/leap/plugins/kafka_plugin/kafka_plugin.cpp:554:34: error: use of undeclared identifier 'transfer'
if (at.act.name != N(transfer) || at.receiver != at.act.account || at.receiver == N(eidosonecoin) || at.receiver == N(eosiopowcoin))
^
/data/eos3.1_source_with_kafka/src/leap/plugins/kafka_plugin/kafka_plugin.cpp:554:97: error: use of undeclared identifier 'eidosonecoin'
if (at.act.name != N(transfer) || at.receiver != at.act.account || at.receiver == N(eidosonecoin) || at.receiver == N(eosiopowcoin))
^
/data/eos3.1_source_with_kafka/src/leap/plugins/kafka_plugin/kafka_plugin.cpp:554:131: error: use of undeclared identifier 'eosiopowcoin'
if (at.act.name != N(transfer) || at.receiver != at.act.account || at.receiver == N(eidosonecoin) || at.receiver == N(eosiopowcoin))
/data/eos3.1_source_with_kafka/build/boost_1_70_0/bin/include/boost/function/function_template.hpp:158:33: error: no matching function for call to object of type '(lambda at /data/eos3.1_source_with_kafka/src/leap/plugins/kafka_plugin/kafka_plugin.cpp:711:25)' BOOST_FUNCTION_RETURN((*f)(BOOST_FUNCTION_ARGS)); ^~~~/data/eos3.1_source_with_kafka/build/boost_1_70_0/bin/include/boost/function/function_template.hpp:80:36: note: expanded from macro 'BOOST_FUNCTION_RETURN'
define BOOST_FUNCTION_RETURN(X) X
/data/eos3.1_source_with_kafka/build/boost_1_70_0/bin/include/boost/function/function_template.hpp:931:53: note: in instantiation of member function 'boost::detail::function::void_function_obj_invoker1<(lambda at /data/eos3.1_source_with_kafka/src/leap/plugins/kafka_plugin/kafka_plugin.cpp:711:25), void, std::__1::tuple<const std::__1::shared_ptreosio::chain::transaction_trace &, const std::__1::shared_ptr &>>::invoke' requested here { { &manager_type::manage }, &invoker_type::invoke };
^
/data/eos3.1_source_with_kafka/build/boost_1_70_0/bin/include/boost/function/function_template.hpp:720:13: note: in instantiation of function template specialization 'boost::function1<void, std::__1::tuple<const std::__1::shared_ptreosio::chain::transaction_trace &, const std::__1::shared_ptr &>>::assign_to<(lambda at /data/eos3.1_source_with_kafka/src/leap/plugins/kafka_plugin/kafka_plugin.cpp:711:25)>' requested here
this->assign_to(f); ^/data/eos3.1_source_with_kafka/build/boost_1_70_0/bin/include/boost/function/function_template.hpp:1068:5: note: in instantiation of function template specialization 'boost::function1<void, std::__1::tuple<const std::__1::shared_ptreosio::chain::transaction_trace &, const std::__1::shared_ptr &>>::function1<(lambda at /data/eos3.1_source_with_kafka/src/leap/plugins/kafka_plugin/kafka_plugin.cpp:711:25)>' requested here
base_type(f)
^
/data/eos3.1_source_with_kafka/build/boost_1_70_0/bin/include/boost/function/function_template.hpp:1121:5: note: in instantiation of function template specialization 'boost::function<void (std::__1::tuple<const std::__1::shared_ptreosio::chain::transaction_trace &, const std::__1::shared_ptr &>)>::function<(lambda at /data/eos3.1_source_with_kafka/src/leap/plugins/kafka_plugin/kafka_plugin.cpp:711:25)>' requested here self_type(f).swap(*this); ^/data/eos3.1_source_with_kafka/build/boost_1_70_0/bin/include/boost/signals2/detail/slot_template.hpp:160:24: note: in instantiation of function template specialization 'boost::function<void (std::__1::tuple<const std::__1::shared_ptreosio::chain::transaction_trace &, const std::__1::shared_ptr &>)>::operator=<(lambda at /data/eos3.1_source_with_kafka/src/leap/plugins/kafka_plugin/kafka_plugin.cpp:711:25)>' requested here
_slot_function = detail::get_invocable_slot(f, detail::tag_type(f));
^
/data/eos3.1_source_with_kafka/build/boost_1_70_0/bin/include/boost/signals2/detail/slot_template.hpp:85:9: note: in instantiation of function template specialization 'boost::signals2::slot<void (std::__1::tuple<const std::__1::shared_ptreosio::chain::transaction_trace &, const std::__1::shared_ptr &>), boost::function<void (std::__1::tuple<const std::__1::shared_ptreosio::chain::transaction_trace &, const std::__1::shared_ptr &>)>>::init_slot_function<(lambda at /data/eos3.1_source_with_kafka/src/leap/plugins/kafka_plugin/kafka_plugin.cpp:711:25)>' requested here init_slot_function(f); ^/data/eos3.1_source_with_kafka/src/leap/plugins/kafka_plugin/kafka_plugin.cpp:711:25: note: in instantiation of function template specialization 'boost::signals2::slot<void (std::__1::tuple<const std::__1::shared_ptreosio::chain::transaction_trace &, const std::__1::shared_ptr &>), boost::function<void (std::__1::tuple<const std::__1::shared_ptreosio::chain::transaction_trace &, const std::__1::shared_ptr &>)>>::slot<(lambda at /data/eos3.1_source_with_kafka/src/leap/plugins/kafka_plugin/kafka_plugin.cpp:711:25)>' requested here
[&](std::tuple<const chain::transaction_trace_ptr &, const chain::signed_transaction &> t) { ^/data/eos3.1_source_with_kafka/src/leap/plugins/kafka_plugin/kafka_plugin.cpp:711:25: note: candidate function not viable: no known conversion from 'tuple<[...], const std::__1::shared_ptr &>' to 'tuple<[...], const chain::signed_transaction &>' for 1st argument
10 errors generated.make[2]: *** [plugins/kafka_plugin/CMakeFiles/kafka_plugin.dir/build.make:76: plugins/kafka_plugin/CMakeFiles/kafka_plugin.dir/kafka_plugin.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:5385: plugins/kafka_plugin/CMakeFiles/kafka_plugin.dir/all] Error 2
make: *** [Makefile:166: all] Error 2