Description of problem: libbfd in binutils package isn't compiled with -fPIC Version-Release number of selected component (if applicable): any? How reproducible: always Steps to Reproduce: When compiling Crystalspace with --enable-debug 1. svn co https://crystal.svn.sourceforge.net/svnroot/crystal/CS/trunk CS_latest 2. ./configure --enable-debug 3. jam -aq Actual results: compilation fails ResponseFile1 ./out/linux/debug/libs/libcrystalspace-1.3.so.resp LinkSharedLibraryRsp ./out/linux/debug/libs/libcrystalspace-1.3.so /usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/4.3.0/../../../../lib64/libbfd.a(format.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-redhat-linux/4.3.0/../../../../lib64/libbfd.a: could not read symbols: Bad value collect2: ld returned 1 exit status g++ -Wl,--as-needed -shared -o ./out/linux/debug/libs/libcrystalspace-1.3.so -Wl,@./out/linux/debug/libs/libcrystalspace-1.3.so.resp -Wl,--gc-sections \ -lm -ldl -lnsl -L/usr/local/lib -Wl,-z,defs -Wl,--warn-unresolved-symbols -Wl,-E -g3 -lbfd -liberty -lz -lpthread -lm -ldl -lnsl -L/usr/local/lib -Wl,-z,defs -Wl,--warn-unresolved-symbols -Wl,-E -g3 -Wl,-soname,libcrystalspace-1.3.so ...failed LinkSharedLibraryRsp ./out/linux/debug/libs/libcrystalspace-1.3.so ... ...failed updating 1 target(s)... ...updated 246 target(s)... Expected results: compilation should continue Additional info: It's mentioned for example here https://fcp.surfsite.org/modules/newbb/viewtopic.php?topic_id=53684&forum=11 and "fix" in there helps. I'd love to know if there is any reason for not having -fPIC there ?
Prevents Anjuta to be build with valgrind-plugin on x86_64 too. See https://fcp.surfsite.org/modules/newbb/viewtopic.php?topic_id=53684&forum=11
This also affects building oprofile-0.9.4-rc3 (oprofile release candidate) on F-9: http://sourceforge.net/project/showfiles.php?group_id=16191 The suggested fix for binutils of adding -fPIC to the .spec file seemed to solve this problem.
binutils-2.18.50.0.6-4.fc9 has been submitted as an update for Fedora 9
binutils-2.18.50.0.6-4.fc9 has been pushed to the Fedora 9 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update binutils'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-6494
CS with --enable-debug compiles fine here. Seems to be ok now. Thank you
Your tests were great, as the patch does not change the binutils linked binaries it should have no regression. Pushed it to stable.
binutils-2.18.50.0.6-4.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.