amd64 linkage, probably not kde problem

Joseph Wenninger jowenn at
Thu Jan 27 09:01:03 GMT 2005


For the first time I try to build kde cvs on my amd64 (with gentoo).
Very early in the build process I get the error:

Perhaps a littlebit offtopic, but I see t he problem only when building

linking ./kdefx/
/bin/sh ./libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor
-Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
 -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith
-Wwrite-strings -g3 -fno-inline -Wformat-security
 -fno-exceptions -fno-check-new -fno-common -fno-exceptions
-fno-check-new -fno-common -fvisibility=hidden
-fvisibility-inlines-hidden -DQT_CLEAN_NAMESPACE
-R /home/jowenn/development/kde/binary/lib
-R /home/jowenn/development/kde/binary/qt-copy/lib -R /usr/X11R6/lib64
-L/home/jowenn/development/kde/binary/qt-copy/lib -L/usr/X11R6/lib64
-no-undefined -version-info 6:0:2 -o ./kdefx/
-rpath /home/jowenn/development/kde/binary/lib -Wl,--no-undefined
-Wl,--allow-shlib-undefined -lqt-mt -lz -lpng -lz -lm -lXext -lX11 -lSM
-lICE -lpthread -lXrender ./kdefx/kpixmap.lo
./kdefx/kpixmapsplitter.lo ./kdefx/kpixmapeffect.lo ./kdefx/kimageeffect.lo ./kdefx/kdrawutil.lo ./kdefx/kstyle.lo ./kdefx/kcpuinfo.lo
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: ./kdefx/.libs/kimageeffect.o: relocation R_X86_64_PC32
against `std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::size() const@@GLIBCXX_3.4' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
Error creating ./kdefx/ Exit status 1.

What do I have to recompile if I get this error? gcc ?  I tried kde with
--with-pic and --without-pic and without that switch. 
I never encountered such a problem on my centrino notebook. I'm a
littlebit lost. is that a i386<->amd64 problem ? 
Has anybody seen such an error with kde on amd64 ?
I'm running gentoo on both systems

Kind regards
Joseph Wenninger

More information about the kde-core-devel mailing list