[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug libstdc++/19664] libstdc++ headers should have pop/push of the visibility around the declarations




------- Comment #104 from funtoos at yahoo dot com  2007-05-28 04:15 -------
kdelibs doesn't link with gcc-4.2.0 with hidden visibility. It compiles and
links fine with gcc 4.1.2 with patch from Comment #86. That patch was included
by gentoo till 4.1.2 and dropped because this bug is supposedly fixed in 4.2.0.

I am having difficulty understanding it. How is it fixed if it doesn't even
match the functionality provided by one of the earlier proposed patches? Or Is
it that the kdelibs-3.5.[67] code needs to change for the new patch in GCC
4.2.0? Where is the problem?

The message from kdelibs link is:
--------------------------------------
/bin/sh ../libtool --silent --tag=CXX --mode=link x86_64-pc-linux-gnu-g++ 
-Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align
-Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2
-march=k8 -msse2 -msse3 -fforce-addr -pipe -Wformat-security
-Wmissing-format-attribute -Wno-non-virtual-dtor -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   -Wl,-O1 -Wl,--enable-new-dtags -o libkhtml.la -rpath
/usr/kde/3.5/lib64 -version-info 6:0:2 -no-undefined -Wl,--no-undefined
-Wl,--allow-shlib-undefined -Wl,--version-script=./libkhtml.map
-L/usr/kde/3.5/lib64 -L/usr/qt/3/lib64 -L/usr/lib64    libkhtml_la.all_cc.lo
libkhtml_la.all_cpp.lo  ./xml/libkhtmlxml.la ./html/libkhtmlhtml.la
./rendering/libkhtmlrender.la ./css/libkhtmlcss.la ./misc/libkhtmlmisc.la
ecma/libkjs_html.la ./dom/libkhtmldom.la  ../kparts/libkparts.la 
../kdeprint/libkdeprint.la ../kutils/libkutils.la
../kwallet/client/libkwalletclient.la
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
./html/.libs/libkhtmlhtml.a(libkhtmlhtml_la.all_cpp.o): relocation
R_X86_64_PC32 against `vtable for DOM::HTMLPreElementImpl' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
final link failed: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libkhtml.la] Error 1
make[3]: Leaving directory
`/home/tmp/portage/kde-base/kdelibs-3.5.7/work/kdelibs-3.5.7/khtml'
make[2]: *** [all-recursive] Error 1
----------------------------------------------------- 


-- 

funtoos at yahoo dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |funtoos at yahoo dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19664

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



Reply to: