Re: inetutils-1.3.2-34: setsockopt warning from ftp

2006-01-13 Thread Corinna Vinschen
On Jan 12 13:38, David Rothenberger wrote:
 I'm seeing a problem with ftp in inetutils-1.3.2-34 that was not
 present in inetutils-1.3.2-33.
 
 With -34:
 
 % ftp ibiblio.org
 ftp: setsockopt TOS (ignored): Protocol not available
 Connected to ibiblio.org.
 220 ProFTPD Server (Bring it on...)
 
 With -33, I don't get the error about setsockopt. 

I'm thoroughly embarrassed.

This is a (not so) funny combination of Cygwin 1.5.19 using the WinSock2
values for the IPPROTO_IP flags and another local build problem.  I
managed to use the 1.5.19 socket header while linking the inetutils
package against Cygwin 1.5.18 which added up to the described effect.

Oh well, I have uploaded a new inetutils package built with the 1.5.18
headers now.  However, you should still see an error in the above case,
just a different one:

  % ftp ibiblio.org
  ftp: setsockopt TOS (ignored): Invalid parameter

This is a result of newer Windows versions not simply ignoring the
IP_TOS setting, but instead returning an error WSAEINVAL.  I applied a
fix to Cygwin which now ignores the retun code of setting IP_TOS on
Windows 2000 and above.  It's a no-op by default anyway.  So you
won't see this error message anymore when using the next snapshot or
when building Cygwin fresh from CVS.


Thanks for the report,
Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: inetutils-1.3.2-34: setsockopt warning from ftp

2006-01-13 Thread David Rothenberger

On 1/13/2006 2:31 AM, Corinna Vinschen wrote:

Oh well, I have uploaded a new inetutils package built with the 1.5.18
headers now.  However, you should still see an error in the above case,
just a different one:

  % ftp ibiblio.org
  ftp: setsockopt TOS (ignored): Invalid parameter

This is a result of newer Windows versions not simply ignoring the
IP_TOS setting, but instead returning an error WSAEINVAL.  I applied a
fix to Cygwin which now ignores the retun code of setting IP_TOS on
Windows 2000 and above.  It's a no-op by default anyway.  So you
won't see this error message anymore when using the next snapshot or
when building Cygwin fresh from CVS.


Thanks Corinna! The new inetutils and the CVS HEAD prevent both error 
messages.


--
David Rothenbergerspammer? - [EMAIL PROTECTED]
GPG/PGP: 0x92D68FD8, DB7C 5146 1AB0 483A 9D27 DFBA FBB9 E328 92D6 8FD8

Economics is extremely useful as a form of employment for economists.
-- John Kenneth Galbraith


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



inetutils-1.3.2-34: setsockopt warning from ftp

2006-01-12 Thread David Rothenberger
I'm seeing a problem with ftp in inetutils-1.3.2-34 that was not
present in inetutils-1.3.2-33.

With -34:

% ftp ibiblio.org
ftp: setsockopt TOS (ignored): Protocol not available
Connected to ibiblio.org.
220 ProFTPD Server (Bring it on...)

With -33, I don't get the error about setsockopt. 

It seems that error is benign, because I can continue to
login. Unfortunately (for me), that error causes XEmacs to bomb when
it tries to use ftp to update packages.

Comparing strace from -33 and -34, I see the following in the -34
strace that's not in the -33 strace:

  200 10599481 [main] ftp 6256 cygwin_getsockname: 0 = getsockname (3, 
0x40F470, 0x22EE08)
  104 10599585 [main] ftp 6256 cygwin_setsockopt: setsockopt optval=10
   81 10599666 [main] ftp 6256 __set_errno: void __set_winsock_errno(const 
char*, int):278 val 109
   72 10599738 [main] ftp 6256 __set_winsock_errno: cygwin_setsockopt:707 - 
winsock error 10042 - errno 109
   74 10599812 [main] ftp 6256 cygwin_setsockopt: -1 = setsockopt (3, 0, A, 
0x22EE04, 4)
  320 10600132 [main] ftp 6256 fhandler_base::write: binary write
  453 10600585 [main] ftp 6256 fhandler_base::write: binary write
  387 10600972 [main] ftp 6256 fhandler_base::write: binary write
  382 10601354 [main] ftp 6256 fhandler_base::write: binary write

