Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

outdated coding which errors out #213

Open
keefer223 opened this issue May 16, 2023 · 0 comments
Open

outdated coding which errors out #213

keefer223 opened this issue May 16, 2023 · 0 comments

Comments

@keefer223
Copy link

I'm using debian 11, and everything is up to date i7-7700 processor with 32g ram on a 1T SSD.

make errors out because of outdated coding.

keefer@Yiimp:/sugarchain$ make
Making all in src
make[1]: Entering directory '/home/keefer/sugarchain/src'
make[2]: Entering directory '/home/keefer/sugarchain/src'
CXX sugarchaind-bitcoind.o
CXX libbitcoin_server_a-addrdb.o
CXX libbitcoin_server_a-addrman.o
CXX libbitcoin_server_a-bloom.o
CXX libbitcoin_server_a-blockencodings.o
CXX libbitcoin_server_a-chain.o
CXX libbitcoin_server_a-checkpoints.o
CXX consensus/libbitcoin_server_a-tx_verify.o
CXX libbitcoin_server_a-httprpc.o
CXX libbitcoin_server_a-httpserver.o
CXX libbitcoin_server_a-init.o
In file included from /usr/include/boost/smart_ptr/detail/sp_thread_sleep.hpp:22,
from /usr/include/boost/smart_ptr/detail/yield_k.hpp:23,
from /usr/include/boost/smart_ptr/detail/spinlock_std_atomic.hpp:18,
from /usr/include/boost/smart_ptr/detail/spinlock.hpp:36,
from /usr/include/boost/smart_ptr/detail/spinlock_pool.hpp:25,
from /usr/include/boost/smart_ptr/shared_ptr.hpp:29,
from /usr/include/boost/shared_ptr.hpp:17,
from /usr/include/boost/signals2/signal.hpp:21,
from ./util.h:31,
from ./addrman.h:14,
from init.cpp:13:
/usr/include/boost/bind.hpp:36:1: note: ‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’
36 | BOOST_PRAGMA_MESSAGE(
| ^~~~~~~~~~~~~~~~~~~~
CXX libbitcoin_server_a-dbwrapper.o
CXX libbitcoin_server_a-merkleblock.o
CXX libbitcoin_server_a-miner.o
CXX libbitcoin_server_a-net.o
CXX libbitcoin_server_a-net_processing.o
CXX libbitcoin_server_a-noui.o
CXX policy/libbitcoin_server_a-fees.o
CXX policy/libbitcoin_server_a-policy.o
CXX policy/libbitcoin_server_a-rbf.o
CXX libbitcoin_server_a-pow.o
pow.cpp: In function ‘unsigned int GetNextWorkRequired(const CBlockIndex*, const CBlockHeader*, const Consensus::Params&)’:
pow.cpp:64:33: warning: comparison of integer expressions of different signedness: ‘const int’ and ‘const unsigned int’ [-Wsign-compare]
64 | pindexLast->nHeight >= params.nPowAllowMinDifficultyBlocksAfterHeight.get())
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CXX libbitcoin_server_a-rest.o
CXX rpc/libbitcoin_server_a-blockchain.o
CXX rpc/libbitcoin_server_a-mining.o
CXX rpc/libbitcoin_server_a-misc.o
CXX rpc/libbitcoin_server_a-net.o
CXX rpc/libbitcoin_server_a-rawtransaction.o
CXX rpc/libbitcoin_server_a-safemode.o
CXX rpc/libbitcoin_server_a-server.o
In file included from /usr/include/boost/smart_ptr/detail/sp_thread_sleep.hpp:22,
from /usr/include/boost/smart_ptr/detail/yield_k.hpp:23,
from /usr/include/boost/smart_ptr/detail/spinlock_std_atomic.hpp:18,
from /usr/include/boost/smart_ptr/detail/spinlock.hpp:36,
from /usr/include/boost/smart_ptr/detail/spinlock_pool.hpp:25,
from /usr/include/boost/smart_ptr/shared_ptr.hpp:29,
from /usr/include/boost/shared_ptr.hpp:17,
from /usr/include/boost/signals2/signal.hpp:21,
from ./ui_interface.h:13,
from rpc/server.cpp:13:
/usr/include/boost/bind.hpp:36:1: note: ‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’
36 | BOOST_PRAGMA_MESSAGE(
| ^~~~~~~~~~~~~~~~~~~~
CXX script/libbitcoin_server_a-sigcache.o
CXX script/libbitcoin_server_a-ismine.o
CXX libbitcoin_server_a-timedata.o
CXX libbitcoin_server_a-torcontrol.o
In file included from /usr/include/boost/smart_ptr/detail/sp_thread_sleep.hpp:22,
from /usr/include/boost/smart_ptr/detail/yield_k.hpp:23,
from /usr/include/boost/smart_ptr/detail/spinlock_std_atomic.hpp:18,
from /usr/include/boost/smart_ptr/detail/spinlock.hpp:36,
from /usr/include/boost/smart_ptr/detail/spinlock_pool.hpp:25,
from /usr/include/boost/smart_ptr/shared_ptr.hpp:29,
from /usr/include/boost/shared_ptr.hpp:17,
from /usr/include/boost/date_time/time_clock.hpp:17,
from /usr/include/boost/thread/thread_time.hpp:9,
from /usr/include/boost/thread/lock_types.hpp:18,
from /usr/include/boost/thread/pthread/thread_data.hpp:12,
from /usr/include/boost/thread/thread_only.hpp:17,
from /usr/include/boost/thread/thread.hpp:12,
from /usr/include/boost/thread.hpp:13,
from ./scheduler.h:14,
from ./torcontrol.h:11,
from torcontrol.cpp:6:
/usr/include/boost/bind.hpp:36:1: note: ‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’
36 | BOOST_PRAGMA_MESSAGE(
| ^~~~~~~~~~~~~~~~~~~~
CXX libbitcoin_server_a-txdb.o
CXX libbitcoin_server_a-txmempool.o
CXX libbitcoin_server_a-ui_interface.o
CXX libbitcoin_server_a-validation.o
validation.cpp: In constructor ‘ConnectTrace::ConnectTrace(CTxMemPool&)’:
validation.cpp:2360:94: error: ‘1’ was not declared in this scope
2360 | pool.NotifyEntryRemoved.connect(boost::bind(&ConnectTrace::NotifyEntryRemoved, this, 1, 2));
| ^~
validation.cpp:2360:94: note: suggested alternatives:
In file included from /usr/include/boost/mpl/aux
/include_preprocessed.hpp:37,
from /usr/include/boost/mpl/placeholders.hpp:43,
from /usr/include/boost/iterator/iterator_categories.hpp:16,
from /usr/include/boost/iterator/iterator_facade.hpp:13,
from /usr/include/boost/filesystem/path.hpp:29,
from /usr/include/boost/filesystem.hpp:16,
from ./fs.h:11,
from ./validation.h:15,
from validation.cpp:8:
/usr/include/boost/mpl/aux
/preprocessed/gcc/placeholders.hpp:29:16: note: ‘mpl
::_1’
29 | typedef arg<1> _1;
| ^~
In file included from /usr/include/boost/system/error_code.hpp:19,
from /usr/include/boost/filesystem/path_traits.hpp:22,
from /usr/include/boost/filesystem/path.hpp:26,
from /usr/include/boost/filesystem.hpp:16,
from ./fs.h:11,
from ./validation.h:15,
from validation.cpp:8:
/usr/include/c++/10/functional:221:34: note: ‘std::placeholders::1’
221 | extern const Placeholder<1> 1;
| ^~
In file included from /usr/include/boost/mpl/aux
/include_preprocessed.hpp:37,
from /usr/include/boost/mpl/placeholders.hpp:43,
from /usr/include/boost/iterator/iterator_categories.hpp:16,
from /usr/include/boost/iterator/iterator_facade.hpp:13,
from /usr/include/boost/filesystem/path.hpp:29,
from /usr/include/boost/filesystem.hpp:16,
from ./fs.h:11,
from ./validation.h:15,
from validation.cpp:8:
/usr/include/boost/mpl/aux
/preprocessed/gcc/placeholders.hpp:29:16: note: ‘mpl
::_1’
29 | typedef arg<1> 1;
| ^~
In file included from /usr/include/boost/bind/bind.hpp:2356,
from /usr/include/boost/multi_index/detail/ord_index_impl.hpp:83,
from /usr/include/boost/multi_index/ordered_index.hpp:17,
from ./txmempool.h:26,
from ./policy/rbf.h:8,
from validation.cpp:24:
/usr/include/boost/bind/placeholders.hpp:46:38: note: ‘boost::placeholders::1’
46 | BOOST_STATIC_CONSTEXPR boost::arg<1> 1;
| ^~
In file included from /usr/include/boost/mpl/aux
/include_preprocessed.hpp:37,
from /usr/include/boost/mpl/placeholders.hpp:43,
from /usr/include/boost/iterator/iterator_categories.hpp:16,
from /usr/include/boost/iterator/iterator_facade.hpp:13,
from /usr/include/boost/filesystem/path.hpp:29,
from /usr/include/boost/filesystem.hpp:16,
from ./fs.h:11,
from ./validation.h:15,
from validation.cpp:8:
/usr/include/boost/mpl/aux
/preprocessed/gcc/placeholders.hpp:29:16: note: ‘mpl
::_1’
29 | typedef arg<1> _1;
| ^~
validation.cpp:2360:98: error: ‘2’ was not declared in this scope
2360 | pool.NotifyEntryRemoved.connect(boost::bind(&ConnectTrace::NotifyEntryRemoved, this, 1, 2));
| ^~
validation.cpp:2360:98: note: suggested alternatives:
In file included from /usr/include/boost/mpl/aux
/include_preprocessed.hpp:37,
from /usr/include/boost/mpl/placeholders.hpp:43,
from /usr/include/boost/iterator/iterator_categories.hpp:16,
from /usr/include/boost/iterator/iterator_facade.hpp:13,
from /usr/include/boost/filesystem/path.hpp:29,
from /usr/include/boost/filesystem.hpp:16,
from ./fs.h:11,
from ./validation.h:15,
from validation.cpp:8:
/usr/include/boost/mpl/aux
/preprocessed/gcc/placeholders.hpp:42:16: note: ‘mpl
::_2’
42 | typedef arg<2> _2;
| ^~
In file included from /usr/include/boost/system/error_code.hpp:19,
from /usr/include/boost/filesystem/path_traits.hpp:22,
from /usr/include/boost/filesystem/path.hpp:26,
from /usr/include/boost/filesystem.hpp:16,
from ./fs.h:11,
from ./validation.h:15,
from validation.cpp:8:
/usr/include/c++/10/functional:222:34: note: ‘std::placeholders::2’
222 | extern const Placeholder<2> 2;
| ^~
In file included from /usr/include/boost/mpl/aux
/include_preprocessed.hpp:37,
from /usr/include/boost/mpl/placeholders.hpp:43,
from /usr/include/boost/iterator/iterator_categories.hpp:16,
from /usr/include/boost/iterator/iterator_facade.hpp:13,
from /usr/include/boost/filesystem/path.hpp:29,
from /usr/include/boost/filesystem.hpp:16,
from ./fs.h:11,
from ./validation.h:15,
from validation.cpp:8:
/usr/include/boost/mpl/aux
/preprocessed/gcc/placeholders.hpp:42:16: note: ‘mpl
::_2’
42 | typedef arg<2> 2;
| ^~
In file included from /usr/include/boost/bind/bind.hpp:2356,
from /usr/include/boost/multi_index/detail/ord_index_impl.hpp:83,
from /usr/include/boost/multi_index/ordered_index.hpp:17,
from ./txmempool.h:26,
from ./policy/rbf.h:8,
from validation.cpp:24:
/usr/include/boost/bind/placeholders.hpp:47:38: note: ‘boost::placeholders::2’
47 | BOOST_STATIC_CONSTEXPR boost::arg<2> 2;
| ^~
In file included from /usr/include/boost/mpl/aux
/include_preprocessed.hpp:37,
from /usr/include/boost/mpl/placeholders.hpp:43,
from /usr/include/boost/iterator/iterator_categories.hpp:16,
from /usr/include/boost/iterator/iterator_facade.hpp:13,
from /usr/include/boost/filesystem/path.hpp:29,
from /usr/include/boost/filesystem.hpp:16,
from ./fs.h:11,
from ./validation.h:15,
from validation.cpp:8:
/usr/include/boost/mpl/aux
/preprocessed/gcc/placeholders.hpp:42:16: note: ‘mpl
::_2’
42 | typedef arg<2> _2;
| ^~
validation.cpp: In destructor ‘ConnectTrace::ConnectTrace()’:
validation.cpp:2364:97: error: ‘1’ was not declared in this scope
2364 | pool.NotifyEntryRemoved.disconnect(boost::bind(&ConnectTrace::NotifyEntryRemoved, this, 1, 2));
| ^~
validation.cpp:2364:97: note: suggested alternatives:
In file included from /usr/include/boost/mpl/aux
/include_preprocessed.hpp:37,
from /usr/include/boost/mpl/placeholders.hpp:43,
from /usr/include/boost/iterator/iterator_categories.hpp:16,
from /usr/include/boost/iterator/iterator_facade.hpp:13,
from /usr/include/boost/filesystem/path.hpp:29,
from /usr/include/boost/filesystem.hpp:16,
from ./fs.h:11,
from ./validation.h:15,
from validation.cpp:8:
/usr/include/boost/mpl/aux
/preprocessed/gcc/placeholders.hpp:29:16: note: ‘mpl
::_1’
29 | typedef arg<1> _1;
| ^~
In file included from /usr/include/boost/system/error_code.hpp:19,
from /usr/include/boost/filesystem/path_traits.hpp:22,
from /usr/include/boost/filesystem/path.hpp:26,
from /usr/include/boost/filesystem.hpp:16,
from ./fs.h:11,
from ./validation.h:15,
from validation.cpp:8:
/usr/include/c++/10/functional:221:34: note: ‘std::placeholders::1’
221 | extern const Placeholder<1> 1;
| ^~
In file included from /usr/include/boost/mpl/aux
/include_preprocessed.hpp:37,
from /usr/include/boost/mpl/placeholders.hpp:43,
from /usr/include/boost/iterator/iterator_categories.hpp:16,
from /usr/include/boost/iterator/iterator_facade.hpp:13,
from /usr/include/boost/filesystem/path.hpp:29,
from /usr/include/boost/filesystem.hpp:16,
from ./fs.h:11,
from ./validation.h:15,
from validation.cpp:8:
/usr/include/boost/mpl/aux
/preprocessed/gcc/placeholders.hpp:29:16: note: ‘mpl
::_1’
29 | typedef arg<1> 1;
| ^~
In file included from /usr/include/boost/bind/bind.hpp:2356,
from /usr/include/boost/multi_index/detail/ord_index_impl.hpp:83,
from /usr/include/boost/multi_index/ordered_index.hpp:17,
from ./txmempool.h:26,
from ./policy/rbf.h:8,
from validation.cpp:24:
/usr/include/boost/bind/placeholders.hpp:46:38: note: ‘boost::placeholders::1’
46 | BOOST_STATIC_CONSTEXPR boost::arg<1> 1;
| ^~
In file included from /usr/include/boost/mpl/aux
/include_preprocessed.hpp:37,
from /usr/include/boost/mpl/placeholders.hpp:43,
from /usr/include/boost/iterator/iterator_categories.hpp:16,
from /usr/include/boost/iterator/iterator_facade.hpp:13,
from /usr/include/boost/filesystem/path.hpp:29,
from /usr/include/boost/filesystem.hpp:16,
from ./fs.h:11,
from ./validation.h:15,
from validation.cpp:8:
/usr/include/boost/mpl/aux
/preprocessed/gcc/placeholders.hpp:29:16: note: ‘mpl
::_1’
29 | typedef arg<1> _1;
| ^~
validation.cpp:2364:101: error: ‘2’ was not declared in this scope
2364 | pool.NotifyEntryRemoved.disconnect(boost::bind(&ConnectTrace::NotifyEntryRemoved, this, 1, 2));
| ^~
validation.cpp:2364:101: note: suggested alternatives:
In file included from /usr/include/boost/mpl/aux
/include_preprocessed.hpp:37,
from /usr/include/boost/mpl/placeholders.hpp:43,
from /usr/include/boost/iterator/iterator_categories.hpp:16,
from /usr/include/boost/iterator/iterator_facade.hpp:13,
from /usr/include/boost/filesystem/path.hpp:29,
from /usr/include/boost/filesystem.hpp:16,
from ./fs.h:11,
from ./validation.h:15,
from validation.cpp:8:
/usr/include/boost/mpl/aux
/preprocessed/gcc/placeholders.hpp:42:16: note: ‘mpl
::_2’
42 | typedef arg<2> _2;
| ^~
In file included from /usr/include/boost/system/error_code.hpp:19,
from /usr/include/boost/filesystem/path_traits.hpp:22,
from /usr/include/boost/filesystem/path.hpp:26,
from /usr/include/boost/filesystem.hpp:16,
from ./fs.h:11,
from ./validation.h:15,
from validation.cpp:8:
/usr/include/c++/10/functional:222:34: note: ‘std::placeholders::2’
222 | extern const Placeholder<2> 2;
| ^~
In file included from /usr/include/boost/mpl/aux
/include_preprocessed.hpp:37,
from /usr/include/boost/mpl/placeholders.hpp:43,
from /usr/include/boost/iterator/iterator_categories.hpp:16,
from /usr/include/boost/iterator/iterator_facade.hpp:13,
from /usr/include/boost/filesystem/path.hpp:29,
from /usr/include/boost/filesystem.hpp:16,
from ./fs.h:11,
from ./validation.h:15,
from validation.cpp:8:
/usr/include/boost/mpl/aux
/preprocessed/gcc/placeholders.hpp:42:16: note: ‘mpl
::_2’
42 | typedef arg<2> 2;
| ^~
In file included from /usr/include/boost/bind/bind.hpp:2356,
from /usr/include/boost/multi_index/detail/ord_index_impl.hpp:83,
from /usr/include/boost/multi_index/ordered_index.hpp:17,
from ./txmempool.h:26,
from ./policy/rbf.h:8,
from validation.cpp:24:
/usr/include/boost/bind/placeholders.hpp:47:38: note: ‘boost::placeholders::2’
47 | BOOST_STATIC_CONSTEXPR boost::arg<2> 2;
| ^~
In file included from /usr/include/boost/mpl/aux
/include_preprocessed.hpp:37,
from /usr/include/boost/mpl/placeholders.hpp:43,
from /usr/include/boost/iterator/iterator_categories.hpp:16,
from /usr/include/boost/iterator/iterator_facade.hpp:13,
from /usr/include/boost/filesystem/path.hpp:29,
from /usr/include/boost/filesystem.hpp:16,
from ./fs.h:11,
from ./validation.h:15,
from validation.cpp:8:
/usr/include/boost/mpl/aux
/preprocessed/gcc/placeholders.hpp:42:16: note: ‘mpl
::_2’
42 | typedef arg<2> _2;
| ^~
make[2]: *** [Makefile:6466: libbitcoin_server_a-validation.o] Error 1
make[2]: Leaving directory '/home/keefer/sugarchain/src'
make[1]: *** [Makefile:9973: all-recursive] Error 1
make[1]: Leaving directory '/home/keefer/sugarchain/src'
make: *** [Makefile:749: all-recursive] Error 1
keefer@Yiimp:~/sugarchain$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant