Date: Fri, 9 Nov 2001 20:49:08 -0500 From: Derrick Norris <denorris@bellsouth.net> To: Galen Sampson <galen_sampson@yahoo.com>, freebsd-stable@FreeBSD.ORG Subject: Re: KDE init [was RE: DCOP server problem...] Message-ID: <200111100149.fAA1n8u52839@visar.norris-net.com> In-Reply-To: <200111100123.fAA1NNr52110@visar.norris-net.com> References: <20011109180124.31471.qmail@web14103.mail.yahoo.com> <200111100123.fAA1NNr52110@visar.norris-net.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Friday 09 November 2001 08:23 pm, Derrick Norris wrote:
> My memory may be failing, but it seems like I saw a simple patch somewhere
> that just added a small wait to the KDE init sequence in order to make the
> problem stop. But like I said, I can't be sure if I am remembering
> correctly. If I can find it I'll post info.
Found it (maybe). Galen, I don't know if this is the exact problem you are
having, but maybe for the benefit of others who are still having the DCOP
server error on startup. From a posting to -questions by Beech Rintoul on
10/31:
>On Tuesday 30 October 2001 11:55 am, Mark wrote:
>> "There was an error setting up inter-process communications for KDE. The
>> message returned by system was:
>>
>> Could not read network connection list.
>> /home/h43euf/.DCOPserver_tester.mep.nist.gov_:1
>>
>> Please check that the 'dcopserver' program is running!"
>>
>> I get this error after first bootup and typing startx for the first time. I
>> click ok, wait a few, type startx and KDE runs normally.
>>
> I had the same problem and I got this patch from one of the KDE developers.
> It worked on two of my boxes. I attached it for you.
Along with a later follow-up (looks like a change to be made to the diff):
>> KDE-ICE.diff should be:
>>
>> -|RCS file:
/usr/ports/x11/kdelibs2/work/kdelibs-2.2/dcop/KDE-ICE/listen.c,v
>> +|RCS file:/usr/ports/x11/kdelibs2/work/kdelibs-2.2/dcop/KDE-ICE/listen.c,v
>>
> Thanks, actually for the new port it should be:
> -|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
Hope this helps Galen or others...
Derrick
[-- Attachment #2 --]
Index: listen.c
===================================================================
RCS file: /usr/ports/x11/kdelibs2/work/kdelibs2.2/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?200111100149.fAA1n8u52839>
