SeisComP3 / seiscomp3

SeisComP is a seismological software for data acquisition, processing, distribution and interactive analysis.
Other
111 stars 88 forks source link

Compilation failure: relocation R_X86_64_PC32 against symbol `stdout@@GLIBC_2.2.5' can not be used when making a shared object #264

Closed samuelchodur closed 4 years ago

samuelchodur commented 4 years ago

Receive the following error when attempting to run: make install ... [ 35%] Linking CXX shared library ../../../../lib/libseiscomp3_client.so /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /home/user/src/sc3-src/src/trunk/libs/3rd-party/spread/lib/libtspread-core.a(alarm.o): warning: relocation against stdout@@GLIBC_2.2.5' in read-only section .text' /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /home/user/src/sc3-src/src/trunk/libs/3rd-party/spread/lib/libtspread-core.a(alarm.o): relocation R_X86_64_PC32 against symbol stdout@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status make[2]: *** [src/trunk/libs/seiscomp3/CMakeFiles/seiscomp3_client.dir/build.make:1183: lib/libseiscomp3_client.so] Error 1 make[1]: *** [CMakeFiles/Makefile2:4213: src/trunk/libs/seiscomp3/CMakeFiles/seiscomp3_client.dir/all] Error 2 make: *** [Makefile:163: all] Error 2

Does compilation require 32-bit libraries?

samuelchodur commented 4 years ago

I believe the issue was caused by me not running make from within the build dir. My mistake, I was able to successfully compile after that.