cryptonotefoundation / cryptonote

CryptoNote protocol implementation. This is the reference repository for starting a new CryptoNote currency. See /src/cryptonote_config.h
https://cryptonote.org/
990 stars 6.1k forks source link

connectivity_tool failed #192

Open michaellu88 opened 6 years ago

michaellu88 commented 6 years ago

fork@neoo-01:~/NEOO$ cd src fork@neoo-01:~/NEOO/src$ ls BlockchainExplorer CryptoNoteCore libBlockchainExplorer.a libLogging.a libTransfers.a P2p SimpleWallet CMakeFiles CryptoNoteProtocol libCommon.a libNodeRpcProxy.a libWallet.a PaymentGate System CMakeLists.txt CTestTestfile.cmake libCrypto.a libP2P.a Logging PaymentGateService Transfers Common Daemon libCryptoNoteCore.a libPaymentGate.a Makefile Platform version.cmake ConnectivityTool HTTP libHttp.a libRpc.a Miner Rpc version.h.in crypto InProcessNode libInProcessNode.a libSerialization.a neood Serialization Wallet CryptoNoteConfig.h JsonRpcServer libJsonRpcServer.a libSystem.a NodeRpcProxy simplewallet WalletLegacy fork@neoo-01:~/NEOO/src$ make fatal: No names found, cannot describe anything. CMake Warning at src/version.cmake:3 (message): Cannot determine current revision. Make sure that you are building either from a Git working tree or from a source archive.

