Post
Topic
Board Announcements (Altcoins)
Re: chipsd on Debian 9 (Stretch)
by
boacw
on 08/10/2017, 18:43:30 UTC
I compiled chipsd on Debian 9 and, because I looked for this before and didn't find, I'm writing this message.
Is there a wiki I can contribute to to write the steps I followed?
that's great!
for now, just post here so we have the info for when we make wiki

These steps only build the headless version (chips-cli, chipsd...), not QT version!
I didn't verified what dependency it needs to. If you want to build QT version, don't put the "--with-gui=no" parameter at the end of these steps.

  • sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
  • git clone https://github.com/jl777/chips3
  • cd chips3
Install Berkeley DB 4.8 from source:
  • BITCOIN_ROOT=$(pwd)
  • BDB_PREFIX="${BITCOIN_ROOT}/db4"
  • mkdir -p $BDB_PREFIX
  • wget 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz'
  • echo '12edc0df75bf9abd7f82f821795bcee50f42cb2e5f76a6a281b85732798364ef  db-4.8.30.NC.tar.gz' | sha256sum -c
    (it should display it succeeded)
  • tar -xzvf db-4.8.30.NC.tar.gz
  • cd db-4.8.30.NC/build_unix/
  • ../dist/configure --enable-cxx --disable-shared --with-pic --prefix=$BDB_PREFIX
  • make install
Continue with chips:
  • cd $BITCOIN_ROOT
  • ./autogen.sh
  • ./configure LDFLAGS="-L${BDB_PREFIX}/lib/" CPPFLAGS="-I${BDB_PREFIX}/include/" --with-gui=no
  • make
  • ./chipsd -addnode=5.9.253.195
I try to compile it on Debian 8 (Jessie) to, but I get an error:
Code:
CXX      leveldb/port/leveldb_libleveldb_a-port_posix.o
leveldb/port/port_posix.cc: In function ‘bool leveldb::port::HasAcceleratedCRC32C()’:
leveldb/port/port_posix.cc:60:15: warning: ‘ecx’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   return (ecx & (1 << 20)) != 0;
               ^
  AR       leveldb/libleveldb.a
  CXX      leveldb/port/leveldb_libleveldb_sse42_a-port_posix_sse.o
  AR       leveldb/libleveldb_sse42.a
  CXX      leveldb/helpers/memenv/leveldb_libmemenv_a-memenv.o
  AR       leveldb/libmemenv.a
  CXXLD    chipsd
libbitcoin_util.a(libbitcoin_util_a-util.o): In function `GetNumCores()':
/home/xxxxx/chips3/src/util.cpp:883: undefined reference to `boost::thread::physical_concurrency()'
libbitcoin_util.a(libbitcoin_util_a-utiltime.o): In function `sleep':
/usr/local/include/boost/thread/pthread/thread_data.hpp:278: undefined reference to `boost::this_thread::hidden::sleep_until(timespec const&)'
libbitcoin_wallet.a(libbitcoin_wallet_a-db.o): In function `copy_file':
/usr/local/include/boost/filesystem/operations.hpp:539: undefined reference to `boost::filesystem::detail::copy_file(boost::filesystem::path const&, boost::filesystem::path const&, boost::filesystem::detail::copy_option, boost::system::error_code*)'
collect2: error: ld returned 1 exit status
Makefile:3601: recipe for target 'chipsd' failed
make[2]: *** [chipsd] Error 1
make[2]: Leaving directory '/home/xxxxx/chips3/src'
Makefile:9242: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/xxxxx/chips3/src'
Makefile:728: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1