Don't forget to
before installing the packages. You may have an old version of one of them.
Then try
make -f makefile.unix clean
make -f makefile.unix USE_UPNP=1
Pretty sure I've seen this particular build error before, i can't quite remember what fixed it.
I updated and used your commands but it still not works
Here the complete output:
node@node-V ~/navcoin2-master/src $ make -f makefile.unix clean
rm -f navcoind
rm -f obj/*.o
rm -f obj/*.P
rm -f obj/build.h
node@node-V ~/navcoin2-master/src $ make -f makefile.unix USE_UPNP=1
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wunused-function -Wunused-variable -fpermissive -Wconversion-null -g -DBOOST_SPIRIT_THREADSAFE -I/home/node/navcoin2-master/src -I/home/node/navcoin2-master/src/obj -DUSE_UPNP=1 -DENABLE_WALLET -I/home/node/navcoin2-master/src/secp256k1/include -I/home/node/navcoin2-master/src/leveldb/include -I/home/node/navcoin2-master/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/alert.d -o obj/alert.o alert.cpp
/bin/sh ../share/genbuild.sh obj/build.h
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wunused-function -Wunused-variable -fpermissive -Wconversion-null -g -DBOOST_SPIRIT_THREADSAFE -I/home/node/navcoin2-master/src -I/home/node/navcoin2-master/src/obj -DUSE_UPNP=1 -DENABLE_WALLET -I/home/node/navcoin2-master/src/secp256k1/include -I/home/node/navcoin2-master/src/leveldb/include -I/home/node/navcoin2-master/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/version.d -o obj/version.o version.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wunused-function -Wunused-variable -fpermissive -Wconversion-null -g -DBOOST_SPIRIT_THREADSAFE -I/home/node/navcoin2-master/src -I/home/node/navcoin2-master/src/obj -DUSE_UPNP=1 -DENABLE_WALLET -I/home/node/navcoin2-master/src/secp256k1/include -I/home/node/navcoin2-master/src/leveldb/include -I/home/node/navcoin2-master/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/checkpoints.d -o obj/checkpoints.o checkpoints.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wunused-function -Wunused-variable -fpermissive -Wconversion-null -g -DBOOST_SPIRIT_THREADSAFE -I/home/node/navcoin2-master/src -I/home/node/navcoin2-master/src/obj -DUSE_UPNP=1 -DENABLE_WALLET -I/home/node/navcoin2-master/src/secp256k1/include -I/home/node/navcoin2-master/src/leveldb/include -I/home/node/navcoin2-master/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/netbase.d -o obj/netbase.o netbase.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wunused-function -Wunused-variable -fpermissive -Wconversion-null -g -DBOOST_SPIRIT_THREADSAFE -I/home/node/navcoin2-master/src -I/home/node/navcoin2-master/src/obj -DUSE_UPNP=1 -DENABLE_WALLET -I/home/node/navcoin2-master/src/secp256k1/include -I/home/node/navcoin2-master/src/leveldb/include -I/home/node/navcoin2-master/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/addrman.d -o obj/addrman.o addrman.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wunused-function -Wunused-variable -fpermissive -Wconversion-null -g -DBOOST_SPIRIT_THREADSAFE -I/home/node/navcoin2-master/src -I/home/node/navcoin2-master/src/obj -DUSE_UPNP=1 -DENABLE_WALLET -I/home/node/navcoin2-master/src/secp256k1/include -I/home/node/navcoin2-master/src/leveldb/include -I/home/node/navcoin2-master/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/crypter.d -o obj/crypter.o crypter.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wunused-function -Wunused-variable -fpermissive -Wconversion-null -g -DBOOST_SPIRIT_THREADSAFE -I/home/node/navcoin2-master/src -I/home/node/navcoin2-master/src/obj -DUSE_UPNP=1 -DENABLE_WALLET -I/home/node/navcoin2-master/src/secp256k1/include -I/home/node/navcoin2-master/src/leveldb/include -I/home/node/navcoin2-master/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/key.d -o obj/key.o key.cpp
key.cpp: In member function ‘bool CPubKey::VerifyCompact(const uint256&, const std::vector&) const’:
key.cpp:632:10: warning: unused variable ‘fComp’ [-Wunused-variable]
bool fComp = IsCompressed();
^
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wunused-function -Wunused-variable -fpermissive -Wconversion-null -g -DBOOST_SPIRIT_THREADSAFE -I/home/node/navcoin2-master/src -I/home/node/navcoin2-master/src/obj -DUSE_UPNP=1 -DENABLE_WALLET -I/home/node/navcoin2-master/src/secp256k1/include -I/home/node/navcoin2-master/src/leveldb/include -I/home/node/navcoin2-master/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/eckey.d -o obj/eckey.o eckey.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wunused-function -Wunused-variable -fpermissive -Wconversion-null -g -DBOOST_SPIRIT_THREADSAFE -I/home/node/navcoin2-master/src -I/home/node/navcoin2-master/src/obj -DUSE_UPNP=1 -DENABLE_WALLET -I/home/node/navcoin2-master/src/secp256k1/include -I/home/node/navcoin2-master/src/leveldb/include -I/home/node/navcoin2-master/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/init.d -o obj/init.o init.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wunused-function -Wunused-variable -fpermissive -Wconversion-null -g -DBOOST_SPIRIT_THREADSAFE -I/home/node/navcoin2-master/src -I/home/node/navcoin2-master/src/obj -DUSE_UPNP=1 -DENABLE_WALLET -I/home/node/navcoin2-master/src/secp256k1/include -I/home/node/navcoin2-master/src/leveldb/include -I/home/node/navcoin2-master/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/bitcoind.d -o obj/bitcoind.o bitcoind.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wunused-function -Wunused-variable -fpermissive -Wconversion-null -g -DBOOST_SPIRIT_THREADSAFE -I/home/node/navcoin2-master/src -I/home/node/navcoin2-master/src/obj -DUSE_UPNP=1 -DENABLE_WALLET -I/home/node/navcoin2-master/src/secp256k1/include -I/home/node/navcoin2-master/src/leveldb/include -I/home/node/navcoin2-master/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/keystore.d -o obj/keystore.o keystore.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wunused-function -Wunused-variable -fpermissive -Wconversion-null -g -DBOOST_SPIRIT_THREADSAFE -I/home/node/navcoin2-master/src -I/home/node/navcoin2-master/src/obj -DUSE_UPNP=1 -DENABLE_WALLET -I/home/node/navcoin2-master/src/secp256k1/include -I/home/node/navcoin2-master/src/leveldb/include -I/home/node/navcoin2-master/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/core.d -o obj/core.o core.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wunused-function -Wunused-variable -fpermissive -Wconversion-null -g -DBOOST_SPIRIT_THREADSAFE -I/home/node/navcoin2-master/src -I/home/node/navcoin2-master/src/obj -DUSE_UPNP=1 -DENABLE_WALLET -I/home/node/navcoin2-master/src/secp256k1/include -I/home/node/navcoin2-master/src/leveldb/include -I/home/node/navcoin2-master/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/main.d -o obj/main.o main.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wunused-function -Wunused-variable -fpermissive -Wconversion-null -g -DBOOST_SPIRIT_THREADSAFE -I/home/node/navcoin2-master/src -I/home/node/navcoin2-master/src/obj -DUSE_UPNP=1 -DENABLE_WALLET -I/home/node/navcoin2-master/src/secp256k1/include -I/home/node/navcoin2-master/src/leveldb/include -I/home/node/navcoin2-master/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/net.d -o obj/net.o net.cpp
net.cpp:1099:20: warning: ‘strDNSSeed’ defined but not used [-Wunused-variable]
static const char *strDNSSeed[][2] = {
^
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wunused-function -Wunused-variable -fpermissive -Wconversion-null -g -DBOOST_SPIRIT_THREADSAFE -I/home/node/navcoin2-master/src -I/home/node/navcoin2-master/src/obj -DUSE_UPNP=1 -DENABLE_WALLET -I/home/node/navcoin2-master/src/secp256k1/include -I/home/node/navcoin2-master/src/leveldb/include -I/home/node/navcoin2-master/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/protocol.d -o obj/protocol.o protocol.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wunused-function -Wunused-variable -fpermissive -Wconversion-null -g -DBOOST_SPIRIT_THREADSAFE -I/home/node/navcoin2-master/src -I/home/node/navcoin2-master/src/obj -DUSE_UPNP=1 -DENABLE_WALLET -I/home/node/navcoin2-master/src/secp256k1/include -I/home/node/navcoin2-master/src/leveldb/include -I/home/node/navcoin2-master/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/rpcclient.d -o obj/rpcclient.o rpcclient.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wunused-function -Wunused-variable -fpermissive -Wconversion-null -g -DBOOST_SPIRIT_THREADSAFE -I/home/node/navcoin2-master/src -I/home/node/navcoin2-master/src/obj -DUSE_UPNP=1 -DENABLE_WALLET -I/home/node/navcoin2-master/src/secp256k1/include -I/home/node/navcoin2-master/src/leveldb/include -I/home/node/navcoin2-master/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/rpcprotocol.d -o obj/rpcprotocol.o rpcprotocol.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wunused-function -Wunused-variable -fpermissive -Wconversion-null -g -DBOOST_SPIRIT_THREADSAFE -I/home/node/navcoin2-master/src -I/home/node/navcoin2-master/src/obj -DUSE_UPNP=1 -DENABLE_WALLET -I/home/node/navcoin2-master/src/secp256k1/include -I/home/node/navcoin2-master/src/leveldb/include -I/home/node/navcoin2-master/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/rpcserver.d -o obj/rpcserver.o rpcserver.cpp
rpcserver.cpp:324:1: warning: missing initializer for member ‘CRPCCommand::reqWallet’ [-Wmissing-field-initializers]
};
^
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wunused-function -Wunused-variable -fpermissive -Wconversion-null -g -DBOOST_SPIRIT_THREADSAFE -I/home/node/navcoin2-master/src -I/home/node/navcoin2-master/src/obj -DUSE_UPNP=1 -DENABLE_WALLET -I/home/node/navcoin2-master/src/secp256k1/include -I/home/node/navcoin2-master/src/leveldb/include -I/home/node/navcoin2-master/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/rpcmisc.d -o obj/rpcmisc.o rpcmisc.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wunused-function -Wunused-variable -fpermissive -Wconversion-null -g -DBOOST_SPIRIT_THREADSAFE -I/home/node/navcoin2-master/src -I/home/node/navcoin2-master/src/obj -DUSE_UPNP=1 -DENABLE_WALLET -I/home/node/navcoin2-master/src/secp256k1/include -I/home/node/navcoin2-master/src/leveldb/include -I/home/node/navcoin2-master/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/rpcnet.d -o obj/rpcnet.o rpcnet.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wunused-function -Wunused-variable -fpermissive -Wconversion-null -g -DBOOST_SPIRIT_THREADSAFE -I/home/node/navcoin2-master/src -I/home/node/navcoin2-master/src/obj -DUSE_UPNP=1 -DENABLE_WALLET -I/home/node/navcoin2-master/src/secp256k1/include -I/home/node/navcoin2-master/src/leveldb/include -I/home/node/navcoin2-master/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/rpcblockchain.d -o obj/rpcblockchain.o rpcblockchain.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wunused-function -Wunused-variable -fpermissive -Wconversion-null -g -DBOOST_SPIRIT_THREADSAFE -I/home/node/navcoin2-master/src -I/home/node/navcoin2-master/src/obj -DUSE_UPNP=1 -DENABLE_WALLET -I/home/node/navcoin2-master/src/secp256k1/include -I/home/node/navcoin2-master/src/leveldb/include -I/home/node/navcoin2-master/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-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; T1 = CKeyID; T2 = CScriptID; T3 = CSecretAddress; T4 = boost::detail::variant::void_; T5 = boost::detail::variant::void_; T6 = boost::detail::variant::void_; T7 = boost::detail::variant::void_; T8 = boost::detail::variant::void_; T9 = boost::detail::variant::void_; T10 = boost::detail::variant::void_; T11 = boost::detail::variant::void_; T12 = boost::detail::variant::void_; T13 = boost::detail::variant::void_; T14 = boost::detail::variant::void_; T15 = boost::detail::variant::void_; T16 = boost::detail::variant::void_; T17 = boost::detail::variant::void_; T18 = boost::detail::variant::void_; T19 = boost::detail::variant::void_; 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; T1 = CKeyID; T2 = CScriptID; T3 = CSecretAddress; T4 = boost::detail::variant::void_; T5 = boost::detail::variant::void_; T6 = boost::detail::variant::void_; T7 = boost::detail::variant::void_; T8 = boost::detail::variant::void_; T9 = boost::detail::variant::void_; T10 = boost::detail::variant::void_; T11 = boost::detail::variant::void_; T12 = boost::detail::variant::void_; T13 = boost::detail::variant::void_; T14 = boost::detail::variant::void_; T15 = boost::detail::variant::void_; T16 = boost::detail::variant::void_; T17 = boost::detail::variant::void_; T18 = boost::detail::variant::void_; T19 = boost::detail::variant::void_; typename boost::add_reference::type = const CScriptID&]’
rpcrawtransaction.cpp:221:77: required from here
/usr/include/boost/variant/get.hpp:178:5: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE’
BOOST_STATIC_ASSERT_MSG(
^
makefile.unix:221: recipe for target 'obj/rpcrawtransaction.o' failed
make: *** [obj/rpcrawtransaction.o] Error 1
I use linux to navigate, I do not like windows because it is dangerous.
Exactly this is the reason why I don't want to use Windows, I don't trust it.
To run the client on linux, is more safe.
To your problem.. if you think your system is corrupt, then dont connect it to the internet.
1. Run your wallet on a offline computer and extract the private keys to the adresses with your coins.
2. Import this keys on a fresh/clean system and client.
3. Transfer the coins to a new clean wallet to be safe.
4. Dont try to repair a corrupt system, better install the system new.