Tux beats windows
Site Informations
SITE ADMINISTRATOR:
Gillen Daniel
VISITORS:
Build failure for xmount 0.7.3
forum.png


Submitted by fab on Sat, 04/02/2016 - 10:57

Issue with the build process while update the package for Fedora.

[ 96%] Built target xmount_morphing_unallocated
[100%] Linking C executable xmount
cd /home/fab/packages/xmount/xmount-0.7.3/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/xmount.dir/link.txt --verbose=1
/usr/bin/cc -fno-strict-aliasing -std=c99 -Wall -O2 -fno-strict-aliasing -std=c99 -Wall -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld CMakeFiles/xmount.dir/xmount.c.o CMakeFiles/xmount.dir/md5.c.o CMakeFiles/xmount.dir/__/libxmount/libxmount.c.o -o xmount -rdynamic -lfuse -ldl
/usr/bin/ld: CMakeFiles/xmount.dir/xmount.c.o: relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC
CMakeFiles/xmount.dir/xmount.c.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status

Comments

Submitted by gida on Sun, 06/12/2016 - 18:32

Hmm, would adding -fPIC to line 76 in /CMakeLists.txt solve the issue?

set(CMAKE_C_FLAGS "-fno-strict-aliasing -std=c99 -Wall -fPIC")