libbitcoin / libbitcoin-explorer

Bitcoin Command Line Tool
Other
600 stars 176 forks source link

Build fails with linker problem on libsodium #661

Closed m-schmoock closed 4 years ago

m-schmoock commented 4 years ago

Issue

When I try to compile the code with ./autogen.sh, ./configure and make the linker complains about expecting position independent code (PIC):

$ make -j16

  CXXLD    src/libbitcoin-explorer.la
/usr/bin/ld: /usr/local/lib/libsodium.a(libsodium_la-box_curve25519xsalsa20poly1305.o): relocation R_X86_64_PC32 against symbol `crypto_box_curve25519xsalsa20poly1305_beforenm' 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
make: *** [Makefile:2211: src/libbitcoin-explorer.la] Error 1

System

m-schmoock commented 4 years ago

I think it is related to having an outdated /usr/local/lib/libsodium.a. fixed that and retrying now...

m-schmoock commented 4 years ago

okay works now, can be close.