FeatherCoin / Feathercoin

https://feathercoin.com
MIT License
128 stars 124 forks source link

Compilation #364

Closed pinpins closed 6 years ago

pinpins commented 6 years ago

Hello,

Ubuntu 16

To reproduce: ./autogen.sh ./configure CFLAGS=-fPIC CXXFLAGS=-fPIC --enable-shared --without-gui --disable-tests make

Error: /usr/bin/ar: u' modifier ignored sinceD' is the default (see U') make[3]: Leaving directory '/home/pool/Feathercoin/src/secp256k1' CXXLD libbitcoinconsensus.la /usr/bin/ld: crypto/.libs/libbitcoinconsensus_la-neoscrypt_asm.o: relocation R_X86_64_PC32 against symbolblake2s_compress' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status

wellenreiter01 commented 6 years ago

This is a known issue. you either can do: ./autogen.sh export CFLAGS=-fPIC
export CFPPLAGS=-fPIC ./configure

or

you can install the package from https://software.opensuse.org/package/feathercoin (select the community package for your OS version)

or

follow the instructions in the Forum post here , which will give you updates according to the update policy you've set on your system (manual or automated)

Bushstar commented 6 years ago

You've got --enable-shared set. Do the following and run make clean then make.

./configure --disable-shared --enable-static

wellenreiter01 commented 6 years ago

--enable-shared with the above mentioned exports works, too ;)

pinpins commented 6 years ago

Please add it to installation instructions placed in github, or better incorporate in ./configure code