RavenProject / Ravencoin

Ravencoin Core integration/staging tree
https://www.ravencoin.org
MIT License
1.08k stars 676 forks source link

Won't compile Ubuntu 16.04 #21

Closed alstef closed 6 years ago

alstef commented 6 years ago

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:

GreeneTech commented 6 years ago

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

alstef commented 6 years ago

Works now. Thank you

RavenCoinDev commented 6 years ago

Solved - as per comment.