ipbc-dev / bittube

Legacy BitTube 3 CLI Utilities

Home Page:https://github.com/BitTubeCash/bittube

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot compile on Debian 9

marki555 opened this issue · comments

Hi, when compiling v2.0.0.1 daemon on debian9, I get this error 3 times:

[ 62%] Building CXX object tests/core_tests/CMakeFiles/core_tests.dir/block_validation.cpp.o
/home/marki/TUBE-compile/bittube/tests/core_tests/block_validation.cpp: In function ‘bool {anonymous}::lift_up_difficulty(std::vector<boost::variant<cryptonote::block, cryptonote::transaction, cryptonote::account_base, callback_entry, serialized_object<cryptonote::block>, serialized_object<cryptonote::transaction>, event_visitor_settings> >&, std::vector<long unsigned int>&, std::vector<long unsigned int>&, test_generator&, size_t, const cryptonote::block&, const cryptonote::account_base&)’:
/home/marki/TUBE-compile/bittube/tests/core_tests/block_validation.cpp:49:105: error: too few arguments to function ‘cryptonote::difficulty_type cryptonote::next_difficulty(std::vector<long unsigned int>, std::vector<long unsigned int>, size_t, uint64_t, uint64_t, cryptonote::difficulty_type)’
       difficulty_type diffic = next_difficulty(timestamps, cummulative_difficulties,DIFFICULTY_TARGET_V1);
                                                                                                         ^
In file included from /home/marki/TUBE-compile/bittube/src/cryptonote_basic/cryptonote_format_utils.h:35:0,
                 from /home/marki/TUBE-compile/bittube/tests/core_tests/chaingen.h:51,
                 from /home/marki/TUBE-compile/bittube/tests/core_tests/block_validation.cpp:32:
/home/marki/TUBE-compile/bittube/src/cryptonote_basic/difficulty.h:56:21: note: declared here
     difficulty_type next_difficulty(std::vector<std::uint64_t> timestamps, std::vector<difficulty_type> cumulative_difficulties, size_t target_seconds, uint64_t height, uint64_t last_diff_reset_height = 0, difficulty_type last_diff_reset_value = 0);
                     ^~~~~~~~~~~~~~~

Any idea how to compile it? I can't run the provided binary as the it wants LIBSSL libssl.so.1.0.0, but Debian9 (current stable) already has 1.0.2.

It seems that in fact the binary needs openssl 1.0.2, but under the filename libssl.so.1.0.0. Also it needs GLIBC 2.25, which is not available on Debian 9. Under what linux distro was the binary compiled?

./bittubed: /home/marki/IPBC/libssl.so.1.0.0: version `OPENSSL_1.0.2' not found (required by ./bittubed)
./bittubed: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by ./bittubed)

same issue on ubuntu 16.04 :'(

Those are from some of the tests failing to compile, you can compile without tests with make release or pull the latest version from master which has the test build errors fixed.