Re: Errors: "Duplicate invocation" and can't find dll's

2005-07-06 Thread Igor Pechtchanski
On Thu, 7 Jul 2005, Angus Veitch wrote:

> I have just installed the X components of Cygwin and am hoping to
> eventually connect with XDMCP to my Linux machine.  But I'm having some
> serious teething problems.
>
> First, XWin seems to be having difficulty finding the dlls.  If I run
> "XWin -query [computer name]" I First I get an error message saying that
> it can't find cygwin1.dll.  If I copy that dll file from the cygwin\bin\
> directory into C:\cygwin\usr\X11R6\bin, the error message changes to
> another dll.  If I copy that dll to the X11R6\bin directory, it moves
> onto yet another one that it can't find.

NO, NO, NO!  Please don't do that.  Remove the DLLs you copied and instead
add C:\cygwin\bin to your PATH.

> If I run "startxwin.bat" instead, I don't get the dll error.

That's because startxwin.bat adds C:\cygwin\bin to the PATH.

> But when I try to run startx, I get:
>
> > winCheckDisplayNumber - Cygwin/X is already running on display 0
> >
> > Fatal server error:
> > InitOutput - Duplicate invocation on display number: 0.  Exiting.

And what's cryptic about that message?  You've already run X on display 0
-- use display 1 if you want another instance.

> If I try "startxdmcp.bat", I get a similar result:
>
> > mkdir: Cannot create /tmp/.X11-unix with root ownership
> > winCheckDisplayNumber - Cygwin/X is already running on display 0
> >
> > Fatal server error:
> > InitOutput - Duplicate invocation on display number: 0.  Exiting.

Ditto.

> The supposed cause of this error is that I am running two sessions of
> XWin, but that is simply not the case.  I get the same results if I add
> :1 to the batch files.

Is someone else running X on that machine?  Are you using terminal
services?

> Any suggestions?

Hmm, what does "ps -W | grep -i xwin" show?

> PS.
> This may be relevant: When I installed Cygwin/X, selected all of the X
> components, rather than just the ones that are automatically selected by
> the x-org base package or whatever it was called.  Is this bad?

Shouldn't be.  Please see the Cygwin problem reporting guidelines at
 for the right way of reporting your
installation information (particularly the part about attaching the output
of "cygcheck -svr").
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT


Re: Errors: "Duplicate invocation" and can't find dll's

2005-07-06 Thread Alexander Gottwald
On Thu, 7 Jul 2005, Angus Veitch wrote:

> First, XWin seems to be having difficulty finding the dlls.  If I run 
> "XWin -query [computer name]" I First I get an error message saying that 
> it can't find cygwin1.dll.  If I copy that dll file from the cygwin\bin\ 
> directory into C:\cygwin\usr\X11R6\bin, the error message changes to 
> another dll.  If I copy that dll to the X11R6\bin directory, it moves 
> onto yet another one that it can't find.
> 
> If I run "startxwin.bat" instead, I don't get the dll error.  

You must have the cygwin /bin directory listed in $PATH. If you use 
startxwin.bat
or run XWin from the bash shell this is done for you. If you intend to start 
xwin manually you have to take care of this.

But don't ever copy cygwin1.dll around as this will cause problems when updating
the cygwin package.

> But when I 
> try to run startx, I get:
> 
> > Fatal server error:
> > InitOutput - Duplicate invocation on display number: 0.  Exiting.
> 
> The supposed cause of this error is that I am running two sessions of 
> XWin, but that is simply not the case.  I get the same results if I add 
> :1 to the batch files.

Technicly speaking XWin checks is a mutex named CYGWINX_DISPLAY:0 does already
exist and set it. This is global to all windows programs but only XWin.exe and
Xming.exe should set it. Your logfile indicates that this mutex does exist, so 
another XWin.exe or Xming.exe process must exist. 

You can check this with the windows task manager.

> This may be relevant: When I installed Cygwin/X, selected all of the X 
> components, rather than just the ones that are automatically selected by 
> the x-org base package or whatever it was called.  Is this bad?

It should not cause any problems.

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


Errors: "Duplicate invocation" and can't find dll's

2005-07-06 Thread Angus Veitch
I have just installed the X components of Cygwin and am hoping to 
eventually connect with XDMCP to my Linux machine.  But I'm having some 
serious teething problems.


First, XWin seems to be having difficulty finding the dlls.  If I run 
"XWin -query [computer name]" I First I get an error message saying that 
it can't find cygwin1.dll.  If I copy that dll file from the cygwin\bin\ 
directory into C:\cygwin\usr\X11R6\bin, the error message changes to 
another dll.  If I copy that dll to the X11R6\bin directory, it moves 
onto yet another one that it can't find.


If I run "startxwin.bat" instead, I don't get the dll error.  But when I 
try to run startx, I get:



winCheckDisplayNumber - Cygwin/X is already running on display 0

Fatal server error:
InitOutput - Duplicate invocation on display number: 0.  Exiting.



If I try "startxdmcp.bat", I get a similar result:


mkdir: Cannot create /tmp/.X11-unix with root ownership
winCheckDisplayNumber - Cygwin/X is already running on display 0

Fatal server error:
InitOutput - Duplicate invocation on display number: 0.  Exiting.



The supposed cause of this error is that I am running two sessions of 
XWin, but that is simply not the case.  I get the same results if I add 
:1 to the batch files.


Any suggestions?

PS.
This may be relevant: When I installed Cygwin/X, selected all of the X 
components, rather than just the ones that are automatically selected by 
the x-org base package or whatever it was called.  Is this bad?