Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86758 - kde-base/kdelibs-3.4.x fails maketest
Summary: kde-base/kdelibs-3.4.x fails maketest
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL: http://bugs.kde.org/show_bug.cgi?id=1...
Whiteboard:
Keywords:
: 90346 91522 100663 101325 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-26 04:17 UTC by Daniel Herzog
Modified: 2006-09-17 18:54 UTC (History)
10 users (show)

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


Attachments
ebuild able to run tests (kdelibs-3.4.3-r2.ebuild,3.44 KB, text/plain)
2006-09-05 00:24 UTC, Abraham Marin Perez
Details
Access violation log file (sandbox-kde-base_-_kdelibs-3.4.3-r2-13227.log,250 bytes, text/plain)
2006-09-05 00:24 UTC, Abraham Marin Perez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Herzog 2005-03-26 04:17:59 UTC
kbuildsycoca: WARNING: 'OpenOffice.org 1.1/writer.desktop' specifies undefined mimetype/servicetype 'application/x-doc'
kdecore (KProcess): WARNING: Can't open a pseudo teletype
error stat'ing fd 3: Bad file descriptor
QSocketNotifier: Invalid socket specified
QSocketNotifier: Internal error
KWrited 
Comment 1 Daniel Herzog 2005-03-26 04:17:59 UTC
kbuildsycoca: WARNING: 'OpenOffice.org 1.1/writer.desktop' specifies undefined mimetype/servicetype 'application/x-doc'
kdecore (KProcess): WARNING: Can't open a pseudo teletype
error stat'ing fd 3: Bad file descriptor
QSocketNotifier: Invalid socket specified
QSocketNotifier: Internal error
KWrited überwacht Gerät /dev/ttyoz

* Empty URL

* URL is file:///home/dfaure/file.txt

* URL is file:///home/dfaure/

* URL is ftp://ftp.kde.org/

* URL is file:///home/dfaure/my%20tar%20file.tgz#gzip:/#tar:/README

* URL is print:/specials/Print%20To%20File%20(PDF%2FAcrobat)

* URL is file:///specials/Print

* URL is ftp://host/dir1/dir2/myfile.txt

* URL is ftp://ftp.de.kde.org
FAIL: kurltest
PASS: kstdacceltest
===================
1 of 2 tests failed
===================

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 2 superstoned 2005-03-31 01:57:10 UTC
I have almost the same problem. in /var/tmp/portage/.blabla/kdecore/tests/kurltest I get this error message during the compile (and if run by hand):

There was an error setting up inter-process communications for KDE. The message returned by the system was:
Could not read network connection list. /root/.DCOPserver_wietbak_NODISPLAY
Please check that the dcopserver program is running


* Empty URL

* URL is file:///home/dfaure/file.txt

* URL is file:///home/dfaure/

* URL is ftp://ftp.kde.org/

* URL is file:///home/dfaure/my%20tar%20file.tgz#gzip:/#tar:/README

* URL is print:/specials/Print%20To%20File%20(PDF%2FAcrobat)

* URL is file:///specials/Print

* URL is ftp://host/dir1/dir2/myfile.txt

* URL is ftp://ftp.de.kde.org

then some test failed stuff, and it exits.
Comment 3 superstoned 2005-03-31 02:24:54 UTC
sorry, just found the log:
(cut)
/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 -DNDEBUG -DNO_DEBUG -O2 -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -fno-exceptions -fno-check-new -fno-common  -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 -Wl,-O1 -wl,--sort-common -o kglobaltest  kglobaltest.o ../libkdecore.la 
i686-pc-linux-gnu-g++: unrecognized option `-wl,--sort-common'
make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.4.0/work/kdelibs-3.4.0/kdecore/tests'
make  check-TESTS
make[3]: Entering directory `/var/tmp/portage/kdelibs-3.4.0/work/kdelibs-3.4.0/kdecore/tests'
There was an error setting up inter-process communications for KDE. The message returned by the system was:

Could not read network connection list.
/var/tmp/portage/kdelibs-3.4.0/temp/fakehome/.DCOPserver_wietbak_NODISPLAY

Please check that the "dcopserver" program is running!

* Empty URL

* URL is file:///home/dfaure/file.txt

* URL is file:///home/dfaure/

* URL is ftp://ftp.kde.org/

