Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79690 - build failure of c++ libraries (non pic code in libstdc++)
Summary: build failure of c++ libraries (non pic code in libstdc++)
Status: RESOLVED DUPLICATE of bug 78720
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo KDE team
Depends on:
Reported: 2005-01-27 02:43 UTC by Joseph Wenninger
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
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/
/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.

Any ideas ?

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

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