Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90905 - kdelibs-4.3.0-r1 fails test in kresolvertest.cpp
Summary: kdelibs-4.3.0-r1 fails test in kresolvertest.cpp
Status: RESOLVED DUPLICATE of bug 78231
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-29 14:45 UTC by Maurice van der Pot (RETIRED)
Modified: 2005-07-17 13:06 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maurice van der Pot (RETIRED) gentoo-dev 2005-04-29 14:45:26 UTC
I've seen the other reports about tests failing, but I feel this is a different bug.

Here's the error:
/bin/sh ../../libtool --silent --mode=link --tag=CXX i686-pc-linux-gnu-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 -march=pentium4 -O2 -pipe -g2 -ggdb2 -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  -L/usr/qt/3/lib -L/usr/lib -R /usr/kde/3.4/lib -R /usr/kde/3.4/lib -R /usr/qt/3/lib -R /usr/lib  -o kresolvertest  kresolvertest.o ../libkdecore.la 
kresolvertest.o(.text+0xabf): In function `go()':
/var/tmp/portage/kdelibs-3.4.0-r1/work/kdelibs-3.4.0/kdecore/tests/kresolvertest.cpp:289: undefined reference to `KDE::resolverFlags'
collect2: ld returned 1 exit status
make[2]: *** [kresolvertest] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.4.0-r1/work/kdelibs-3.4.0/kdecore/tests'


I've done some checking and I noticed the following.
kresolvertest.o needs resolverFlags from netsupp.o, which is part of libkdecore.so.

> nm tests/kresolvertest.o |grep resolverFlags
         U _ZN3KDE13resolverFlagsE

> nm .libs/libkdecore.so.4.2.0 |grep resolverFlags
00000acc r _ZN3KDE13resolverFlagsE

> nm .libs/netsupp.o |grep resolverFlags
00000000 R _ZN3KDE13resolverFlagsE

As you can see resolverFlags is external in netsupp.o, but it is local in 
libkdecore.so. I have reduced the command line that creates libkdecore.so
back to:

 /bin/sh ../libtool --silent --mode=link --tag=CXX i686-pc-linux-gnu-g++  -o libkdecore.la -rpath /usr/kde/3.4/lib -version-info 6:0:2   netsupp.lo

But still the symbol is made local.
Could that be the reason this test fails to link?
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-04-30 06:04:43 UTC
the kde herd is too small to care for this

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