public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Error:  couldn't make stderr distinct from stdout
@ 2000-12-18 16:55 Don Bowman
  2000-12-19  4:03 ` Corinna Vinschen
  0 siblings, 1 reply; 14+ messages in thread
From: Don Bowman @ 2000-12-18 16:55 UTC (permalink / raw)
  To: cygwin

>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
			    printf( "%s%s%s", viewroot, viewname, relpath );
		    } ');
 if [ $abspath = "noview" ]; then
 echo "Not currently in a view";
 else
 echo $abspath;
 cd $abspath;
 fi;
 else
 echo "no alias for $1";
 fi;
 fi;
 fi;
 fi;
 fi
}'
wb = `() {  if [ $# -eq 0 ]; then
 echo "Needs view name";
 return;
 fi;
 if [ ! -d //m/$1 ]; then
 echo "$1 is not a view name";
 return;
 fi;
 export WIND_PATH=//m/$1/Tornado/host/x86-win32/bin;
 export WIND_BASE=//m/$1/Tornado;
 export PATH="$PATH":$WIND_PATH
}'
_ = `/bin/cygcheck'
TZ = `EST5EDT4,M4.1.0/2,M10.5.0/2'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x00000022
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00
  (default) = `C:'
  unix = `/'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrd
er\Start Menu\Programs\Cygnus Solutions
  (default) = (unsupported type)
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:/Programs/cygwin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:/Programs/cygwin/bin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:/Programs/cygwin/lib'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\00
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\01
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\02
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\03
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\04
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\05
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\06
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\07
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\08
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\09
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\0A
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\0B
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\0C
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\0D
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\0E
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\0F
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\10
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\11
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\12
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\13
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\14
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\15
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\16
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\17
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\18
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\19
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\1A
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\1B
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\1C
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\1D
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro\i586-cygwin32

a:  fd           N/A    N/A                    
c:  hd  NTFS    8675Mb  24% CP CS UN PA FC     
d:  cd           N/A    N/A                    
m:  net MVFS    1000Mb  50% CP CS              CCase

C:\Programs\cygwin\bin  /usr/bin  system  binmode
C:\Programs\cygwin\lib  /usr/lib  system  binmode
C:\Programs\cygwin  /        system  binmode

Found: C:\Programs\cygwin\bin\bash.exe
Found: C:\Programs\cygwin\bin\cat.exe
Found: C:\Programs\cygwin\bin\cpp.exe
Found: C:\Programs\cygwin\bin\find.exe
Found: C:\Programs\cygwin\bin\gcc.exe
Found: C:\Programs\cygwin\bin\gdb.exe
Found: C:\Programs\cygwin\bin\ld.exe
Found: C:\Programs\cygwin\bin\ls.exe
Found: C:\Programs\cygwin\bin\make.exe
Found: C:\Programs\cygwin\bin\sh.exe

   56k 2000/12/03 C:\Programs\cygwin\bin\cygbz21.0.dll - os=4.0 img=1.0
sys=4.0
                  "cygbz21.0.dll" v0.0 ts=2000/11/20 18:53
   83k 2000/11/25 C:\Programs\cygwin\bin\cygform5.dll - os=4.0 img=1.0
sys=4.0
                  "cygform5.dll" v0.0 ts=2000/11/25 0:42
   18k 2000/10/23 C:\Programs\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0
sys=4.0
                  "cyggdbm.dll" v0.0 ts=2000/10/22 22:26
   17k 2000/11/30 C:\Programs\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0
sys=4.0
                  "cyghistory4.dll" v0.0 ts=2000/11/29 21:28
   14k 2000/10/23 C:\Programs\cygwin\bin\cygintl.dll - os=4.0 img=1.0
sys=4.0
                  "cygintl.dll" v0.0 ts=2000/10/23 15:02
   81k 2000/12/05 C:\Programs\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0
sys=4.0
                  "cygitcl30.dll" v0.0 ts=2000/11/25 20:43
   35k 2000/12/05 C:\Programs\cygwin\bin\cygitk30.dll - os=4.0 img=1.0
sys=4.0
                  "cygitk30.dll" v0.0 ts=2000/11/25 20:43
   45k 2000/10/22 C:\Programs\cygwin\bin\cygjbig1.dll - os=4.0 img=1.0
sys=4.0
                  "cygjbig1.dll" v0.0 ts=2000/10/22 19:06
  119k 2000/10/23 C:\Programs\cygwin\bin\cygjpeg6b.dll - os=4.0 img=1.0
sys=4.0
                  "cygjpeg6b.dll" v0.0 ts=2000/10/22 20:58
   53k 2000/11/25 C:\Programs\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0
sys=4.0
                  "cygmenu5.dll" v0.0 ts=2000/11/25 0:42
  300k 2000/11/25 C:\Programs\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0
sys=4.0
                  "cygncurses5.dll" v0.0 ts=2000/11/25 0:40
   35k 2000/11/25 C:\Programs\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0
sys=4.0
                  "cygpanel5.dll" v0.0 ts=2000/11/25 0:41
  162k 2000/10/23 C:\Programs\cygwin\bin\cygpng2.dll - os=4.0 img=1.0
sys=4.0
                  "cygpng2.dll" v0.0 ts=2000/10/22 20:40
  108k 2000/11/30 C:\Programs\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0
sys=4.0
                  "cygreadline4.dll" v0.0 ts=2000/11/29 21:28
  390k 2000/12/05 C:\Programs\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0
sys=4.0
                  "cygtcl80.dll" v0.0 ts=2000/11/25 20:39
    5k 2000/12/05 C:\Programs\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0
sys=4.0
   10k 2000/12/05 C:\Programs\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0
sys=4.0
                  "cygtclreg80.dll" v0.0 ts=2000/11/25 20:39
  243k 2000/10/23 C:\Programs\cygwin\bin\cygtiff3.dll - os=4.0 img=1.0
sys=4.0
                  "cygtiff3.dll" v0.0 ts=2000/10/22 21:14
  623k 2000/12/05 C:\Programs\cygwin\bin\cygtk80.dll - os=4.0 img=1.0
sys=4.0
                  "cygtk80.dll" v0.0 ts=2000/11/25 20:43
   41k 2000/11/20 C:\Programs\cygwin\bin\cygXpm-noX4.dll - os=4.0 img=1.0
sys=4.0
                  "cygXpm-noX4.dll" v0.0 ts=2000/11/19 21:41
   45k 2000/11/20 C:\Programs\cygwin\bin\cygXpm-X4.dll - os=4.0 img=1.0
sys=4.0
                  "cygXpm-X4.dll" v0.0 ts=2000/11/19 21:45
   49k 2000/10/23 C:\Programs\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2000/10/22 20:22
  609k 2000/11/22 C:\Programs\cygwin\bin\cygwin1.dll - os=4.0 img=1.0
sys=4.0
                  "cygwin1.dll" v0.0 ts=2000/11/21 21:00
    Cygwin DLL version info:
        dll major: 1001
        dll minor: 6
        dll epoch: 19
        dll bad signal mask: 19005
        dll old termios: 5
        dll malloc env: 28
        api major: 0
        api minor: 30
        shared data: 3
        dll identifier: cygwin1
        mount registry: 2
        cygnus registry name: Cygnus Solutions
        cygwin registry name: Cygwin
        program options name: Program Options
        cygwin mount registry name: mounts v2
        cygdrive flags: cygdrive flags
        cygdrive prefix: cygdrive prefix
        cygdrive default prefix: 
        build date: Tue Nov 21 21:00:16 EST 2000
        shared id: cygwin1S3

Use -h to see help about each section



begin 600 Don Bowman (E-mail).vcf

`
end

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Error: couldn't make stderr distinct from stdout
  2000-12-18 16:55 Error: couldn't make stderr distinct from stdout Don Bowman
@ 2000-12-19  4:03 ` Corinna Vinschen
  0 siblings, 0 replies; 14+ messages in thread
From: Corinna Vinschen @ 2000-12-19  4:03 UTC (permalink / raw)
  To: cygwin

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 Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Error: couldn't make stderr distinct from stdout
  2002-01-22 23:23 Adee Ran
@ 2002-01-23  1:51 ` Corinna Vinschen
  0 siblings, 0 replies; 14+ messages in thread
From: Corinna Vinschen @ 2002-01-23  1:51 UTC (permalink / raw)
  To: cygwin

On Wed, Jan 23, 2002 at 01:27:01AM -0500, Adee Ran wrote:
> I use the telnet client included in the cygwin package. I did not quite understand how another telnet client should solve the problem. I looked for an inetutils package in the cygwin setup but find none. Can you please explain specifically what I should install and from where?

Hups?  The inetutils package is part of Cygwin since... since...
I guess Nixon was US president.

You should use Cygwin telnetd.  The MS telnet server is somewhat
non-standard in behaviour.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* re: Error: couldn't make stderr distinct from stdout
@ 2002-01-22 23:23 Adee Ran
  2002-01-23  1:51 ` Corinna Vinschen
  0 siblings, 1 reply; 14+ messages in thread
From: Adee Ran @ 2002-01-22 23:23 UTC (permalink / raw)
  To: lhall; +Cc: cygwin


>At 03:20 PM 1/22/2002, Adee Ran wrote:
>>I get the above error when running bash on a telnet session on Win2K. 
>That's a pity because the cmd shell is even more annoying than usual in 
>this case.
>>
>>The only information I found about that is quite old:
>>
>>in http://sources.redhat.com/ml/cygwin/2000-12/msg00866.html (Date: Tue, 
>19 Dec 2000 13:02:57 +0100 ) Corinna Vinschen  says:
>>
>> >There's has been made a change in Cygwin (...)
>(...)
>> >The problem is that the W2K telnet server doesn't allow duplicating
>> >the handle for some strange reason which only Microsoft knows of.
>>
>>is there a solution by now?
>>
>>my version data (from cygcheck):
>>
>>     Cygwin DLL version info:
>>         dll major: 1003
>>         dll minor: 2
>>         dll epoch: 19
>>         dll bad signal mask: 19005
>>         dll old termios: 5
>>         dll malloc env: 28
>>...
>>         build date: Sun May 20 23:28:17 EDT 2001
>>         shared id: cygwin1S3



>First, I'd recommend updating your DLL.  

Wwhile I'm writing this I am installing again from cygwin setup. That's taking quit a while, I guess it's a full installation and not just an update... is there a quicker way to install updates only?

>However, to answer your
>question, I think Corinna provided the best solution you're likely to
>get on this subject, without a change from MS.  Did you try using
>telnet from the inetutils package?


I use the telnet client included in the cygwin package. I did not quite understand how another telnet client should solve the problem. I looked for an inetutils package in the cygwin setup but find none. Can you please explain specifically what I should install and from where?





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Error: couldn't make stderr distinct from stdout
@ 2002-01-22 16:09 Rene
  0 siblings, 0 replies; 14+ messages in thread
From: Rene @ 2002-01-22 16:09 UTC (permalink / raw)
  To: cygwin

On Tue, Jan 22, 2002 at 03:20:54PM -0500, Adee Ran wrote:
> I get the above error when running bash on a telnet session on Win2K.
> That's a pity because the cmd shell is even more annoying than usual in
> this case.
[...]
> is there a solution by now?

Let the W2K telnet server start the cygwin.bat file and
in this file insert the following line before the
"bash --login -i" line:

	echo thank you bill >nul


Regards,
Rene

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* re: Error: couldn't make stderr distinct from stdout
  2002-01-22 13:19 Adee Ran
  2002-01-22 13:21 ` Christopher Faylor
@ 2002-01-22 13:31 ` Larry Hall (RFK Partners, Inc)
  1 sibling, 0 replies; 14+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2002-01-22 13:31 UTC (permalink / raw)
  To: adee, cygwin

At 03:20 PM 1/22/2002, Adee Ran wrote:
>I get the above error when running bash on a telnet session on Win2K. That's a pity because the cmd shell is even more annoying than usual in this case.
>
>The only information I found about that is quite old:
>
>in http://sources.redhat.com/ml/cygwin/2000-12/msg00866.html (Date: Tue, 19 Dec 2000 13:02:57 +0100 ) Corinna Vinschen  says:
>
> >There's has been made a change in Cygwin (...)
>(...)
> >The problem is that the W2K telnet server doesn't allow duplicating
> >the handle for some strange reason which only Microsoft knows of.
>
>is there a solution by now?
>
>my version data (from cygcheck):
>
>     Cygwin DLL version info:
>         dll major: 1003
>         dll minor: 2
>         dll epoch: 19
>         dll bad signal mask: 19005
>         dll old termios: 5
>         dll malloc env: 28
>         api major: 0
>         api minor: 39
>         shared data: 3
>         dll identifier: cygwin1
>         mount registry: 2
>         cygnus registry name: Cygnus Solutions
>         cygwin registry name: Cygwin
>         program options name: Program Options
>         cygwin mount registry name: mounts v2
>         cygdrive flags: cygdrive flags
>         cygdrive prefix: cygdrive prefix
>         cygdrive default prefix:
>         build date: Sun May 20 23:28:17 EDT 2001
>         shared id: cygwin1S3



First, I'd recommend updating your DLL.  However, to answer your 
question, I think Corinna provided the best solution you're likely to 
get on this subject, without a change from MS.  Did you try using 
telnet from the inetutils package?



Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Error: couldn't make stderr distinct from stdout
  2002-01-22 13:19 Adee Ran
@ 2002-01-22 13:21 ` Christopher Faylor
  2002-01-22 13:31 ` Larry Hall (RFK Partners, Inc)
  1 sibling, 0 replies; 14+ messages in thread
From: Christopher Faylor @ 2002-01-22 13:21 UTC (permalink / raw)
  To: cygwin

On Tue, Jan 22, 2002 at 03:20:54PM -0500, Adee Ran wrote:
>I get the above error when running bash on a telnet session on Win2K.
>That's a pity because the cmd shell is even more annoying than usual in
>this case.
>
>The only information I found about that is quite old:
>
>in http://sources.redhat.com/ml/cygwin/2000-12/msg00866.html (Date:
>Tue, 19 Dec 2000 13:02:57 +0100 ) Corinna Vinschen says:

I just did a mailing list search for "stderr distinct" and got a quite
definitive statement (from me) about this from October, 2001:

http://sources.redhat.com/ml/cygwin/2001-10/msg00279.html

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* re: Error: couldn't make stderr distinct from stdout
@ 2002-01-22 13:19 Adee Ran
  2002-01-22 13:21 ` Christopher Faylor
  2002-01-22 13:31 ` Larry Hall (RFK Partners, Inc)
  0 siblings, 2 replies; 14+ messages in thread
From: Adee Ran @ 2002-01-22 13:19 UTC (permalink / raw)
  To: cygwin

I get the above error when running bash on a telnet session on Win2K. That's a pity because the cmd shell is even more annoying than usual in this case.

The only information I found about that is quite old:

in http://sources.redhat.com/ml/cygwin/2000-12/msg00866.html (Date: Tue, 19 Dec 2000 13:02:57 +0100 ) Corinna Vinschen  says:

>There's has been made a change in Cygwin (...)
(...)
>The problem is that the W2K telnet server doesn't allow duplicating
>the handle for some strange reason which only Microsoft knows of.

is there a solution by now?

my version data (from cygcheck):

    Cygwin DLL version info:
        dll major: 1003
        dll minor: 2
        dll epoch: 19
        dll bad signal mask: 19005
        dll old termios: 5
        dll malloc env: 28
        api major: 0
        api minor: 39
        shared data: 3
        dll identifier: cygwin1
        mount registry: 2
        cygnus registry name: Cygnus Solutions
        cygwin registry name: Cygwin
        program options name: Program Options
        cygwin mount registry name: mounts v2
        cygdrive flags: cygdrive flags
        cygdrive prefix: cygdrive prefix
        cygdrive default prefix:
        build date: Sun May 20 23:28:17 EDT 2001
        shared id: cygwin1S3

