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
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.
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.
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)
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"
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.
now, how can I fix it?
For now, don't use maketest. For long term, I'm not sure yet.
"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?
It can, as soon as you submit the patch that incorporates the fix.
*** Bug 90346 has been marked as a duplicate of this bug. ***
Please update the summary to include kdelibs 3.3.2(-r8). Thx!
*** Bug 91522 has been marked as a duplicate of this bug. ***
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 ===================
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
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...
kdelibs-3.4.1-r1 fails too. Maybe we should disable tests for kdelibs as a workaround for this problem?
has anyone reported this to bugs.kde.org ?
I thought i did so yet, but i couldnt find it via searching now...anyone?
*** Bug 100663 has been marked as a duplicate of this bug. ***
(In reply to comment #16) http://bugs.kde.org/show_bug.cgi?id=109851
*** Bug 101325 has been marked as a duplicate of this bug. ***
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!
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
Same with kdelibs-3.5.x
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.
Created attachment 96038 [details] ebuild able to run tests
Created attachment 96039 [details] Access violation log file
KDE 3.4 is not in the tree anymore. For KDE 3.5 see bug 135408.