Post
Topic
Board Announcements (Altcoins)
Re: [ANN] Zettelkasten - ZETTEL, coin with new hashalgo - CPU-mineable (for a while)
by
Balych
on 27/04/2018, 19:03:31 UTC
Tried building from Github source on Ubuntu 16.04, but this seems to need a much older version of libboost.  Any plans to upgrade to a more recent bitcoin-core base?

ii  libboost1.58-dev:amd64                                      1.58.0+dfsg-5ubuntu3.1                                      amd64        Boost C++ Libraries development files


Code:
$ make -f makefile.unix
/bin/sh ../share/genbuild.sh obj/build.h
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-paramet
er -std=gnu++0x -Wno-literal-suffix -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_
BITS=64 -I/home/gpu/zettelkasten/src -I/home/gpu/zettelkasten/src/obj -DUSE_UPNP
=0 -DUSE_IPV6=1 -I/home/gpu/zettelkasten/src/leveldb/include -I/home/gpu/zettelk
asten/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protect
or-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/rpcrawtransaction.d -
o obj/rpcrawtransaction.o rpcrawtransaction.cpp
In file included from /usr/include/boost/iterator/iterator_categories.hpp:22:0,
                 from /usr/include/boost/iterator/iterator_facade.hpp:14,
                 from /usr/include/boost/range/iterator_range_core.hpp:27,
                 from /usr/include/boost/range/iterator_range.hpp:13,
                 from /usr/include/boost/assign/list_of.hpp:20,
                 from rpcrawtransaction.cpp:6:
/usr/include/boost/variant/get.hpp: In instantiation of ‘typename boost::add_reference::type boost::strict_get(boost::variant&) [with U = const CScriptID&; T0 = CNoDestination; TN = {CKeyID, CScriptID}; typename boost::add_reference::type = const CScriptID&]’:
/usr/include/boost/variant/get.hpp:284:25:   required from ‘typename boost::add_reference::type boost::get(boost::variant&) [with U = const CScriptID&; T0 = CNoDestination; TN = {CKeyID, CScriptID}; typename boost::add_reference::type = const CScriptID&]’
rpcrawtransaction.cpp:242:77:   required from here
/usr/include/boost/variant/get.hpp:212:5: error: static assertion failed: boost::variant does not contain specified type U, call to boost::get(boost::variant&) will always throw boost::bad_get exception
     BOOST_STATIC_ASSERT_MSG(
     ^
makefile.unix:184: recipe for target 'obj/rpcrawtransaction.o' failed
make: *** [obj/rpcrawtransaction.o] Error 1

Change at 242 line in src/rpcrawtransaction.cpp
Quote
const CScriptID& hash = boost::get(address);
for
Quote
const CScriptID& hash = boost::get(address);