Compile errors originating from libKF5XsltKde.a

Kevin Funk kfunk at kde.org
Thu Feb 27 14:24:30 UTC 2014


Am Donnerstag, 27. Februar 2014, 13:06:38 schrieb Kevin Funk:
> Hey,
> 
> I get the following compile errors when compiling anything that depends on
> libKF5XsltKde.a from kdoctools:
> 
> When compiling kio:
> 
> [ 53%] Built target kio_file
> /home/krf/bin/ld: error: /home/krf/devel/install/kf5/lib/x86_64-linux-
> gnu/libKF5XsltKde.a(xslt.cpp.o): requires dynamic R_X86_64_PC32 reloc
> against '_ZN7QStringpLE5QChar' which may overflow at runtime; recompile
> with -fPIC /home/krf/bin/ld: error:
> /home/krf/devel/install/kf5/lib/x86_64-linux-
> gnu/libKF5XsltKde.a(xslt.cpp.o): requires dynamic R_X86_64_32 reloc which
> may overflow at runtime; recompile with -fPIC
> /home/krf/bin/ld: error: /home/krf/devel/install/kf5/lib/x86_64-linux-
> gnu/libKF5XsltKde.a(xslt.cpp.o): requires dynamic R_X86_64_PC32 reloc
> against '_ZN5QChar7unicodeEv' which may overflow at runtime; recompile with
> -fPIC
> 
> Obviously, the reason is that -fPIC is missing for the static library target
> libKF5XsltKde.a.
> 
> I thought that's added implicitly when doing
> target_link_libraries(KF5XsltKde Qt5::Core KF5::Archive)?
> That pulls in the link flags from Qt5Core, no?
> 
> Ideas?
> 
> Important note: My Qt5 here is configured with -no-reduce-relocations (that
> might be the issue?), adding -fPIC fixes the build for me.
> 
> Greets

Note: That happens with any static library it seems -- just got the same for 
libkatefiletree.a.

So, any ideas how to solve this in a generic way?

Cheers

-- 
Kevin Funk


More information about the Kde-frameworks-devel mailing list