Error compiling kdelibs4_snapshot on AMD64

Peter Hedlund peter at peterandlinda.com
Thu May 18 21:02:05 BST 2006


Hi,

After updating to the latest snapshot I can no longer compile kdelibs on my 
AMD64 computer. On my x86 it works fine. I have been able to build previous 
snapshots on both machines.

Linking CXX shared library ../lib/libkdecore.so
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: 
warning: creating a DT_TEXTREL in object.
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: 
CMakeFiles/kdecore.dir/kglobal.o: relocation R_X86_64_PC32 against 
`KGlobal::_locale' can not be used when making a shared object; recompile 
with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: 
final link failed: Bad value
collect2: ld returned 1 exit status
make[2]: *** [lib/libkdecore.so.5.0.0] Error 1
make[1]: *** [kdecore/CMakeFiles/kdecore.dir/all] Error 2
make: *** [all] Error 2

The "recompile with -fPIC" seems bogus to me since that's the default.

gcc is gcc (GCC) 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9)
kernel is 2.6.16-gentoo-r7

Any help would be appreciated.

Thanks,
Peter





More information about the kde-core-devel mailing list