kdebase compile error

Sebastian Sauer mail at dipe.org
Wed Jun 20 02:21:55 BST 2007


Since this week (?) I keep to get;

Linking CXX shared library ../../lib/libkdeinit4_konqueror.so
/usr/bin/ld: /home/kde4/svn/_build/kdebase/lib/libkonquerorprivate.a(konq_application.o): 
relocation R_X86_64_32 against `KonquerorApplication::staticMetaObject' can 
not be used when making a shared object; recompile with -fPIC
/home/kde4/svn/_build/kdebase/lib/libkonquerorprivate.a: could not read 
symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [lib/libkdeinit4_konqueror.so] Error 1
make[1]: *** [apps/konqueror/CMakeFiles/kdeinit_konqueror.dir/all] Error 2
make: *** [all] Error 2

Following does fix it for me, anyone an idea how the real fix needs to look 
like?

Index: apps/konqueror/CMakeLists.txt
===================================================================
--- apps/konqueror/CMakeLists.txt       (revision 677819)
+++ apps/konqueror/CMakeLists.txt       (working copy)
@@ -4,6 +4,7 @@
 add_definitions(-D_LARGEFILE64_SOURCE )

 add_definitions (-DQT3_SUPPORT)
+add_definitions (-fPIC)

 check_symbol_exists(mallinfo        "malloc.h"                 
KDE_MALLINFO_MALLOC)
 check_symbol_exists(mallinfo        "stdlib.h"                 
KDE_MALLINFO_STDLIB)




More information about the kde-core-devel mailing list