Linking error on x86_64

Alexander Neundorf neundorf at kde.org
Mon Jul 17 20:52:42 BST 2006


On Monday 17 July 2006 19:39, Andras Mantia wrote:
> Hi,
>
>  Currently kdevelop fails to compile for me on x86_64. The error is:
> Linking CXX shared module ../../../lib/kdevcmakeimporter.so
> /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld
>:
> /data/home/andris/development/build/kde-trunk/kdevelop/lib/libCMakeLib.a(cm
>CustomCommand.o): relocation R_X86_64_32 against `a local symbol' can not be
> used when making a shared object; recompile with -fPIC
> /data/home/andris/development/build/kde-trunk/kdevelop/lib/libCMakeLib.a:
> could not read symbols: Bad value
> collect2: ld returned 1 exit status
>
> Is this a visibility related bug of compiler I remember of (g++ (GCC)
> 4.1.0 (SUSE Linux)), or related to static libraries linked with shared
> ones?? In either way, what is the correct fix for such an error?

Correct would be to just compile the source files into the shared library 
instead of compiling them into a static lib. Linking a static lib into a 
shared one (as with libtool convenience libs) is not supported right now.

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net




More information about the kde-core-devel mailing list