Making all in src make[1]: Entering directory '/home/MattyAB/bitcoin/src' make[2]: Entering directory '/home/MattyAB/bitcoin/src' make[3]: Entering directory '/home/MattyAB/bitcoin' make[3]: Leaving directory '/home/MattyAB/bitcoin' make[3]: Entering directory '/home/MattyAB/bitcoin/src/secp256k1' make[3]: Leaving directory '/home/MattyAB/bitcoin/src/secp256k1' CXXLD libbitcoinconsensus.la crypto/.libs/libbitcoinconsensus_la-hmac_sha256.o: In function `CHMAC_SHA256::CHMAC_SHA256(unsigned char const*, unsigned long)': /home/MattyAB/bitcoin/src/crypto/hmac_sha256.cpp:16: undefined reference to `CSHA256::Write(unsigned char const*, unsigned long)' /home/MattyAB/bitcoin/src/crypto/hmac_sha256.cpp:22: undefined reference to `CSHA256::Write(unsigned char const*, unsigned long)' /home/MattyAB/bitcoin/src/crypto/hmac_sha256.cpp:26: undefined reference to `CSHA256::Write(unsigned char const*, unsigned long)' crypto/.libs/libbitcoinconsensus_la-hmac_sha256.o: In function `CHMAC_SHA256::Finalize(unsigned char*)': /home/MattyAB/bitcoin/src/crypto/hmac_sha256.cpp:33: undefined reference to `CSHA256::Write(unsigned char const*, unsigned long)' crypto/.libs/libbitcoinconsensus_la-hmac_sha512.o: In function `CHMAC_SHA512::CHMAC_SHA512(unsigned char const*, unsigned long)': /home/MattyAB/bitcoin/src/crypto/hmac_sha512.cpp:16: undefined reference to `CSHA512::Write(unsigned char const*, unsigned long)' /home/MattyAB/bitcoin/src/crypto/hmac_sha512.cpp:22: undefined reference to `CSHA512::Write(unsigned char const*, unsigned long)' /home/MattyAB/bitcoin/src/crypto/hmac_sha512.cpp:26: undefined reference to `CSHA512::Write(unsigned char const*, unsigned long)' crypto/.libs/libbitcoinconsensus_la-hmac_sha512.o: In function `CHMAC_SHA512::Finalize(unsigned char*)': /home/MattyAB/bitcoin/src/crypto/hmac_sha512.cpp:33: undefined reference to `CSHA512::Write(unsigned char const*, unsigned long)' .libs/libbitcoinconsensus_la-hash.o:hash.cpp:(.text+0x175): undefined reference to `CHMAC_SHA512::CHMAC_SHA512(unsigned char const*, unsigned long long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `void std::__cxx11::basic_string, std::allocator >::_M_construct(char*, char*, std::forward_iterator_tag)': /usr/include/c++/5/bits/basic_string.tcc:223: undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_create(unsigned long&, unsigned long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `SanitizeString(std::__cxx11::basic_string, std::allocator > const&, int)': /home/MattyAB/bitcoin/src/utilstrencodings.cpp:29: undefined reference to `std::__cxx11::basic_string, std::allocator >::find(char, unsigned long) const' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `std::__cxx11::basic_string, std::allocator >::push_back(char)': /usr/include/c++/5/bits/basic_string.h:1082: undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `EncodeBase64[abi:cxx11](unsigned char const*, unsigned long)': /home/MattyAB/bitcoin/src/utilstrencodings.cpp:118: undefined reference to `std::__cxx11::basic_string, std::allocator >::reserve(unsigned long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `std::__cxx11::basic_string, std::allocator >::push_back(char)': /usr/include/c++/5/bits/basic_string.h:1082: undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long)' /usr/include/c++/5/bits/basic_string.h:1082: undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long)' /usr/include/c++/5/bits/basic_string.h:1082: undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long)' /usr/include/c++/5/bits/basic_string.h:1082: undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long)' /usr/include/c++/5/bits/basic_string.h:1082: undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long)' .libs/libbitcoinconsensus_la-utilstrencodings.o:/usr/include/c++/5/bits/basic_string.h:1082: more undefined references to `std::__cxx11::basic_string, std::allocator >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long)' follow .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `EncodeBase32[abi:cxx11](unsigned char const*, unsigned long)': /home/MattyAB/bitcoin/src/utilstrencodings.cpp:258: undefined reference to `std::__cxx11::basic_string, std::allocator >::reserve(unsigned long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `std::__cxx11::basic_string, std::allocator >::push_back(char)': /usr/include/c++/5/bits/basic_string.h:1082: undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long)' /usr/include/c++/5/bits/basic_string.h:1082: undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long)' /usr/include/c++/5/bits/basic_string.h:1082: undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long)' /usr/include/c++/5/bits/basic_string.h:1082: undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long)' /usr/include/c++/5/bits/basic_string.h:1082: undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long)' .libs/libbitcoinconsensus_la-utilstrencodings.o:/usr/include/c++/5/bits/basic_string.h:1082: more undefined references to `std::__cxx11::basic_string, std::allocator >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long)' follow .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `ParseInt32(std::__cxx11::basic_string, std::allocator > const&, int*)': /home/MattyAB/bitcoin/src/utilstrencodings.cpp:456: undefined reference to `__errno_location' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `std::__cxx11::basic_string, std::allocator >::find_last_of(char, unsigned long) const': /usr/include/c++/5/bits/basic_string.h:2153: undefined reference to `std::__cxx11::basic_string, std::allocator >::rfind(char, unsigned long) const' /usr/include/c++/5/bits/basic_string.h:2153: undefined reference to `std::__cxx11::basic_string, std::allocator >::rfind(char, unsigned long) const' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `ParseInt64(std::__cxx11::basic_string, std::allocator > const&, long*)': /home/MattyAB/bitcoin/src/utilstrencodings.cpp:472: undefined reference to `__errno_location' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `ParseUInt32(std::__cxx11::basic_string, std::allocator > const&, unsigned int*)': /home/MattyAB/bitcoin/src/utilstrencodings.cpp:489: undefined reference to `__errno_location' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `ParseUInt64(std::__cxx11::basic_string, std::allocator > const&, unsigned long*)': /home/MattyAB/bitcoin/src/utilstrencodings.cpp:506: undefined reference to `__errno_location' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `std::__cxx11::basic_string, std::allocator >::find_first_of(char, unsigned long) const': /usr/include/c++/5/bits/basic_string.h:2089: undefined reference to `std::__cxx11::basic_string, std::allocator >::find(char, unsigned long) const' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `std::basic_ostream >& std::operator<< , std::allocator >(std::basic_ostream >&, std::__cxx11::basic_string, std::allocator > const&)': /usr/include/c++/5/bits/basic_string.h:5177: undefined reference to `std::basic_ostream >& std::__ostream_insert >(std::basic_ostream >&, char const*, long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `std::__cxx11::basic_string, std::allocator >::find_last_of(char const*, unsigned long) const': /usr/include/c++/5/bits/basic_string.h:2136: undefined reference to `std::__cxx11::basic_string, std::allocator >::find_last_of(char const*, unsigned long, unsigned long) const' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `std::basic_ostream >& std::operator<< , std::allocator >(std::basic_ostream >&, std::__cxx11::basic_string, std::allocator > const&)': /usr/include/c++/5/bits/basic_string.h:5177: undefined reference to `std::basic_ostream >& std::__ostream_insert >(std::basic_ostream >&, char const*, long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)': /usr/include/c++/5/ostream:561: undefined reference to `std::basic_ostream >& std::__ostream_insert >(std::basic_ostream >&, char const*, long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `std::__cxx11::basic_string, std::allocator >::find_first_of(char const*, unsigned long) const': /usr/include/c++/5/bits/basic_string.h:2072: undefined reference to `std::__cxx11::basic_string, std::allocator >::find_first_of(char const*, unsigned long, unsigned long) const' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `std::basic_ostream >& std::operator<< , std::allocator >(std::basic_ostream >&, std::__cxx11::basic_string, std::allocator > const&)': /usr/include/c++/5/bits/basic_string.h:5177: undefined reference to `std::basic_ostream >& std::__ostream_insert >(std::basic_ostream >&, char const*, long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `std::__cxx11::basic_string, std::allocator >::basic_string(unsigned long, char, std::allocator const&)': /usr/include/c++/5/bits/basic_string.h:466: undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_construct(unsigned long, char)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `std::basic_ostream >& std::operator<< , std::allocator >(std::basic_ostream >&, std::__cxx11::basic_string, std::allocator > const&)': /usr/include/c++/5/bits/basic_string.h:5177: undefined reference to `std::basic_ostream >& std::__ostream_insert >(std::basic_ostream >&, char const*, long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `std::__cxx11::basic_stringbuf, std::allocator >::_M_stringbuf_init(std::_Ios_Openmode)': /usr/include/c++/5/sstream:207: undefined reference to `std::__cxx11::basic_stringbuf, std::allocator >::_M_sync(char*, unsigned long, unsigned long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `std::__cxx11::basic_string, std::allocator >::append(char const*)': /usr/include/c++/5/bits/basic_string.h:1029: undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_append(char const*, unsigned long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `__gnu_cxx::new_allocator::allocate(unsigned long, void const*)': /usr/include/c++/5/ext/new_allocator.h:104: undefined reference to `operator new(unsigned long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `tinyformat::detail::printFormatStringLiteral(std::ostream&, char const*)': /home/MattyAB/bitcoin/src/tinyformat.h:566: undefined reference to `std::ostream::write(char const*, long)' /home/MattyAB/bitcoin/src/tinyformat.h:563: undefined reference to `std::ostream::write(char const*, long)' /home/MattyAB/bitcoin/src/tinyformat.h:566: undefined reference to `std::ostream::write(char const*, long)' /home/MattyAB/bitcoin/src/tinyformat.h:563: undefined reference to `std::ostream::write(char const*, long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `std::basic_ostream >& std::operator<< , std::allocator >(std::basic_ostream >&, std::__cxx11::basic_string, std::allocator > const&)': /usr/include/c++/5/bits/basic_string.h:5177: undefined reference to `std::basic_ostream >& std::__ostream_insert >(std::basic_ostream >&, char const*, long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `tinyformat::detail::printFormatStringLiteral(std::ostream&, char const*)': /home/MattyAB/bitcoin/src/tinyformat.h:566: undefined reference to `std::ostream::write(char const*, long)' /home/MattyAB/bitcoin/src/tinyformat.h:563: undefined reference to `std::ostream::write(char const*, long)' /home/MattyAB/bitcoin/src/tinyformat.h:566: undefined reference to `std::ostream::write(char const*, long)' /home/MattyAB/bitcoin/src/tinyformat.h:563: undefined reference to `std::ostream::write(char const*, long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `std::basic_ostream >& std::operator<< , std::allocator >(std::basic_ostream >&, std::__cxx11::basic_string, std::allocator > const&)': /usr/include/c++/5/bits/basic_string.h:5177: undefined reference to `std::basic_ostream >& std::__ostream_insert >(std::basic_ostream >&, char const*, long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `__gnu_cxx::new_allocator::allocate(unsigned long, void const*)': /usr/include/c++/5/ext/new_allocator.h:104: undefined reference to `operator new(unsigned long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `void tinyformat::detail::formatTruncated(std::ostream&, long const&, int)': /home/MattyAB/bitcoin/src/tinyformat.h:279: undefined reference to `std::ostream::write(char const*, long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char)': /usr/include/c++/5/ostream:509: undefined reference to `std::basic_ostream >& std::__ostream_insert >(std::basic_ostream >&, char const*, long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `void tinyformat::detail::formatTruncated(std::ostream&, int const&, int)': /home/MattyAB/bitcoin/src/tinyformat.h:279: undefined reference to `std::ostream::write(char const*, long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char)': /usr/include/c++/5/ostream:509: undefined reference to `std::basic_ostream >& std::__ostream_insert >(std::basic_ostream >&, char const*, long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `__static_initialization_and_destruction_0': /usr/include/c++/5/iostream:74: undefined reference to `__dso_handle' /usr/include/c++/5/iostream:74: undefined reference to `__cxa_atexit' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function `__static_initialization_and_destruction_0': /home/MattyAB/bitcoin/src/utilstrencodings.cpp:15: undefined reference to `__dso_handle' /home/MattyAB/bitcoin/src/utilstrencodings.cpp:15: undefined reference to `__cxa_atexit' /home/MattyAB/bitcoin/src/utilstrencodings.cpp:17: undefined reference to `__dso_handle' /home/MattyAB/bitcoin/src/utilstrencodings.cpp:17: undefined reference to `__cxa_atexit' .libs/libbitcoinconsensus_la-utilstrencodings.o:(.data.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]+0x0): undefined reference to `__gxx_personality_v0' collect2: error: ld returned 1 exit status Makefile:3506: recipe for target 'libbitcoinconsensus.la' failed make[2]: *** [libbitcoinconsensus.la] Error 1 make[2]: Leaving directory '/home/MattyAB/bitcoin/src' Makefile:9256: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/MattyAB/bitcoin/src' Makefile:740: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1