Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 79690

Summary: build failure of c++ libraries (non pic code in libstdc++)
Product: Gentoo Linux Reporter: Joseph Wenninger <jowenn>
Component: [OLD] DevelopmentAssignee: Gentoo KDE team <kde>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Joseph Wenninger 2005-01-27 02:43:32 UTC
I'm trying to compile kde cvs on and I get following error during linking of shared libraries. 
I'm using multilib and tried compiling gcc with and without most combinations of "pic" and "pie" in make.conf while emerging it from amd64 or ~amd64 branches.

linking ./kdefx/libkdefx.la
/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
-Wmissing-format-attribute
 -fno-exceptions -fno-check-new -fno-common -fno-exceptions
-fno-check-new -fno-common -fvisibility=hidden
-fvisibility-inlines-hidden -DQT_CLEAN_NAMESPACE
-DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION
-DQT_THREAD_SUPPORT -fPIC -D_REENTRANT -fPIC -R
/home/jowenn/development/kde/binary/lib
-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/lib
-L/home/jowenn/development/kde/binary/qt-copy/lib -L/usr/X11R6/lib64
-no-undefined -version-info 6:0:2 -o ./kdefx/libkdefx.la
-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/libkdefx.la. Exit status 1.

Any ideas ?

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Gregorio Guidi (RETIRED) gentoo-dev 2005-01-27 05:41:53 UTC

*** This bug has been marked as a duplicate of 78720 ***