Actually, cygwin_getsockname is in the -33 strace, but the
subsequent setsockopt call and binary writes are not.

-- 
David Rothenbergerspammer? - [EMAIL PROTECTED]
GPG/PGP: 0x92D68FD8, DB7C 5146 1AB0 483A 9D27 DFBA FBB9 E328 92D6 8FD8

The only winner in the War of 1812 was Tchaikovsky.
-- David Gerrold

Cygwin Configuration Diagnostics
Current System Time: Thu Jan 12 12:43:23 2006

Windows XP Professional Ver 5.1 Build 2600 Service Pack 2

Path:   C:\cygwin\home\drothe\bin
C:\cygwin\usr\local\bin
c:\cygwin\bin
c:\jdk1.2.2\bin
c:\oracle\ora817\bin
c:\cygwin\bin
C:\cygwin\usr\X11R6\bin
c:\program files\gpg-1.4.2
C:\cygwin\sbin
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
c:\Program Files\Executive Software\Diskeeper\
c:\MSSQL7\BINN
c:\Program Files\ATI Technologies\ATI Control Panel
c:\Program Files\QuickTime\QTSystem\
c:\Program Files\SSH Communications Security\SSH Secure Shell
C:\cygwin\lib\lapack

Output from c:\cygwin\bin\id.exe (nontsec)
UID: 1003(drothe)   GID: 513(None)
0(root) 513(None)   544(Administrators) 545(Users)

Output from c:\cygwin\bin\id.exe (ntsec)
UID: 1003(drothe)   GID: 513(None)
0(root) 513(None)   544(Administrators) 545(Users)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = `drothe'
PWD = `/home/drothe'
CYGWIN = `server'
HOME = `/home/drothe'
MAKE_MODE = `unix'

HOMEPATH = `\Documents and Settings\drothe'
MANPATH = `/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man:/usr/X11R6/man'
APPDATA = `C:\Documents and Settings\drothe\Application Data'
SSH_AGENT_PID = `2652'
HOSTNAME = `tela'
ORA_HOME_WIN = `c:\oracle\ora817'
TERM = `xterm'
PROCESSOR_IDENTIFIER = `x86 Family 15 Model 2 Stepping 9, GenuineIntel'
WINDIR = `C:\WINDOWS'
PERLIO = `perlio'
TEXDOCVIEW_txt = `cygstart %s'
CVSROOT = `:ext:[EMAIL PROTECTED]:/home/drothe/cvsroot'
TEXDOCVIEW_dvi = `cygstart %s'
WINDOWID = `4734320'
OLDPWD = `/home/drothe/downloads/development/cygwin/net'
USERDOMAIN = `TELA'
OS = `Windows_NT'
ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
!:: = `::\'
LS_COLORS = 
`no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.flac=01;35:*.mp3=01;35:*.mpc=01;35:*.ogg=01;35:*.wav=01;35:'
TEMP = `/c/DOCUME~1/drothe/LOCALS~1/Temp'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
SSH_AUTH_SOCK = `/tmp/ssh-y4E0wkL3y8/agent.3864'
QTJAVA = `C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip'
USERNAME = `drothe'
ORA9_HOME_WIN = `c:\oracle\ora920'
TEXDOCVIEW_pdf = `cygstart %s'
PROCESSOR_LEVEL = `15'
AUTOSSH_LOGFILE = `/var/log/autossh.log'
ORA81_HOME = `c:/oracle/ora817'
FP_NO_HOST_CHECK = `NO'
SYSTEMDRIVE = `C:'
ORA81_HOME_WIN = `c:\oracle\ora817'
JAVA_HOME = `c:/jdk1.2.2'
TEXDOCVIEW_html = `cygstart %s'
USERPROFILE = `C:\Documents and Settings\drothe'
ORA9_HOME = `c:/oracle/ora920'
ORA_HOME = `c:/oracle/ora817'
PS1 = `\! \W '
LOGONSERVER = `\\TELA'
HISTIGNORE = `[   ]*::bg:fg:exit'
PROCESSOR_ARCHITECTURE = `x86'
HISTCONTROL = `ignoredups'