* URL is file:///home/dfaure/my%20tar%20file.tgz#gzip:/#tar:/README

* URL is print:/specials/Print%20To%20File%20(PDF%2FAcrobat)

* URL is file:///specials/Print

* URL is ftp://host/dir1/dir2/myfile.txt

* URL is ftp://ftp.de.kde.org
FAIL: kurltest
PASS: kstdacceltest
===================
1 of 2 tests failed
===================
make[3]: *** [check-TESTS] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.4.0/work/kdelibs-3.4.0/kdecore/tests'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.4.0/work/kdelibs-3.4.0/kdecore/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.4.0/work/kdelibs-3.4.0/kdecore'
make: *** [check-recursive] Error 1

I just removed the LDFLAGS (as it said it didn't understand -wl, --sort-common). my cflags are -O2 -pipe -march=blabla (posting from other OS, as I haven't got gentoo to work graphically - gtk/gnome doesn't compile either)
Comment 4 superstoned 2005-03-31 05:18:18 UTC
tried again to compile kdelibs, no-go:
(from log)
(cut)
/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 -DNDEBUG -DNO_DEBUG -O2 -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -fno-exceptions -fno-check-new -fno-common  -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 kglobaltest  kglobaltest.o ../libkdecore.la 
make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.4.0/work/kdelibs-3.4.0/kdecore/tests'
make  check-TESTS
make[3]: Entering directory `/var/tmp/portage/kdelibs-3.4.0/work/kdelibs-3.4.0/kdecore/tests'
There was an error setting up inter-process communications for KDE. The message returned by the system was:

Could not read network connection list.
/var/tmp/portage/kdelibs-3.4.0/temp/fakehome/.DCOPserver_wietbak_NODISPLAY

Please check that the "dcopserver" program is running!

* Empty URL

* URL is file:///home/dfaure/file.txt

* URL is file:///home/dfaure/

* URL is ftp://ftp.kde.org/

* URL is file:///home/dfaure/my%20tar%20file.tgz#gzip:/#tar:/README

* URL is print:/specials/Print%20To%20File%20(PDF%2FAcrobat)

* URL is file:///specials/Print

* URL is ftp://host/dir1/dir2/myfile.txt

* URL is ftp://ftp.de.kde.org
FAIL: kurltest
PASS: kstdacceltest
===================
1 of 2 tests failed
===================
make[3]: *** [check-TESTS] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.4.0/work/kdelibs-3.4.0/kdecore/tests'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.4.0/work/kdelibs-3.4.0/kdecore/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.4.0/work/kdelibs-3.4.0/kdecore'
make: *** [check-recursive] Error 1

!!! ERROR: kde-base/kdelibs-3.4.0 failed.
!!! Function src_test, Line 566, Exitcode 0
!!! Make check failed. See above for details.
!!! If you need support, post the topmost build error, NOT this status message. 

CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"

USE="-gtk -gtk2 -gnome -xmms -oss real bzip2 sqllite 3dnow acpi acl aim arts apm avi alsa bzlib crypt cups curl curlwrappers cdr cups dga dio divx4linux encode flac gif glx gstreamer imagemagick imap imlib ipv6 ithreads jabber java jikes jpeg kde kdeenablefinal -kerberos krb4 ldap mad mime ming mmap mmx mng mp3 mpeg mpi msn nls nptl nptlonly ncurses nls offensive oggvorbis openal opengl oscar pdflib perl pic png posix pam pthreads python qt quicktime readline scanner sdl speex spell sse ssl svg szip samba ssl tiff truetype wmf xface xine xml xinerama xml2 xv xvid yahoo zlib tcpd X nvidia zeroconf theora jpeg2k artswrappersuid jpeg2k hal"
Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2005-03-31 05:26:44 UTC
Looks like this one is on our end - our overriding of HOME in the kde eclass makes the dcopserver not be able to find its socket information.
Comment 6 superstoned 2005-03-31 07:48:51 UTC
now, how can I fix it?
Comment 7 Caleb Tennis (RETIRED) gentoo-dev 2005-03-31 07:52:51 UTC
For now, don't use maketest.

For long term, I'm not sure yet.
Comment 8 Daniel Herzog 2005-04-17 04:46:31 UTC
"Looks like this one is on our end - our overriding of HOME in the kde eclass makes the dcopserver not be able to find its socket information."

Well - why can't this be fixed?
Comment 9 Caleb Tennis (RETIRED) gentoo-dev 2005-04-17 17:13:49 UTC
It can, as soon as you submit the patch that incorporates the fix.
Comment 10 Gregorio Guidi (RETIRED) gentoo-dev 2005-04-25 03:44:18 UTC
*** Bug 90346 has been marked as a duplicate of this bug. ***
Comment 11 Sascha Silbe 2005-04-25 08:05:29 UTC
Please update the summary to include kdelibs 3.3.2(-r8). Thx! 
Comment 12 Gregorio Guidi (RETIRED) gentoo-dev 2005-05-05 01:49:04 UTC
*** Bug 91522 has been marked as a duplicate of this bug. ***
Comment 13 Philippe Van Deyck 2005-05-23 14:18:16 UTC
I don't know if i should file a new bug-report for this, but
kde-base/kdelibs-3.4.0-r2 has the same prob. But since this one is still
unresolved...

Here's the output i get:
make  check-TESTS
make[3]: Entering directory
`/var/tmp/portage/kdelibs-3.4.0-r2/work/kdelibs-3.4.0/kdecore/tests'
Link points to "/tmp/ksocket-root"
/usr/bin/iceauth:  creating new authority file
/var/tmp/portage/kdelibs-3.4.0-r2/temp/fakehome/.ICEauthority
Link points to "/tmp/kde-root"
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kded: cannot connect to X server :0.0
DCOP aborting call from 'anonymous-28808' to 'kded'
kded: ERROR: Communication problem with kded, it probably crashed.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kdeinit: Can't connect to the X Server.
kdeinit: Might not terminate at end of session.
Link points to "/var/tmp/kdecache-root"
kdeinit: Shutting down running client.
---------------------------------
It looks like dcopserver is already running. If you are sure
that it is not already running, remove
/var/tmp/portage/kdelibs-3.4.0-r2/temp/fakehome/.DCOPserver_philippe__0
and start dcopserver again.
---------------------------------

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kded: cannot connect to X server :0.0
kded: ERROR: KUniqueApplication: Registering failed!
kded: ERROR: Communication problem with kded, it probably crashed.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kdeinit: Can't connect to the X Server.
kdeinit: Might not terminate at end of session.

* Empty URL

* URL is file:///home/dfaure/file.txt

* URL is file:///home/dfaure/

* URL is ftp://ftp.kde.org/

* URL is file:///home/dfaure/my%20tar%20file.tgz#gzip:/#tar:/README

* URL is print:/specials/Print%20To%20File%20(PDF%2FAcrobat)

* URL is file:///specials/Print

* URL is ftp://host/dir1/dir2/myfile.txt

* URL is ftp://ftp.de.kde.org
FAIL: kurltest
PASS: kstdacceltest
===================
1 of 2 tests failed
===================
Comment 14 Rumen Yotov 2005-05-23 22:44:16 UTC
Hi,
Something conserning comment #12, this might be connected to the fact that by
default (as root) you can't start any X-based application, due to missing
DISPLAY env-var being set in root's environment. Might be wrong though.
Try this first (as root): "env | grep DISPLAY" you should get nothing;
Then next: '#DISPLAY=":0.0" some_graphical_app_here' if this works;
Last try: 'DISPLAY=":0.0" emerge kdelibs' thus using DISPLAY-var during
compile|test phase.
PS:to make this setting permanent (in a session)do:"export DISPLAY=":0.0" (bash)
Just my thoughts here, corrections accepted of course.
Think that unsetting DISPLAY var in root-env is gentoo-specific (though good
from security point) thoughts?
HTH. Rumen
Comment 15 Philippe Van Deyck 2005-06-03 07:33:35 UTC
To reply on comment 13:
The error indeed seems to indicate the problem could be the DISPLAY environment
variable. But i log in as root using sux, a su-wrapper which transfers
X-credentials. Starting X-based apps as root causes no problem for me.

But, maybe the emerge tools have problems starting these X-based apps, due to
their sandboxing environment. I'm just guessing here, i really don't know how
the sandbox works, only what it does, so...
Comment 16 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2005-07-01 06:28:29 UTC
kdelibs-3.4.1-r1 fails too. Maybe we should disable tests for kdelibs as a
workaround for this problem?
Comment 17 Caleb Tennis (RETIRED) gentoo-dev 2005-07-14 10:11:33 UTC
has anyone reported this to bugs.kde.org ? 
Comment 18 Daniel Herzog 2005-07-15 05:31:16 UTC
I thought i did so yet, but i couldnt find it via searching now...anyone?
Comment 19 Gregorio Guidi (RETIRED) gentoo-dev 2005-07-29 01:40:28 UTC
*** Bug 100663 has been marked as a duplicate of this bug. ***
Comment 20 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2005-08-04 06:42:54 UTC
(In reply to comment #16)

http://bugs.kde.org/show_bug.cgi?id=109851
Comment 21 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-04 06:56:43 UTC
*** Bug 101325 has been marked as a duplicate of this bug. ***
Comment 22 Attila Stehr 2005-11-26 12:23:39 UTC
problem remains with kde-base/kdelibs-3.4.3

Daniel: can you please alter the description (summary) to 
"kde-base/kdelibs-3.4.x fails maketest"

Ty!
Comment 23 Attila Stehr 2006-05-14 12:48:10 UTC
maybe the recent output is useful:

---------snip------------
make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.4.3-r1/work/kdelibs-3.4.3/kdecore/tests'
make  check-TESTS
make[3]: Entering directory `/var/tmp/portage/kdelibs-3.4.3-r1/work/kdelibs-3.4.3/kdecore/tests'
Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
Error: "/root/.kde/socket-magic" points to "/tmp/ksocket-root" instead of "/var/tmp/portage/kdelibs-3.4.3-r1/temp/ksocket-root".
Error: Can not create link from "/root/.kde/socket-magic" to "/var/tmp/portage/kdelibs-3.4.3-r1/temp/ksocket-root"
Error: Can not create link from "/root/.kde/socket-magic" to "/var/tmp/portage/kdelibs-3.4.3-r1/temp/ksocket-rootRSn88D"
Link points to "/tmp/ksocket-root"
Creating link /root/.kde/socket-magic.
/usr/bin/iceauth:  creating new authority file /var/tmp/portage/kdelibs-3.4.3-r1/temp/fakehome/.ICEauthority
Error: "/root/.kde/tmp-magic" points to "/tmp/kde-root" instead of "/var/tmp/portage/kdelibs-3.4.3-r1/temp/kde-root".
Error: Can not create link from "/root/.kde/tmp-magic" to "/var/tmp/portage/kdelibs-3.4.3-r1/temp/kde-root"
Error: Can not create link from "/root/.kde/tmp-magic" to "/var/tmp/portage/kdelibs-3.4.3-r1/temp/kde-rootg5Pk41"
Link points to "/tmp/kde-root"
Creating link /root/.kde/tmp-magic.
Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
kbuildsycoca running...
Link points to "/var/tmp/kdecache-root"
kio (KService*): WARNING: Invalid Service : /usr/share/applications/sun_java-jre.desktop
kbuildsycoca: WARNING: '/usr/share/applications/AdobeReader.desktop' specifies undefined mimetype/servicetype 'application/vnd.fdf'
----------------snip----------------------
* URL is ftp://ftp.de.kde.org
FAIL: kurltest
Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
Comment 24 Philipp Riegger 2006-05-28 08:48:41 UTC
Same with kdelibs-3.5.x
Comment 25 Abraham Marin Perez 2006-09-05 00:23:09 UTC
This error has already appeared with other ebuilds and has an easy solution. The problem is that testing the application implies having some X environment and the user running emerge usually doesn't have such thing; to solve this portage itself has some options:

add 'virtualx' to the 'inherit' clause
run the test as "Xmake check || die"

I'll post an attachment with a modified ebuild that does run the tests properly. However, now the problem is that make check uses some files in user's $HOME dir, causing a sandbox access violation, but this would be a different bug once the test is run properly, wouldn't it? I'll also post access violation log file, just in case.

Comment 26 Abraham Marin Perez 2006-09-05 00:24:08 UTC
Created attachment 96038 [details]
ebuild able to run tests
Comment 27 Abraham Marin Perez 2006-09-05 00:24:32 UTC
Created attachment 96039 [details]
Access violation log file
Comment 28 Carsten Lohrke (RETIRED) gentoo-dev 2006-09-17 18:54:07 UTC
KDE 3.4 is not in the tree anymore. For KDE 3.5 see bug 135408.