ROOT 5.34.38 make error on Ubuntu 18.04.4 LTS

Dear ROOTers,

I tried to install ROOT 5.34.38 with in the old “configure;make” way on Ubuntu 18.04.4 LTS, but “make -j1” failed with the error:

/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libgslcblas.a(xerbla.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5’ 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
/home/vmarusov/Downloads/root/math/mathmore/ recipe for target ‘lib/’ failed
make: *** [lib/] Error 1

But in the config.log I found the following fragment:

Checking whether /usr/lib/x86_64-linux-gnu/libgslcblas.a is compiled with -fPIC
Checking if /usr/lib/x86_64-linux-gnu/libgslcblas.a contains relocatable code
objdump -r /usr/lib/x86_64-linux-gnu/libgslcblas.a | grep -v ’ .debug_’ | grep ‘R_X86_64_32’
result: 1
Result: yes

I’m lost. How to proceed?

_ROOT Version: 5.34.38
_Platform: Ubuntu 18.04.4 LTS x86_64 GNU/Linux
_Compiler: gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)

Try: “./configure --enable-soversion --enable-gsl-shared --all

Dear Wile,
Thank you so much for the detour you suggested. But I still wonder, what is wrong with the way that configure uses to find out if the library contains position-independent code. Or there is a bug in ld?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.