phoreproject / Phore

Phore
https://phore.io
MIT License
45 stars 62 forks source link

Source Compilation Issues (macOS High Sierra 10.13.3) #66

Open Manbearpixel opened 6 years ago

Manbearpixel commented 6 years ago

Describe the issue

After running ./autogen.sh and ./configure I encounter a source build issue when executing the make command.

Can you reliably reproduce the issue?

If so, please list the steps to reproduce below:

  1. Run ./autogen.sh
  2. Run LDFLAGS='-L/usr/local/opt/openssl/lib' CPPFLAGS='-I/usr/local/opt/openssl/include' PKG_CONFIG_PATH='/usr/local/opt/openssl/lib/pkgconfig' ./configure --with-gui=qt5
  3. Run make

Expected behavior

It should build phored source.

Actual behavior

It fails with an error Undefined symbols for architecture x86_64.

What version of Phore Core are you using?

v1.3.2

Machine specs:

Any extra information that might be useful in the debugging process.

Making all in src
  CXXLD    phored
Undefined symbols for architecture x86_64:
  "boost::gregorian::greg_month::as_short_string() const", referenced from:
      boost::date_time::month_formatter<boost::gregorian::greg_month, boost::date_time::iso_extended_format<char>, char>::format_month(boost::gregorian::greg_month const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >&) in libbitcoin_wallet.a(libbitcoin_wallet_a-wallet.o)
  "boost::gregorian::greg_month::as_long_string() const", referenced from:
      boost::date_time::month_formatter<boost::gregorian::greg_month, boost::date_time::iso_extended_format<char>, char>::format_month(boost::gregorian::greg_month const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >&) in libbitcoin_wallet.a(libbitcoin_wallet_a-wallet.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]: *** [phored] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
Manbearpixel commented 6 years ago

I'm using a brew installed boost tagged at 1.57 as this setup has been working so far with other blockchain wallet builds. Just for sanity checks, I just pulled the latest PIVX wallet source and am currently in the process of make to see if I encounter the same issue. Will update this comment on the result of that build ✌️

Edit PIVX source built fine, so I'm still scratching my head.

KolbyML commented 6 years ago

Just build the depends through the depends folder https://github.com/phoreproject/Phore/tree/master/depends

jonspock commented 6 years ago

That's fixed in PIVX code but was also broken for a while and should only be for Debug builds