ubuntu 16.04
/bin/sh ../share/genbuild.sh obj/build.h
g++ -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -I/root/OliTwistCoin/src -I/root/OliTwistCoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/root/OliTwistCoin/src/leveldb/include -I/root/OliTwistCoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -o OliTwistCoind obj/groestl.o obj/blake.o obj/bmw.o obj/skein.o obj/keccak.o obj/shavite.o obj/jh.o obj/luffa.o obj/cubehash.o obj/echo.o obj/simd.o obj/alert.o obj/version.o obj/checkpoints.o obj/netbase.o obj/addrman.o obj/crypter.o obj/key.o obj/db.o obj/init.o obj/irc.o obj/keystore.o obj/miner.o obj/main.o obj/net.o obj/protocol.o obj/bitcoinrpc.o obj/rpcdump.o obj/rpcnet.o obj/rpcmining.o obj/rpcwallet.o obj/rpcblockchain.o obj/rpcrawtransaction.o obj/script.o obj/sync.o obj/util.o obj/wallet.o obj/walletdb.o obj/noui.o obj/kernel.o obj/pbkdf2.o obj/scrypt.o obj/scrypt-arm.o obj/scrypt-x86.o obj/scrypt-x86_64.o obj/zerocoin/Accumulator.o obj/zerocoin/AccumulatorProofOfKnowledge.o obj/zerocoin/Coin.o obj/zerocoin/CoinSpend.o obj/zerocoin/Commitment.o obj/zerocoin/ParamGeneration.o obj/zerocoin/Params.o obj/zerocoin/SerialNumberSignatureOfKnowledge.o obj/zerocoin/SpendMetaData.o obj/zerocoin/ZeroTest.o obj/txdb-leveldb.o -Wl,-z,relro -Wl,-z,now -Wl,-Bdynamic -l boost_system -l boost_filesystem -l boost_program_options -l boost_thread -l db_cxx -l ssl -l crypto -l miniupnpc -Wl,-Bdynamic -l z -l dl -l pthread /root/OliTwistCoin/src/leveldb/libleveldb.a /root/OliTwistCoin/src/leveldb/libmemenv.a
obj/txdb-leveldb.o: In function `init_blockindex(leveldb::Options&, bool)':
/root/OliTwistCoin/src/txdb-leveldb.cpp:60: undefined reference to `leveldb::DB::Open(leveldb::Options const&, std::__cxx11::basic_string, std::allocator > const&, leveldb::DB**)'
/root/OliTwistCoin/src/txdb-leveldb.cpp:62: undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
obj/txdb-leveldb.o: In function `CTxDB::TxnCommit()':
/root/OliTwistCoin/src/txdb-leveldb.cpp:149: undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
obj/txdb-leveldb.o: In function `CTxDB::ScanBatch(CDataStream const&, std::__cxx11::basic_string, std::allocator >*, bool*) const':
/root/OliTwistCoin/src/txdb-leveldb.cpp:194: undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
obj/txdb-leveldb.o: In function `bool CTxDB::Read, std::allocator >, std::__cxx11::basic_string, std::allocator > >(std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator >&)':
/root/OliTwistCoin/src/txdb-leveldb.h:84: undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
obj/txdb-leveldb.o: In function `bool CTxDB::Write, std::allocator >, std::__cxx11::basic_string, std::allocator > >(std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&)':
/root/OliTwistCoin/src/txdb-leveldb.h:119: undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
obj/txdb-leveldb.o:/root/OliTwistCoin/src/txdb-leveldb.h:84: more undefined references to `leveldb::Status::ToString[abi:cxx11]() const' follow
collect2: error: ld returned 1 exit status
makefile.unix:212: recipe for target 'OliTwistCoind' failed
make: *** [OliTwistCoind] Error 1
any idea?
ok got the fix!
cd to share dir
chmod +x genbuild.sh
cd to src/leveldb
try "make" if it's good also "make libmemenv.a"
then back to src and "make -f makefile.unix"