Thanks

Adee


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Error:  couldn't make stderr distinct from stdout
  2000-11-07 12:40 ` Christopher Faylor
@ 2000-11-08  0:45   ` Fries
  0 siblings, 0 replies; 14+ messages in thread
From: Fries @ 2000-11-08  0:45 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2379 bytes --]

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 <cgf@redhat.com>
To: <cygwin@sources.redhat.com>
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:lhall@rfk.com ]
> >> Sent: Tuesday, November 07, 2000 10:26 AM
> >> To: Georges, Chris; 'cygwin@sourceware.cygnus.com'
> >> 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 cygwin-unsubscribe@sourceware.cygnus.com
>
>
>
>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Error:  couldn't make stderr distinct from stdout
  2000-11-07 12:29 Georges, Chris
@ 2000-11-07 12:40 ` Christopher Faylor
  2000-11-08  0:45   ` Fries
  0 siblings, 1 reply; 14+ messages in thread
From: Christopher Faylor @ 2000-11-07 12:40 UTC (permalink / raw)
  To: 'cygwin@sources.redhat.com'

On Tue, Nov 07, 2000 at 12:23:10PM -0800, Georges, Chris wrote:
>> From: Larry Hall (RFK Partners Inc) [ mailto:lhall@rfk.com ]
>> Sent: Tuesday, November 07, 2000 10:26 AM
>> To: Georges, Chris; 'cygwin@sourceware.cygnus.com'
>> 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 cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: Error:  couldn't make stderr distinct from stdout
@ 2000-11-07 12:29 Georges, Chris
  2000-11-07 12:40 ` Christopher Faylor
  0 siblings, 1 reply; 14+ messages in thread
From: Georges, Chris @ 2000-11-07 12:29 UTC (permalink / raw)
  To: 'Larry Hall (RFK Partners Inc)',
	'cygwin@sourceware.cygnus.com'

> -----Original Message-----
> From: Larry Hall (RFK Partners Inc) [ mailto:lhall@rfk.com ]
> Sent: Tuesday, November 07, 2000 10:26 AM
> To: Georges, Chris; 'cygwin@sourceware.cygnus.com'
> 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 cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Error:  couldn't make stderr distinct from stdout
  2000-11-07 10:27 ` Larry Hall (RFK Partners Inc)
