Date: Mon, 24 Dec 2001 10:20:46 -0900 From: Beech Rintoul <akbeech@anchoragerescue.org> To: uwi@mail.delfi.lv, questions@freebsd.org Subject: Re: dcopserver Message-ID: <20011224192047.EAADB91@nebula.anchoragerescue.org> In-Reply-To: <200112241753.fBOHrMx04058@smtp.delfi.lv> References: <200112241753.fBOHrMx04058@smtp.delfi.lv>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Monday 24 December 2001 08:53 am, uwi@mail.delfi.lv wrote:
> when I do startx in a few seconds the following appears:
> "There was an error setting up inter-process communications for KDE. The
> message returned by the system was:
> Could not read network connection list
> /home/uwiman/.DCOPserver_elexis.uwiland.com_:0
> Please check that the "dcopserver" program is running!"
>
>
> If I do Ctrl-ALT-F1 I see the following:
> "
> kdeinit:Launched DCOPServer, pid = 378 result = 0
> _KDE_IceTransSocketUNIXCreateListener:...SocketCreateListener() failed
> _KDE_IceTransMakeAllCOTSServerListeners: server already running
> Cannot establish any listening sockets
> DCIOServer self-test failed.
> kdeinit:DCOPServer could not be started, aboting.
> ERROR: KUniqueApplication: Can't setup DCOP communication"
>
> the funny thing is if I re-start X a few times it might actually go thru
> procedure with no errors.... but thats irritating you know.
>
> whats going on and how to fix it on permanent basis?
>
> Thanks in advance.
>
> FreeBSD 4.4 Rel, KDE 2.2
>
> --uwi
> mAn.
>
Apply this patch I got from one of the KDE developers and rebuild kdelibs.
This seems to be a FreeBSD problem, but the patch solved the problem for me.
Beech
-------------------------------------------------------------------
Beech Rintoul - IT Manager - Instructor - akbeech@anchoragerescue.org
/"\ ASCII Ribbon Campaign | Anchorage Gospel Rescue Mission
\ / - NO HTML/RTF in e-mail | P.O. Box 230510
X - NO Word docs in e-mail | Anchorage, AK 99523-0510
/ \ -----------------------------------------------------------------
[-- Attachment #2 --]
Index: listen.c
===================================================================
-|RCS file: /usr/ports/x11/kdelibs2/work/kdelibs-2.2.1/dcop/KDE-ICE/listen.c,v
+|RCS file: /usr/ports/x11/kdelibs2/work/kdelibs-2.2.1/dcop/KDE-ICE/listen.c,v
retrieving revision 1.1retrieving revision 1.2
diff -u -3 -d -p -r1.1 -r1.2
--- listen.c 2001/03/10 06:00:07 1.1
+++ listen.c 2001/09/27 05:07:01 1.2
@@ -32,6 +32,7 @@ Author: Ralph Mor, X Consortium
#include "KDE-ICE/ICElibint.h"
#include "KDE-ICE/Xtrans.h"
#include <stdio.h>
+#include <time.h>
Status
@@ -46,12 +47,21 @@ char *errorStringRet;
struct _IceListenObj *listenObjs;
char *networkId;
int transCount, partial, i, j;
+ int result = -1;
+ int count = 0;
Status status = 1;
XtransConnInfo *transConns = NULL;
+ while ((result < 0) && (count < 5))
+ {
+ char buf[128];
+ sprintf(buf, "dcop%d-%d", getpid(), time(NULL)+count);
+ result = _KDE_IceTransMakeAllCOTSServerListeners (buf, &partial,
+ &transCount, &transConns);
+ count++;
+ }
- if ((_KDE_IceTransMakeAllCOTSServerListeners (NULL, &partial,
- &transCount, &transConns) < 0) || (transCount < 1))
+ if ((result < 0) || (transCount < 1))
{
*listenObjsRet = NULL;
*countRet = 0;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011224192047.EAADB91>
