Ravencoin icon indicating copy to clipboard operation
Ravencoin copied to clipboard

Won't compile Ubuntu 16.04

Open alstef opened this issue 8 years ago • 3 comments

Describe the issue

Fails to compile on Ubuntu 16.04. Make error: /usr/bin/ld: crypto/libraven_crypto.a(crypto_libraven_crypto_a-blake.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC

Can you reliably reproduce the issue?

If so, please list the steps to reproduce below:

  1. git clone
  2. ./autogen.sh
  3. ./configure
  4. make -j4

Expected behaviour

Compilation succeeds

Actual behaviour

Compilation fails

Machine specs:

  • OS: Ubuntu 16.04
  • CPU: 4 core
  • RAM: 8 GB
  • Disk size: 250 GB
  • Disk Type (HD/SDD): HDD

alstef avatar Feb 05 '18 09:02 alstef

sudo apt-get update && sudo apt-get install -y software-properties-common

sudo add-apt-repository -y ppa:bitcoin/bitcoin sudo apt-get update && sudo apt-get install -y automake autotools-dev bsdmainutils build-essential git libboost-all-dev libdb4.8-dev libdb4.8++-dev libevent-dev libminiupnpc-dev libprotobuf-dev libqrencode-dev libqt5gui5 libqt5core5a libqt5dbus5 libssl-dev libtool libzmq3-dev pkg-config protobuf-compiler python3 qttools5-dev qttools5-dev-tools

git clone https://github.com/RavenProject/Ravencoin.git

cd Ravencoin

./autogen.sh

./configure --enable-cxx --disable-shared --with-pic --prefix=$BDB_PREFIX CXXFLAGS="-fPIC" CPPFLAGS="-fPIC"

make

GreeneTech avatar Feb 06 '18 01:02 GreeneTech

Works now. Thank you

alstef avatar Feb 13 '18 16:02 alstef

Solved - as per comment.

RavenCoinDev avatar Feb 19 '18 18:02 RavenCoinDev