@ 2000-11-07 11:19   ` Christopher Faylor
  0 siblings, 0 replies; 14+ messages in thread
From: Christopher Faylor @ 2000-11-07 11:19 UTC (permalink / raw)
  To: 'cygwin@sources.redhat.com'

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 cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Error:  couldn't make stderr distinct from stdout
  2000-11-06 22:36 Georges, Chris
@ 2000-11-07 10:27 ` Larry Hall (RFK Partners Inc)
  2000-11-07 11:19   ` Christopher Faylor
  0 siblings, 1 reply; 14+ messages in thread
From: Larry Hall (RFK Partners Inc) @ 2000-11-07 10:27 UTC (permalink / raw)
  To: Georges, Chris, 'cygwin@sourceware.cygnus.com'

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 cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Error:  couldn't make stderr distinct from stdout
@ 2000-11-06 22:36 Georges, Chris
  2000-11-07 10:27 ` Larry Hall (RFK Partners Inc)
  0 siblings, 1 reply; 14+ messages in thread
From: Georges, Chris @ 2000-11-06 22:36 UTC (permalink / raw)
  To: 'cygwin@sourceware.cygnus.com'

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


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2002-01-23  8:38 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-18 16:55 Error: couldn't make stderr distinct from stdout Don Bowman
2000-12-19  4:03 ` Corinna Vinschen
  -- strict thread matches above, loose matches on Subject: below --
2002-01-22 23:23 Adee Ran
2002-01-23  1:51 ` Corinna Vinschen
2002-01-22 16:09 Rene
2002-01-22 13:19 Adee Ran
2002-01-22 13:21 ` Christopher Faylor
2002-01-22 13:31 ` Larry Hall (RFK Partners, Inc)
2000-11-07 12:29 Georges, Chris
2000-11-07 12:40 ` Christopher Faylor
2000-11-08  0:45   ` Fries
2000-11-06 22:36 Georges, Chris
2000-11-07 10:27 ` Larry Hall (RFK Partners Inc)
2000-11-07 11:19   ` Christopher Faylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).