Code Monkey home page Code Monkey logo

Comments (9)

lclc avatar lclc commented on July 25, 2024

checking for Berkeley DB C++ headers... no

Did you install berkeley-db4 using Homebrew as described here:
https://github.com/ElementsProject/elements/blob/alpha/doc/build-osx.md
?

from elements.

shayanb avatar shayanb commented on July 25, 2024

@lclc Thanks that worked. but now when I try to make elements, I get this:

Making all in src
  CXX      script/libalphaconsensus_la-script.lo
In file included from script/script.cpp:12:
In file included from ./streams.h:9:
./allocators.h:14:10: fatal error: 'boost/thread/mutex.hpp' file not found
#include <boost/thread/mutex.hpp>
         ^
1 error generated.
make[2]: *** [script/libalphaconsensus_la-script.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

I've tried installing boost, boost-build but no success yet.

from elements.

gwillen avatar gwillen commented on July 25, 2024

Hmm, from my experience with OS X build issues, these can be very tough to debug. Do you have a /usr/local/include/boost/thread/mutex.hpp? I believe that file should be provided by one of the boost packages. If it's not present, perhaps try brew doctor? If you do, for some reason it's not searching there properly.

from elements.

shayanb avatar shayanb commented on July 25, 2024

@gwillen yeah I know.
I have "/usr/local/include/boost/thread/mutex.hpp" in the exact path.

I skimmed through MakeFile to figure where is it searching for (either $PATH or ... ) but couldn't find anything related.

from elements.

gwillen avatar gwillen commented on July 25, 2024

Ooh, I think I found something. Try running:

xcode-select --install

From this SO answer: http://stackoverflow.com/questions/23905661/on-mac-g-fails-to-search-usr-local-include-and-usr-local-lib-by-default

(Allegedly /usr/local/include should be in the default search path for includes, but if your commandline tools are somehow not fully-configured this might not be true?)

If that doesn't work, run

cpp -v

and paste the lines following #include <...> search starts here:

from elements.

shayanb avatar shayanb commented on July 25, 2024

@gwillen thanks, xcode-select --install worked for the previous error, but now we have a new one -_-

Making all in src
  CXX      script/libalphaconsensus_la-script.lo
  CXX      script/libalphaconsensus_la-interpreter.lo
script/interpreter.cpp:1620:40: warning: unused variable 'vlockBlockHeight'
      [-Wunused-variable]
                        const valtype &vlockBlockHeight = stacktop(stack...
                                       ^
In file included from script/interpreter.cpp:6:
script/interpreter.h:163:15: warning: private field 'nSpendHeight' is not used
      [-Wunused-private-field]
    const int nSpendHeight;
              ^
2 warnings generated.
  CXX      script/libalphaconsensus_la-bitcoinconsensus.lo
  CXX      libalphaconsensus_la-uint256.lo
  CXX      libalphaconsensus_la-utilstrencodings.lo
  CC       src/libsecp256k1_la-secp256k1.lo
  CCLD     libsecp256k1.la
  CXXLD    libalphaconsensus.la
Undefined symbols for architecture x86_64:
  "IsConfirmedBitcoinBlock(uint256 const&, int)", referenced from:
      TransactionSignatureChecker::IsConfirmedBitcoinBlock(uint256 const&, bool) const in libalphaconsensus_la-interpreter.o
  "CHMAC_SHA256::CHMAC_SHA256(unsigned char const*, unsigned long)", referenced from:
      EvalScript(std::__1::vector<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::allocator<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > >&, CScript const&, unsigned int, BaseSignatureChecker const&, ScriptError_t*) in libalphaconsensus_la-interpreter.o
  "_SSL_library_init", referenced from:
      boost::asio::ssl::detail::openssl_init_base::do_init::do_init() in libalphaconsensus_la-interpreter.o
  "CHMAC_SHA256::Finalize(unsigned char*)", referenced from:
      EvalScript(std::__1::vector<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::allocator<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > >&, CScript const&, unsigned int, BaseSignatureChecker const&, ScriptError_t*) in libalphaconsensus_la-interpreter.o
  "GetScriptForDestination(boost::variant<CNoDestination, CKeyID, CScriptID, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_> const&)", referenced from:
      EvalScript(std::__1::vector<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::allocator<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > >&, CScript const&, unsigned int, BaseSignatureChecker const&, ScriptError_t*) in libalphaconsensus_la-interpreter.o
  "CheckBitcoinProof(CBlockHeader const&)", referenced from:
      EvalScript(std::__1::vector<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::allocator<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > >&, CScript const&, unsigned int, BaseSignatureChecker const&, ScriptError_t*) in libalphaconsensus_la-interpreter.o
  "CheckProof(CBlockHeader const&)", referenced from:
      EvalScript(std::__1::vector<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::allocator<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > >&, CScript const&, unsigned int, BaseSignatureChecker const&, ScriptError_t*) in libalphaconsensus_la-interpreter.o
  "boost::system::system_category()", referenced from:
      __GLOBAL__I_a in libalphaconsensus_la-script.o
      boost::asio::ssl::detail::openssl_init_base::do_init::do_init() in libalphaconsensus_la-interpreter.o
      ___cxx_global_var_init62 in libalphaconsensus_la-interpreter.o
      ___cxx_global_var_init65 in libalphaconsensus_la-interpreter.o
      __GLOBAL__I_a in libalphaconsensus_la-interpreter.o
  "CPartialMerkleTree::CPartialMerkleTree()", referenced from:
      EvalScript(std::__1::vector<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::allocator<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > >&, CScript const&, unsigned int, BaseSignatureChecker const&, ScriptError_t*) in libalphaconsensus_la-interpreter.o
  "GetBoolArg(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool)", referenced from:
      EvalScript(std::__1::vector<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::allocator<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > >&, CScript const&, unsigned int, BaseSignatureChecker const&, ScriptError_t*) in libalphaconsensus_la-interpreter.o
  "CBlockHeader::GetHash() const", referenced from:
      EvalScript(std::__1::vector<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::allocator<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > >&, CScript const&, unsigned int, BaseSignatureChecker const&, ScriptError_t*) in libalphaconsensus_la-interpreter.o
  "_SSL_load_error_strings", referenced from:
      boost::asio::ssl::detail::openssl_init_base::do_init::do_init() in libalphaconsensus_la-interpreter.o
  "CPartialMerkleTree::ExtractMatches(std::__1::vector<uint256, std::__1::allocator<uint256> >&)", referenced from:
      EvalScript(std::__1::vector<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::allocator<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > >&, CScript const&, unsigned int, BaseSignatureChecker const&, ScriptError_t*) in libalphaconsensus_la-interpreter.o
  "CScriptID::CScriptID(CScript const&)", referenced from:
      EvalScript(std::__1::vector<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::allocator<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > >&, CScript const&, unsigned int, BaseSignatureChecker const&, ScriptError_t*) in libalphaconsensus_la-interpreter.o
  "boost::system::generic_category()", referenced from:
      __GLOBAL__I_a in libalphaconsensus_la-script.o
      __GLOBAL__I_a in libalphaconsensus_la-interpreter.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libalphaconsensus.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

from elements.

gwillen avatar gwillen commented on July 25, 2024

Aha, this one I can solve! The problem is that libalphaconsensus doesn't build on some (maybe all, for all I know) OS X machines. The solution is to configure --with-libs=no, or pull the latest version of elements in which that's now the default. (This was bug #11.) That library is not actually used for anything in elements anyway, as far as I know -- it's built by default in bitcoin (as libbitcoinconsensus) and so it was building by default here too.

from elements.

shayanb avatar shayanb commented on July 25, 2024

pulling the latest version did the job.
thanks @gwillen , let's see how it goes from here... pretty excited to see how this will end up :)

from elements.

gwillen avatar gwillen commented on July 25, 2024

No problem, let us know if you have any other issues! :-)

from elements.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.