Re: Error: couldn't make stderr distinct from stdout
On Tuesday 19 December 2000 01:55, Don Bowman wrote: > installer. When invoked via telnet, bash quits with the > same "couldn't make stderr distinct from stdout" message. > My other windows2000 box with the same setup but cygwin1.dll > of ts=1998/12/3 23:39 works well with the telnet server. Fine. There's has been made a change in Cygwin which tries the following on init: - Get the stdin, stdout and stderr handles from the system. - If stdout handle == stderr handle then try to separate them into two _different_ handles. This is important to allow separate redirection of stdout and stderr. - If this failes (The Win32 system call `DuplicateHandle') the above system error output is forced. The problem is that the W2K telnet server doesn't allow duplicating the handle for some strange reason which only Microsoft knows of. Try using telnet from the inetutils package. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:[EMAIL PROTECTED] Red Hat, Inc. -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
Re: Error: couldn't make stderr distinct from stdout
>I just upgraded my cygwin installation from 1.0 to the latest cygwin DLLs >(cygwin-1.1.5-4) and now almost every utililty (ls,cat,etc) prints out >"couldn't make stderr distinct from stdout" when it starts. tcsh prints the >error and exits. I backed out to cygwin-1.1.4 and got the same problem. I >am running all of these apps remotely in a telnet window connected a windows >2000 telnet server (the default one that comes with win2k) on a remote >machine, this worked fine until I upgraded cygwin. The apps appear to run >OK when run in a normal window on the local machine. >Thanks for any help, >chris I too have just run into this. I have a new windows 2000 system, nothing installed on it but the os. I installed cygwin 1.1.6 from the web site installer. When invoked via telnet, bash quits with the same "couldn't make stderr distinct from stdout" message. My other windows2000 box with the same setup but cygwin1.dll of ts=1998/12/3 23:39 works well with the telnet server. The output of the cygcheck for this machine is below. Cygnus Win95/NT Configuration Diagnostics Current System Time: Mon Dec 18 19:45:45 2000 WinNT Ver 5.0 build 2195 Service Pack 1 Path: /bin /usr/bin //c/Programs/Rational/ClearCase/bin SysDir: C:\WINNT\System32 WinDir: C:\WINNT PWD = `/home/administrator' USER = `administrator' MAKE_MODE = `unix' HOME = `/home/administrator' NUMBER_OF_PROCESSORS = `2' PROMPT = `$P$G' LOGONSERVER = `\\RETORT' OS2LIBPATH = `C:\WINNT\system32\os2\dll;' COMSPEC = `C:\WINNT\system32\cmd.exe' !C: = `C:\programs\cygwin\bin' SYSTEMDRIVE = `C:' HOSTNAME = `FIRMTST' PROCESSOR_REVISION = `0803' HISTFILESIZE = `500' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' COMPUTERNAME = `FIRMTST' CRFILES = `/home/administrator/cr' WINDIR = `C:\WINNT' USERPROFILE = `C:\Documents and Settings\don' WIND_HOST_TYPE = `x86-win32' PS1 = `$ ' CDRFILES = `/home/administrator/cdr' PROGRAMFILES = `C:\programs' MACHTYPE = `i686-pc-cygwin' PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 3, GenuineIntel' OS = `Windows_NT' OLDPWD = `/usr/bin' LINES = `25' PROCESSOR_ARCHITECTURE = `x86' TEMP = `/cygdrive/c/DOCUME~1/don/LOCALS~1/Temp' EDITOR = `c:/Programs/cygwin/bin/vi.exe' PROCESSOR_LEVEL = `6' SYSTEMROOT = `C:\WINNT' TMP = `C:/Programs/cygwin/tmp' HOMEDRIVE = `c:' CRVIEWROOT = `//m/' ALLUSERSPROFILE = `C:\Documents and Settings\All Users' SHLVL = `1' COLUMNS = `80' APPDATA = `C:\Documents and Settings\don\Application Data' COMMONPROGRAMFILES = `C:\Program Files\Common Files' HOMEPATH = `\users\don' USERDOMAIN = `NTPIXSCI' USERNAME = `don' SHELL = `/bin/sh.exe' HOSTTYPE = `i686' CPU = `R4000' IGNOREEOF = `1' OSTYPE = `cygwin' TERM = `cygwin' cdr = `() { if [ $# -eq 0 ]; then for i in $CDRFILES/*; do printf `basename $i`\\t\\c; cat $i; done; else if [ "$1" = "+" ]; then if [ -z "$2" ]; then echo "usage: cdr + name"; else echo "$PWD" >$CDRFILES/$2; fi; else if [ "$1" = "-" ]; then if [ -z "$2" ]; then echo "usage: cdr - name"; else if [ -f $CDRFILES/$2 ]; then rm $CDRFILES/$2; else echo "no alias for $2"; fi; fi; else if [ -n "$1" ]; then if [ -f $CDRFILES/$1 ]; then f=$(cat $CDRFILES/$1); echo $f; cd $f; else echo "no alias for $1"; fi; fi; fi; fi; fi }' cr = `() { if [ $# -eq 0 ]; then for i in $CRFILES/*; do printf `basename $i`\\t; cat $i; done; else if [ "$1" = "+" ]; then if [ -z "$2" ]; then echo "usage: cdr + name"; else relpath=$( echo $PWD | awk -F/ -v viewroot="$CRVIEWROOT" ' { t=length(viewroot)+1; viewstr=substr($0, t, length($0)-t+1); viewname=substr(viewstr, 0, index(viewstr, "/")); relStart=t+length(viewname); relLength=length($0) - relStart + 1; if( length(viewname)==0 ) printf( "noview" ) else printf( "%s", substr($0, relStart, relLength) ); } '); if [ $relpath = "noview" ]; then echo "Not currently in a view"; else echo $2: $relpath; echo $relpath >$CRFILES/$2; fi; fi; else if [ "$1" = "-" ]; then if [ -z "$2" ]; then echo "usage: cdr - name"; else if [ -f $CRFILES/$2 ]; then rm $CRFILES/$2; else echo "no alias for $2"; fi; fi; else if [ -n "$1" ]; then if [ -f $CRFILES/$1 ]; then f=$(cat $CRFILES/$1); abspath=$( echo $PWD/ | awk -F/-v relpath="$f" -v viewroot="$CRVIEWROOT" ' { t=length(viewroot)+1; viewstr=substr($0, t, length($0)-t+1); viewname=substr(viewstr, 0, index(viewstr, "/")); if( length(viewname)==0 ) printf( "noview" ) else
Re: Error: couldn't make stderr distinct from stdout
I Think this e-mail is not for me. Please don´t send me such e-mails. Thanks. Jürgen Fries, BDV GmbH - Original Message - From: Christopher Faylor <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 07, 2000 9:40 PM Subject: Re: Error: couldn't make stderr distinct from stdout > On Tue, Nov 07, 2000 at 12:23:10PM -0800, Georges, Chris wrote: > >> From: Larry Hall (RFK Partners Inc) [mailto:[EMAIL PROTECTED]] > >> Sent: Tuesday, November 07, 2000 10:26 AM > >> To: Georges, Chris; '[EMAIL PROTECTED]' > >> Subject: Re: Error: couldn't make stderr distinct from stdout > >> > >> > >> At 01:30 AM 11/7/2000, Georges, Chris wrote: > >> > >>>I just upgraded my cygwin installation from 1.0 to the latest cygwin > >>>DLLs (cygwin-1.1.5-4) and now almost every utililty (ls,cat,etc) prints > >>>out "couldn't make stderr distinct from stdout" when it starts. tcsh > >>>prints the error and exits. I backed out to cygwin-1.1.4 and got the > >>>same problem. I am running all of these apps remotely in a telnet > >>>window connected a windows 2000 telnet server (the default one that > >>>comes with win2k) on a remote machine, this worked fine until I > >>>upgraded cygwin. The apps appear to run OK when run in a normal window > >>>on the local machine. > >> > >>A cygcheck -s -r -v may be helpful. My guess is you have a mixture of > >>1.0 and 1.1.x stuff that's causing you troubles, but that's purely a > >>guess. The results of cygcheck should help you determine this. > > > >I think the problem is in cygwin1.dll, which is printing out that > >message in stdio_init() in source file "winsup\cygwin\dtable.cc". It's > >calling DuplicateHandle() which apparently fails, and somehow the error > >causes everything to exit. I couldnt find a corresponding function in > >the source for cygwin 1.0. I backed out to the cygwin 1.0 version of > >cygwin1.dll and the message went away. > > The *fact* that an error is being printed is not indicative of an error > in cygwin1.dll. The same code is in 1.0 and 1.1.x. Larry's suggestion > of running 'cygcheck -s -r -v' was the best way to debug your problem. > > cgf > > -- > Want to unsubscribe from this list? > Send a message to [EMAIL PROTECTED] > > > > -- Want to unsubscribe from this list? Send a message to [EMAIL PROTECTED]
Re: Error: couldn't make stderr distinct from stdout
On Tue, Nov 07, 2000 at 12:23:10PM -0800, Georges, Chris wrote: >> From: Larry Hall (RFK Partners Inc) [mailto:[EMAIL PROTECTED]] >> Sent: Tuesday, November 07, 2000 10:26 AM >> To: Georges, Chris; '[EMAIL PROTECTED]' >> Subject: Re: Error: couldn't make stderr distinct from stdout >> >> >> At 01:30 AM 11/7/2000, Georges, Chris wrote: >> >>>I just upgraded my cygwin installation from 1.0 to the latest cygwin >>>DLLs (cygwin-1.1.5-4) and now almost every utililty (ls,cat,etc) prints >>>out "couldn't make stderr distinct from stdout" when it starts. tcsh >>>prints the error and exits. I backed out to cygwin-1.1.4 and got the >>>same problem. I am running all of these apps remotely in a telnet >>>window connected a windows 2000 telnet server (the default one that >>>comes with win2k) on a remote machine, this worked fine until I >>>upgraded cygwin. The apps appear to run OK when run in a normal window >>>on the local machine. >> >>A cygcheck -s -r -v may be helpful. My guess is you have a mixture of >>1.0 and 1.1.x stuff that's causing you troubles, but that's purely a >>guess. The results of cygcheck should help you determine this. > >I think the problem is in cygwin1.dll, which is printing out that >message in stdio_init() in source file "winsup\cygwin\dtable.cc". It's >calling DuplicateHandle() which apparently fails, and somehow the error >causes everything to exit. I couldnt find a corresponding function in >the source for cygwin 1.0. I backed out to the cygwin 1.0 version of >cygwin1.dll and the message went away. The *fact* that an error is being printed is not indicative of an error in cygwin1.dll. The same code is in 1.0 and 1.1.x. Larry's suggestion of running 'cygcheck -s -r -v' was the best way to debug your problem. cgf -- Want to unsubscribe from this list? Send a message to [EMAIL PROTECTED]
RE: Error: couldn't make stderr distinct from stdout
> -Original Message- > From: Larry Hall (RFK Partners Inc) [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 07, 2000 10:26 AM > To: Georges, Chris; '[EMAIL PROTECTED]' > Subject: Re: Error: couldn't make stderr distinct from stdout > > > At 01:30 AM 11/7/2000, Georges, Chris wrote: > > >I just upgraded my cygwin installation from 1.0 to the > latest cygwin DLLs > >(cygwin-1.1.5-4) and now almost every utililty (ls,cat,etc) > prints out > >"couldn't make stderr distinct from stdout" when it starts. > tcsh prints the > >error and exits. I backed out to cygwin-1.1.4 and got the > same problem. I > >am running all of these apps remotely in a telnet window > connected a windows > >2000 telnet server (the default one that comes with win2k) > on a remote > >machine, this worked fine until I upgraded cygwin. The apps > appear to run > >OK when run in a normal window on the local machine. > > > >Thanks for any help, > >chris > > > > A cygcheck -s -r -v may be helpful. My guess is you have a > mixture of 1.0 > and 1.1.x stuff that's causing you troubles, but that's > purely a guess. > The results of cygcheck should help you determine this. I think the problem is in cygwin1.dll, which is printing out that message in stdio_init() in source file "winsup\cygwin\dtable.cc". It's calling DuplicateHandle() which apparently fails, and somehow the error causes everything to exit. I couldnt find a corresponding function in the source for cygwin 1.0. I backed out to the cygwin 1.0 version of cygwin1.dll and the message went away. -- Want to unsubscribe from this list? Send a message to [EMAIL PROTECTED]
Re: Error: couldn't make stderr distinct from stdout
On Tue, Nov 07, 2000 at 01:26:02PM -0500, Larry Hall (RFK Partners Inc) wrote: >At 01:30 AM 11/7/2000, Georges, Chris wrote: > >>I just upgraded my cygwin installation from 1.0 to the latest cygwin DLLs >>(cygwin-1.1.5-4) and now almost every utililty (ls,cat,etc) prints out >>"couldn't make stderr distinct from stdout" when it starts. tcsh prints the >>error and exits. I backed out to cygwin-1.1.4 and got the same problem. I >>am running all of these apps remotely in a telnet window connected a windows >>2000 telnet server (the default one that comes with win2k) on a remote >>machine, this worked fine until I upgraded cygwin. The apps appear to run >>OK when run in a normal window on the local machine. > >A cygcheck -s -r -v may be helpful. My guess is you have a mixture of 1.0 >and 1.1.x stuff that's causing you troubles, but that's purely a guess. >The results of cygcheck should help you determine this. I don't know why 1.0 stuff and 1.1.x stuff would cause problems unless there are two cygwin DLLs on the system. If you can't run 1.0 binaries under 1.1.x then that's a very serious bug. cgf -- Want to unsubscribe from this list? Send a message to [EMAIL PROTECTED]
Re: Error: couldn't make stderr distinct from stdout
At 01:30 AM 11/7/2000, Georges, Chris wrote: >I just upgraded my cygwin installation from 1.0 to the latest cygwin DLLs >(cygwin-1.1.5-4) and now almost every utililty (ls,cat,etc) prints out >"couldn't make stderr distinct from stdout" when it starts. tcsh prints the >error and exits. I backed out to cygwin-1.1.4 and got the same problem. I >am running all of these apps remotely in a telnet window connected a windows >2000 telnet server (the default one that comes with win2k) on a remote >machine, this worked fine until I upgraded cygwin. The apps appear to run >OK when run in a normal window on the local machine. > >Thanks for any help, >chris A cygcheck -s -r -v may be helpful. My guess is you have a mixture of 1.0 and 1.1.x stuff that's causing you troubles, but that's purely a guess. The results of cygcheck should help you determine this. -- Want to unsubscribe from this list? Send a message to [EMAIL PROTECTED]