[ 93%] Built target version [ 93%] Built target P2P [ 93%] Built target NodeRpcProxy [ 93%] Built target InProcessNode [ 93%] Built target Logging [ 93%] Built target Serialization [ 93%] Built target upnpc-static [ 93%] Built target Common [ 93%] Built target Crypto [ 93%] Built target Http [ 93%] Built target BlockchainExplorer [ 93%] Built target CryptoNoteCore [ 93%] Built target System [ 93%] Built target Rpc [ 93%] Built target Daemon [ 93%] Built target Transfers [ 93%] Built target Wallet [ 93%] Built target SimpleWallet [ 93%] Built target PaymentGate [ 93%] Built target JsonRpcServer [ 93%] Linking CXX executable connectivity_tool /usr/bin/ld: StreamTools.cpp.o: plugin needed to handle lto object /tmp/cc4Qjcgk.ltrans1.ltrans.o: In function `std::_Function_handler<void (), handle_request_stat(boost::program_options::variables_map&, unsigned long)::{lambda()#4}>::_M_invoke(std::_Any_data const&) [clone .lto_priv.442]':

:(.text+0xcd3): undefined reference to `Common::write(Common::IOutputStream&, void const*, unsigned long)' :(.text+0xd06): undefined reference to `Common::write(Common::IOutputStream&, void const*, unsigned long)' :(.text+0xe5b): undefined reference to `Common::write(Common::IOutputStream&, void const*, unsigned long)' :(.text+0xe9e): undefined reference to `Common::write(Common::IOutputStream&, void const*, unsigned long)' /tmp/cc4Qjcgk.ltrans1.ltrans.o: In function `std::_Function_handler::_M_invoke(std::_Any_data const&) [clone .lto_priv.444]': :(.text+0x1200): undefined reference to `Common::write(Common::IOutputStream&, void const*, unsigned long)' /tmp/cc4Qjcgk.ltrans1.ltrans.o::(.text+0x122d): more undefined references to `Common::write(Common::IOutputStream&, void const*, unsigned long)' follow /tmp/cc4Qjcgk.ltrans15.ltrans.o: In function `(anonymous namespace)::loadSection(Common::IInputStream&)': :(.text+0x5de): undefined reference to `Common::read(Common::IInputStream&, unsigned char&)' :(.text+0x619): undefined reference to `Common::read(Common::IInputStream&, unsigned char&)' :(.text+0x67e): undefined reference to `Common::read(Common::IInputStream&, void*, unsigned long)' :(.text+0x6da): undefined reference to `Common::read(Common::IInputStream&, void*, unsigned long)' :(.text+0x705): undefined reference to `Common::read(Common::IInputStream&, void*, unsigned long)' :(.text+0x740): undefined reference to `Common::read(Common::IInputStream&, unsigned char&)' :(.text+0x779): undefined reference to `Common::read(Common::IInputStream&, unsigned char&)' /tmp/cc4Qjcgk.ltrans15.ltrans.o: In function `CryptoNote::KVBinaryInputStreamSerializer::KVBinaryInputStreamSerializer(Common::IInputStream&)': :(.text+0xae8): undefined reference to `Common::read(Common::IInputStream&, void*, unsigned long)' /tmp/cc4Qjcgk.ltrans15.ltrans.o: In function `(anonymous namespace)::loadValue(Common::IInputStream&, unsigned char)': :(.text+0xc07): undefined reference to `Common::read(Common::IInputStream&, unsigned char&)' :(.text+0xc74): undefined reference to `Common::read(Common::IInputStream&, void*, unsigned long)' :(.text+0xcb4): undefined reference to `Common::read(Common::IInputStream&, void*, unsigned long)' :(.text+0xcf4): undefined reference to `Common::read(Common::IInputStream&, void*, unsigned long)' :(.text+0xd24): undefined reference to `Common::read(Common::IInputStream&, void*, unsigned long)' :(.text+0xd54): undefined reference to `Common::read(Common::IInputStream&, void*, unsigned long)' /tmp/cc4Qjcgk.ltrans15.ltrans.o::(.text+0xd74): more undefined references to `Common::read(Common::IInputStream&, void*, unsigned long)' follow /tmp/cc4Qjcgk.ltrans15.ltrans.o: In function `(anonymous namespace)::loadValue(Common::IInputStream&, unsigned char)': :(.text+0xe4c): undefined reference to `Common::read(Common::IInputStream&, unsigned char&)' :(.text+0xe87): undefined reference to `Common::read(Common::IInputStream&, unsigned char&)' :(.text+0xf29): undefined reference to `Common::read(Common::IInputStream&, unsigned char&)' :(.text+0xfb9): undefined reference to `Common::read(Common::IInputStream&, unsigned char&)' :(.text+0xfec): undefined reference to `Common::read(Common::IInputStream&, void*, unsigned long)' /tmp/cc4Qjcgk.ltrans19.ltrans.o: In function `(anonymous namespace)::writeElementName(Common::IOutputStream&, Common::StringView) [clone .constprop.205]': :(.text+0xa7): undefined reference to `Common::write(Common::IOutputStream&, void const*, unsigned long)' :(.text+0xb7): undefined reference to `Common::write(Common::IOutputStream&, void const*, unsigned long)' /tmp/cc4Qjcgk.ltrans19.ltrans.o: In function `Crypto::serialize(Crypto::Signature&, Common::StringView, CryptoNote::ISerializer&) [clone .constprop.191]': :(.text+0x1269): undefined reference to `Common::write(Common::IOutputStream&, void const*, unsigned long)' :(.text+0x1279): undefined reference to `Common::write(Common::IOutputStream&, void const*, unsigned long)' /tmp/cc4Qjcgk.ltrans23.ltrans.o: In function `CryptoNote::KVBinaryOutputStreamSerializer::checkArrayPreamble(unsigned char)': :(.text+0x1db): undefined reference to `Common::write(Common::IOutputStream&, void const*, unsigned long)' /tmp/cc4Qjcgk.ltrans23.ltrans.o::(.text+0x271): more undefined references to `Common::write(Common::IOutputStream&, void const*, unsigned long)' follow collect2: error: ld returned 1 exit status src/CMakeFiles/ConnectivityTool.dir/build.make:113: recipe for target 'src/connectivity_tool' failed make[2]: *** [src/connectivity_tool] Error 1 CMakeFiles/Makefile2:955: recipe for target 'src/CMakeFiles/ConnectivityTool.dir/all' failed make[1]: *** [src/CMakeFiles/ConnectivityTool.dir/all] Error 2 Makefile:94: recipe for target 'all' failed make: *** [all] Error 2 This is on ubuntu 16.04 vps, i have amended and moved "common" to the right place according to issue 92. and GCC 7 installed. what else i can do to solve this? thanks
Mattelix commented 6 years ago

Issue 92 This worked for me

gsquaredxc commented 6 years ago

17