Bitcoin Forum
December 02, 2016, 08:18:34 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: CentOS 5.6. Problem compiling bitcoind  (Read 522 times)
Wonder
Newbie
*
Offline Offline

Activity: 1


View Profile
August 24, 2011, 07:42:59 AM
 #1

CentOS 5.6 x86_64
bitcoin 0.3.24rc3 sources

I am using instructions at http://www.staff.tugraz.at/michael.steurer/Bitcoin-CentOS5.5-V1.pdf

When compiling bitcoind i get errors:

g++ -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -I"/opt/bitcoin/deps/include" -L"/opt/bitcoin/deps/lib" -o bitcoind obj/nogui/util.o obj/nogui/script.o obj/nogui/db.o obj/nogui/net.o obj/nogui/irc.o obj/nogui/main.o obj/nogui/rpc.o obj/nogui/init.o cryptopp/obj/sha.o cryptopp/obj/cpu.o -dead_strip -Wl,-Bstatic /opt/bitcoin/deps/lib/libdb_cxx-5.1.a -mtl /opt/bitcoin/deps/lib/libboost_system.a -mtl /opt/bitcoin/deps/lib/libboost_thread.a -mtl /opt/bitcoin/deps/lib/libboost_filesystem.a -mtl /opt/bitcoin/deps/lib/libboost_program_options.a /opt/bitcoin/deps/lib/libdb_cxx.a /opt/bitcoin/deps/lib/libssl.a /opt/bitcoin/deps/lib/libcrypto.a -l ssl -l crypto -Wl,-Bdynamic -l gthread-2.0 -l z -l dl
obj/nogui/main.o: In function `SyncWithWallets':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/main.cpp:121: undefined reference to `CWallet::AddToWalletIfInvolvingMe(CTransaction const&, CBlock const*, bool)'
obj/nogui/main.o: In function `EraseFromWallets':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/main.cpp:115: undefined reference to `CWallet::EraseFromWallet(uint256)'
obj/nogui/main.o: In function `CWallet::GetDebit(CTransaction const&) const':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/wallet.h:116: undefined reference to `CWallet::GetDebit(CTxIn const&) const'
obj/nogui/main.o: In function `ResendWalletTransactions':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/main.cpp:151: undefined reference to `CWallet::ResendWalletTransactions()'
obj/nogui/main.o: In function `GetTransaction':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/main.cpp:107: undefined reference to `CWallet::GetTransaction(uint256 const&, CWalletTx&)'
obj/nogui/main.o: In function `PrintWallets':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/main.cpp:139: undefined reference to `CWallet::PrintWallet(CBlock const&)'
obj/nogui/main.o: In function `CreateNewBlock(CReserveKey&)':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/main.cpp:2694: undefined reference to `CReserveKey::GetReservedKey()'
obj/nogui/main.o: In function `CheckWork(CBlock*, CWallet&, CReserveKey&)':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/main.cpp:2910: undefined reference to `CReserveKey::KeepKey()'
obj/nogui/main.o: In function `~CReserveKey':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/wallet.h:199: undefined reference to `CReserveKey::ReturnKey()'
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/wallet.h:199: undefined reference to `CReserveKey::ReturnKey()'
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/wallet.h:199: undefined reference to `CReserveKey::ReturnKey()'
obj/nogui/main.o: In function `ProcessMessage':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/main.cpp:2216: undefined reference to `CWallet::GetKeyFromKeyPool()'
obj/nogui/main.o: In function `bool WriteSetting<int>(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int const&)':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/main.h:125: undefined reference to `GetWalletFile(CWallet*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
obj/nogui/rpc.o: In function `~CReserveKey':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/wallet.h:199: undefined reference to `CReserveKey::ReturnKey()'
obj/nogui/rpc.o: In function `GetAccountBalance(CWalletDB&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/rpc.cpp:654: undefined reference to `CWalletTx::GetAccountAmounts(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long long&, long long&, long long&, long long&) const'
obj/nogui/rpc.o: In function `WalletTxToJSON(CWalletTx const&, std::vector<json_spirit::Pair_impl<json_spirit::Config_vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::allocator<json_spirit::Pair_impl<json_spirit::Config_vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >&)':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/rpc.cpp:91: undefined reference to `CWalletTx::GetTxTime() const'
obj/nogui/rpc.o: In function `ListTransactions(CWalletTx const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, bool, std::vector<json_spirit::Value_impl<json_spirit::Config_vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::allocator<json_spirit::Value_impl<json_spirit::Config_vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >&)':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/rpc.cpp:1027: undefined reference to `CWalletTx::GetAmounts(long long&, long long&, std::list<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long>, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long> > >&, std::list<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long>, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long> > >&, long long&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) const'
obj/nogui/rpc.o: In function `getinfo(std::vector<json_spirit::Value_impl<json_spirit::Config_vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::allocator<json_spirit::Value_impl<json_spirit::Config_vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&, bool)':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/rpc.cpp:302: undefined reference to `CWallet::GetBalance() const'
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/rpc.cpp:311: undefined reference to `CWallet::GetOldestKeyPoolTime()'
obj/nogui/rpc.o: In function `getbalance(std::vector<json_spirit::Value_impl<json_spirit::Config_vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::allocator<json_spirit::Value_impl<json_spirit::Config_vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&, bool)':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/rpc.cpp:706: undefined reference to `CWalletTx::GetAmounts(long long&, long long&, std::list<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long>, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long> > >&, std::list<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long>, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long> > >&, long long&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) const'
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/rpc.cpp:684: undefined reference to `CWallet::GetBalance() const'
obj/nogui/rpc.o: In function `sendtoaddress(std::vector<json_spirit::Value_impl<json_spirit::Config_vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::allocator<json_spirit::Value_impl<json_spirit::Config_vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&, bool)':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/rpc.cpp:532: undefined reference to `CWallet::SendMoneyToBitcoinAddress(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long, CWalletTx&, bool)'
obj/nogui/rpc.o: In function `CWallet::GetDebit(CTransaction const&) const':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/wallet.h:116: undefined reference to `CWallet::GetDebit(CTxIn const&) const'
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/wallet.h:116: undefined reference to `CWallet::GetDebit(CTxIn const&) const'
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/wallet.h:116: undefined reference to `CWallet::GetDebit(CTxIn const&) const'
obj/nogui/rpc.o: In function `sendfrom(std::vector<json_spirit::Value_impl<json_spirit::Config_vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::allocator<json_spirit::Value_impl<json_spirit::Config_vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&, bool)':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/rpc.cpp:804: undefined reference to `CWallet::SendMoneyToBitcoinAddress(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long, CWalletTx&, bool)'
obj/nogui/rpc.o: In function `listtransactions(std::vector<json_spirit::Value_impl<json_spirit::Config_vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::allocator<json_spirit::Value_impl<json_spirit::Config_vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&, bool)':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/rpc.cpp:1140: undefined reference to `CWalletTx::GetTxTime() const'
obj/nogui/rpc.o: In function `listaccounts(std::vector<json_spirit::Value_impl<json_spirit::Config_vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::allocator<json_spirit::Value_impl<json_spirit::Config_vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&, bool)':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/rpc.cpp:1205: undefined reference to `CWalletTx::GetAmounts(long long&, long long&, std::list<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long>, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long> > >&, std::list<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long>, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long> > >&, long long&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) const'
obj/nogui/rpc.o: In function `getnewaddress(std::vector<json_spirit::Value_impl<json_spirit::Config_vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::allocator<json_spirit::Value_impl<json_spirit::Config_vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&, bool)':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/rpc.cpp:333: undefined reference to `CWallet::GetKeyFromKeyPool()'
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/rpc.cpp:337: undefined reference to `CWallet::SetAddressBookName(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
obj/nogui/rpc.o: In function `GetAccountAddress(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool)':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/rpc.cpp:373: undefined reference to `CWallet::GetKeyFromKeyPool()'
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/rpc.cpp:375: undefined reference to `CWallet::SetAddressBookName(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
obj/nogui/rpc.o: In function `setaccount(std::vector<json_spirit::Value_impl<json_spirit::Config_vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::allocator<json_spirit::Value_impl<json_spirit::Config_vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&, bool)':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/rpc.cpp:439: undefined reference to `CWallet::SetAddressBookName(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
obj/nogui/rpc.o: In function `sendmany(std::vector<json_spirit::Value_impl<json_spirit::Config_vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::allocator<json_spirit::Value_impl<json_spirit::Config_vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&, bool)':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/rpc.cpp:863: undefined reference to `CWallet::CreateTransaction(std::vector<std::pair<CScript, long long>, std::allocator<std::pair<CScript, long long> > > const&, CWalletTx&, CReserveKey&, long long&)'
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/rpc.cpp:866: undefined reference to `CWallet::GetBalance() const'
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/rpc.cpp:870: undefined reference to `CWallet::CommitTransaction(CWalletTx&, CReserveKey&)'
obj/nogui/rpc.o: In function `~CReserveKey':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/wallet.h:199: undefined reference to `CReserveKey::ReturnKey()'
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/wallet.h:199: undefined reference to `CReserveKey::ReturnKey()'
obj/nogui/init.o: In function `AppInit2(int, char**)':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/init.cpp:390: undefined reference to `CWallet::LoadWallet(bool&)'
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/init.cpp:410: undefined reference to `CWallet::ScanForWalletTransactions(CBlockIndex*, bool)'
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/init.cpp:432: undefined reference to `CWallet::ReacceptWalletTransactions()'
obj/nogui/init.o: In function `CKeyStore':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/keystore.h:8: undefined reference to `vtable for CKeyStore'
obj/nogui/init.o: In function `CWallet':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/wallet.h:34: undefined reference to `vtable for CWallet'
obj/nogui/init.o: In function `~CKeyStore':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/keystore.h:8: undefined reference to `vtable for CKeyStore'
obj/nogui/init.o: In function `~CWallet':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/wallet.h:16: undefined reference to `vtable for CWallet'
obj/nogui/init.o: In function `~CKeyStore':
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/keystore.h:8: undefined reference to `vtable for CKeyStore'
/usr/src/bitcoin/bitcoin-bitcoin-8095ff8/src/keystore.h:8: undefined reference to `vtable for CKeyStore'
collect2: ld returned 1 exit status
make: *** [bitcoind] Error 1
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!