fPIC needed in MN4 (Master)
It seems that libpath_util.so claims that needs -fPIC.
/gpfs/apps/MN4/GCC/8.1.0/bin/../lib/gcc/x86_64-suse-linux/8.1.0/../../../../x86_64-suse-linux/bin/ld: ../common/libpath_util.a(path_util.cpp.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/gpfs/apps/MN4/GCC/8.1.0/bin/../lib/gcc/x86_64-suse-linux/8.1.0/../../../../x86_64-suse-linux/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
src/client/CMakeFiles/gkfs_intercept.dir/build.make:320: recipe for target 'src/client/libgkfs_intercept.so' failed
The issue appears in the master.
It can be solved adding -fPIC
on the CMakeLists.txt
(58..60) in the CCFLAGS
-fPIC
is also needed if we want to use functions in the client from the LD_PRELOAD
library (i.e., the modified find in ior500).