installing cygwin (for C++)

2005-03-04 Thread arjun
Hi,
  I want to know what all pacakegs I need to install to be able to compile
and run C++ programs .Can you also please suggest mirrors which contain
these.Iam installing using setup.exe

thnaks in advance,
Arjun
Sophomore,EE
IIT Bombay


--
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/



1.5.13-1 : can't cd anywhere with non-admin account

2005-03-04 Thread François-David Collin
Hello,

I upgraded from 1.5.12 to 1.5.13, and it seems that with a non-admin
account, I can't "cd" anymore : any cygwin programs trying to access
something from the "/" got a Permission denied error.

Exemples :

C:\usr\Home\fradav>bash
bash.exe: warning: could not find /tmp, please create!
bash: /cygdrive/c/usr/Home/fradav/.bashrc: Permission denied
bash-2.05b$ cd /
bash: cd: /: Permission denied
bash-2.05b$ cd /etc
bash: cd: /etc: Permission denied
bash-2.05b$

or :

C:\usr\Home\fradav>cat /etc/profile
cat: /etc/profile: Permission denied

C:\usr\Home\fradav>cat /
cat: /: Permission denied

Some interesting results with cygpath :

C:\usr\Home\fradav>cygpath -S
/cygdrive/c/WINDOWS/

C:\usr\Home\fradav>cygpath -H
/cygdrive/c/Documents and Settings

C:\usr\Home\fradav>cygpath -D
cygpath: error converting "" - No such file or directory

C:\usr\Home\fradav>cygpath -P
cygpath: error converting "" - No such file or directory



With an admin acocunt, all is just fine. It is also ok if I reinstall 1.5.12

Any hints? Have I missed someting? Bad acls somewhere but why it works
with 1.5.12 then?

here is my cygcheck -s -r


Cygwin Configuration Diagnostics
Current System Time: Fri Mar 04 10:14:51 2005

Windows XP Professional Ver 5.1 Build 2600 Service Pack 2

Path:   C:\Program Files\Legato\nsr\bin
C:\usr\oracle\ora90\bin
C:\Program Files\Oracle\jre\1.1.8\bin
C:\usr\texmf\miktex\bin
C:\WINDOWS\system32
C:\WINDOWS
C:\WINDOWS\System32\Wbem
C:\Program Files\Microsoft SQL Server\80\Tools\Binn\
C:\usr\nsr\bin
C:\usr\emacs-21.3\bin
C:\usr\cygwin\bin
C:\usr\cygwin\usr\local\bin
C:\usr\cygwin\usr\X11R6\bin
C:\usr\java\jdk\bin
C:\usr\texmf\miktex\bin
C:\usr\cygwin\usr\local\mysql\bin

Output from C:\usr\cygwin\bin\id.exe (nontsec)
UID: 400(fradav)   GID: 401(mkpasswd)
401(mkpasswd)

Output from C:\usr\cygwin\bin\id.exe (ntsec)
UID: 400(fradav)   GID: 401(mkpasswd)
401(mkpasswd)

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

CYGWIN = `ntsec ntea tty codepage:ansi'
HOME = `C:\usr\Home\fradav'
MAKE_MODE = `Unix'
Path = `C:\Program
Files\Legato\nsr\bin;C:\usr\oracle\ora90\bin;C:\Program
Files\Oracle\jre\1.1.8\bin;C:\usr\texmf\miktex\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\Microsoft SQL
Server\80\Tools\Binn\;C:\usr\nsr\bin;C:\usr\emacs-21.3\bin;C:\usr\cygwin\bin;C:\usr\cygwin\usr\local\bin;C:\usr\cygwin\usr\X11R6\bin;C:\usr\java\jdk\bin;C:\usr\texmf\miktex\bin;C:\usr\cygwin\usr\local\mysql\bin'

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 = 0x0022
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts
v2\/usr/X11R6/lib/X11/fonts
  (default) = 0x0002
  native = `C:\usr\cygwin\usr\X11R6\lib\X11\fonts'
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x0022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:\usr\cygwin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\usr\cygwin/bin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:\usr\cygwin/lib'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd N/AN/A
c:  hd  NTFS117279Mb  31% CP CS UN PA FC 
d:  cd N/AN/A
e:  cd N/AN/A

C:\usr\cygwin\usr\X11R6\lib\X11\fonts  /usr/X11R6/lib/X11/fonts  userbinmode
.  /cygdrive user 
  binmode,cygdrive
C:\usr\cygwin  / system  binmode
C:\usr\cygwin/bin  /usr/bin  system  binmode
C:\usr\cygwin/lib  /usr/lib  system  binmode
.  /cygdrive
system  binmode,cygdrive

Found: C:\usr\cygwin\bin\awk.exe
Found: C:\usr\cygwin\bin\bash.exe
Found: C:\usr\cygwin\bin\cat.exe
Found: C:\usr\cygwin\bin\cp.exe
Found: C:\usr\cygwin\bin\cpp.exe
Found: C:\usr\cygwin\bin\find.exe
Found: C:\usr\cygwin\bin\gcc.exe
Found: C:\usr\cygwin\bin\gdb.exe
Found: C:\usr\cygwin\bin\grep.exe
Found: C:\usr\cygwin\bin\ld.exe
Found: C:\usr\cygwin\bin\ls.exe
Found: C:\usr\cygwin\bin\make.exe
Found: C:\usr\cygwin\bin\mv.exe
Found: C:\usr\cygwin\bin\rm.exe
Found: C:\usr\cygwin\bin\sed.exe
Found: C:\usr\cygwin\bin\sh.exe
Found: C:\usr\cygwin\bin\tar.exe

   55k 2004/09/14 C:\usr\cygwin\bin\cygbz2-1.dll
   18k 2004/07/0

Re: "cannot set time" on FAT32 - after installing cygwin-1.5.13-1

2005-03-04 Thread Jacek Piskozub
Hi there,
This is the actual error message I get in the simplest case of checking 
out one file only.

   D:\mozilla_source>cvs checkout mozilla/client.mk
   U mozilla/client.mk
   CVS checkout: cannot set time on client.mk: Permission denied
Again, this is Windows ME on FAT32 with native cygwin CVS.
Again, this problems stops if I downgrade to cygwin-1.5.12-1
Jacek
--
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: "cannot set time" on FAT32 - after installing cygwin-1.5.13-1

2005-03-04 Thread Corinna Vinschen
On Mar  4 10:40, Jacek Piskozub wrote:
> Hi there,
> 
> This is the actual error message I get in the simplest case of checking 
> out one file only.
> 
>D:\mozilla_source>cvs checkout mozilla/client.mk
>U mozilla/client.mk
>CVS checkout: cannot set time on client.mk: Permission denied
> 
> Again, this is Windows ME on FAT32 with native cygwin CVS.

Can you run strace on this cvs checkout?  The calls to SetFileTime
have debug messages attached which you will see when scanning the
strace.  One prints a message along the lines of "SetFileTime (%s) failed",
the other error message is within a short range after a line with text like
"incoming lastaccess  ".


Thanks,
Corinna

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

--
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: 1.5.13-1 : can't cd anywhere with non-admin account

2005-03-04 Thread Corinna Vinschen
On Mar  4 10:29, Fran?ois-David Collin wrote:
> Hello,
> 
> I upgraded from 1.5.12 to 1.5.13, and it seems that with a non-admin
> account, I can't "cd" anymore : any cygwin programs trying to access
> something from the "/" got a Permission denied error.

1.5.13 has changed to using "traverse checking" by default which means,
it now checks not only the permissions of the files and directories
the application is accessing, but also the permissions of the parent
directories (well, as far as Windows is doing the "right thing"(tm)).

If you can't set POSIX-compatible permissions on your directory tree
for some reason, try setting the environment variable CYGWIN to
contain the word "notraverse".


Corinna

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

--
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: 1.5.13-1 : can't cd anywhere with non-admin account

2005-03-04 Thread François-David Collin
Corinna, thanks you very much! the "notraverse" keyword did the trick.

I don't really understand what do you mean by "it checks the
permissions of the parent directory"... As long as I can "traverse"
with windows acls in the windows world (and it is presently the case)
I should be able to do the same with cygwin semantics, right?


On Fri, 4 Mar 2005 10:54:00 +0100, Corinna Vinschen
<[EMAIL PROTECTED]> wrote:
> On Mar  4 10:29, Fran?ois-David Collin wrote:
> > Hello,
> >
> > I upgraded from 1.5.12 to 1.5.13, and it seems that with a non-admin
> > account, I can't "cd" anymore : any cygwin programs trying to access
> > something from the "/" got a Permission denied error.
> 
> 1.5.13 has changed to using "traverse checking" by default which means,
> it now checks not only the permissions of the files and directories
> the application is accessing, but also the permissions of the parent
> directories (well, as far as Windows is doing the "right thing"(tm)).
> 
> If you can't set POSIX-compatible permissions on your directory tree
> for some reason, try setting the environment variable CYGWIN to
> contain the word "notraverse".
> 
> Corinna
> 
> --
> Corinna Vinschen  Please, send mails regarding Cygwin to
> Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
> Red Hat, Inc.
> 
> --
> 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/
> 
> 


-- 
François-David Collin
Équipe Réseau
Institut Curie
Section de Recherche

--
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: 1.5.13-1 : can't cd anywhere with non-admin account

2005-03-04 Thread Chris January
François-David Collin wrote:
Corinna, thanks you very much! the "notraverse" keyword did the trick.
I don't really understand what do you mean by "it checks the
permissions of the parent directory"... As long as I can "traverse"
with windows acls in the windows world (and it is presently the case)
I should be able to do the same with cygwin semantics, right?
Windows has traverse checking off by default. This means a user can 
access their home directory, for example, without being given access to 
to the parent directory or the root of the drive. It's a security 'feature'.

Chris
--
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: "cannot set time" on FAT32 - after installing cygwin-1.5.13-1

2005-03-04 Thread Jacek Piskozub
Corinna Vinschen wrote:
Can you run strace on this cvs checkout?  The calls to SetFileTime
have debug messages attached which you will see when scanning the
strace.  One prints a message along the lines of "SetFileTime (%s) failed",
the other error message is within a short range after a line with text like
"incoming lastaccess  ".
I did for both 1.5.12-1 and 1.5.13-1. The latter gave the following 
error "Cvs has caused an error in KERNEL32.DLL".

As I don't know which parts of the large ouput files you want (395 kB 
for 1.5.12 and 194kB for 1.5.13 - probably truncated by the kernel32.dll 
crash) I can send you both files if you want. Or give me more specific 
instructions what you need. There is no SetFileTime string in either file.

Jacek
--
Jacek Piskozub
Institute of Oceanology PAS, Sopot, Poland
mailto:[EMAIL PROTECTED]
http://water.iopan.gda.pl/~piskozub
--
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: "cannot set time" on FAT32 - after installing cygwin-1.5.13-1

2005-03-04 Thread Jacek Piskozub
Corinna Vinschen wrote:
Can you run strace on this cvs checkout?  The calls to SetFileTime
have debug messages attached which you will see when scanning the
strace.  One prints a message along the lines of "SetFileTime (%s) failed",
the other error message is within a short range after a line with text like
"incoming lastaccess  ".
Well, I found this in the 1.5.13-1 strace output file:
  867 3751972 [main] cvs 925621 fhandler_disk_file::utimes: incoming lastaccess 
422832B6 
  196 3752168 [main] cvs 925621 fhandler_base::close: closing 
'/cygdrive/d/mozilla_source/mozilla/client.mk' handle 0x20
  120 3752288 [main] cvs 925621 seterrno_from_win_error: 
/netrel/src/cygwin-1.5.13-1/winsup/cygwin/fhandler_disk_file.cc:835 windows 
error 5
 4058 3756346 [main] cvs 925621 geterrno_from_win_error: windows error 5 == 
errno 13
  845 3757191 [main] cvs 925621 geterrno_from_win_error: windows error 5 == 
errno 13
  175 3757366 [main] cvs 925621 utimes: -1 = utimes (client.mk, 0x7EAB30)
  363 3757729 [main] cvs 925621 fhandler_base::write: binary write
U mozilla/client.mk
Is that what you need?
Jacek
--
Jacek Piskozub
Institute of Oceanology PAS, Sopot, Poland
mailto:[EMAIL PROTECTED]
http://water.iopan.gda.pl/~piskozub

--
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: "cannot set time" on FAT32 - after installing cygwin-1.5.13-1

2005-03-04 Thread Corinna Vinschen
On Mar  4 11:39, Jacek Piskozub wrote:
> Corinna Vinschen wrote:
> 
> >Can you run strace on this cvs checkout?  The calls to SetFileTime
> >have debug messages attached which you will see when scanning the
> >strace.  One prints a message along the lines of "SetFileTime (%s) failed",
> >the other error message is within a short range after a line with text like
> >"incoming lastaccess  ".
> >
> 
> Well, I found this in the 1.5.13-1 strace output file:
> 
> >  867 3751972 [main] cvs 925621 fhandler_disk_file::utimes: incoming 
> >  lastaccess 422832B6 
> >  196 3752168 [main] cvs 925621 fhandler_base::close: closing 
> >  '/cygdrive/d/mozilla_source/mozilla/client.mk' handle 0x20
> >  120 3752288 [main] cvs 925621 seterrno_from_win_error: 
> >  /netrel/src/cygwin-1.5.13-1/winsup/cygwin/fhandler_disk_file.cc:835 
> >  windows error 5
> > 4058 3756346 [main] cvs 925621 geterrno_from_win_error: windows error 5 
> > == errno 13
> >  845 3757191 [main] cvs 925621 geterrno_from_win_error: windows error 5 
> >  == errno 13
> >  175 3757366 [main] cvs 925621 utimes: -1 = utimes (client.mk, 0x7EAB30)
> >  363 3757729 [main] cvs 925621 fhandler_base::write: binary write
> >U mozilla/client.mk
> 
> Is that what you need?

Yes, exactly.  I'm a bit surprised, though.  Can you make another test,
please?  Something like that:

$ echo foo > foo-rw
$ echo foo > foo-r
$ chmod a-w foo-r
$ touch foo-rw
$ touch foo-r

The question is this:  Do both touch succeed or does the latter touch
fail?  Even if it not fails, could you please try strace on both calls
to touch and see if you can find something like the above strace snippet?


Thanks in advance,
Corinna

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

--
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: "cannot set time" on FAT32 - after installing cygwin-1.5.13-1

2005-03-04 Thread Jacek Piskozub
Corinna Vinschen wrote:
Yes, exactly.  I'm a bit surprised, though.  Can you make another test,
please?  Something like that:
$ echo foo > foo-rw
$ echo foo > foo-r
$ chmod a-w foo-r
$ touch foo-rw
$ touch foo-r
The question is this:  Do both touch succeed or does the latter touch
fail?  

You'll be surprised again. Both failed:
D:\>echo foo > foo-rw
D:\>echo foo > foo-r
D:\>chmod a-w foo-r
D:\>touch foo-rw
/usr/bin/TOUCH: setting times of `foo-rw': Permission denied
D:\>touch foo-r
/usr/bin/TOUCH: cannot touch `foo-r': Permission denied
Same result if I start bash first.
> Even if it not fails, could you please try strace on both calls
> to touch and see if you can find something like the above strace
> snippet?
Again "strace touch foo-rw" caused a kernel32.dll crash. Something is 
fundamentally f#$%ed here.

 2168   48110 [main] touch 968493 fhandler_disk_file::utimes: incoming 
lastaccess 42284531 000F1B30
  183   48293 [main] touch 968493 fhandler_base::close: closing 
'/cygdrive/d/mozilla_source/mozilla/foo-rw' handle 0xB8
  118   48411 [main] touch 968493 seterrno_from_win_error: 
/netrel/src/cygwin-1.5.13-1/winsup/cygwin/fhandler_disk_file.cc:835 windows 
error 5
  134   48545 [main] touch 968493 geterrno_from_win_error: windows error 5 == 
errno 13
   97   48642 [main] touch 968493 geterrno_from_win_error: windows error 5 == 
errno 13
  123   48765 [main] touch 968493 utimes: -1 = utimes (foo-rw, 0x0)
I can send the other (foo-r) snipped later. I need to reboot now (I do 
need after every 1.5.13-1 strace crash)

Jacek
--
Jacek Piskozub
Institute of Oceanology PAS, Sopot, Poland
mailto:[EMAIL PROTECTED]
http://water.iopan.gda.pl/~piskozub

--
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/


Listing services

2005-03-04 Thread Colin JN Breame
Hello,

Anyone know how to list the names and descriptions of all the services on the 
system?

Cheers,

--
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: "cannot set time" on FAT32 - after installing cygwin-1.5.13-1

2005-03-04 Thread Jacek Piskozub

This is from "strace touch foo-r" output:
   96   56626 [main] touch 828181 fhandler_base::open_9x: 0xB8 = CreateFile 
(d:\mozilla_source\mozilla\foo-r, 0x8000, 0x3, 0x83E910, 0x3, 0x280, 0)
  104   56730 [main] touch 828181 fhandler_base::open_9x: 1 = 
fhandler_base::open (d:\mozilla_source\mozilla\foo-r, 0x11)
  103   56833 [main] touch 828181 fhandler_base::open_fs: 1 = 
fhandler_disk_file::open (d:\mozilla_source\mozilla\foo-r, 0x1)
  845   57678 [main] touch 828181 fhandler_disk_file::utimes: incoming 
lastaccess 42284C7C 0001FBD0
  156   57834 [main] touch 828181 fhandler_base::close: closing 
'/cygdrive/d/mozilla_source/mozilla/foo-r' handle 0xB8
  185   58019 [main] touch 828181 seterrno_from_win_error: 
/netrel/src/cygwin-1.5.13-1/winsup/cygwin/fhandler_disk_file.cc:835 windows 
error 5
  132   58151 [main] touch 828181 geterrno_from_win_error: windows error 5 == 
errno 13
   98   58249 [main] touch 828181 geterrno_from_win_error: windows error 5 == 
errno 13
  101   58350 [main] touch 828181 utimes: -1 = utimes (foo-r, 0x0)
Same errors as in the foo-rw case.
Jacek



--
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: "cannot set time" on FAT32 - after installing cygwin-1.5.13-1

2005-03-04 Thread Corinna Vinschen
On Mar  4 13:07, Jacek Piskozub wrote:
> This is from "strace touch foo-r" output:
> 
> >   96   56626 [main] touch 828181 fhandler_base::open_9x: 0xB8 = 
> >   CreateFile (d:\mozilla_source\mozilla\foo-r, 0x8000, 0x3, 0x83E910, 
> >   0x3, 0x280, 0)
> >  104   56730 [main] touch 828181 fhandler_base::open_9x: 1 = 
> >  fhandler_base::open (d:\mozilla_source\mozilla\foo-r, 0x11)
> >  103   56833 [main] touch 828181 fhandler_base::open_fs: 1 = 
> >  fhandler_disk_file::open (d:\mozilla_source\mozilla\foo-r, 0x1)
> >  845   57678 [main] touch 828181 fhandler_disk_file::utimes: incoming 
> >  lastaccess 42284C7C 0001FBD0
> >  156   57834 [main] touch 828181 fhandler_base::close: closing 
> >  '/cygdrive/d/mozilla_source/mozilla/foo-r' handle 0xB8
> >  185   58019 [main] touch 828181 seterrno_from_win_error: 
> >  /netrel/src/cygwin-1.5.13-1/winsup/cygwin/fhandler_disk_file.cc:835 
> >  windows error 5
> >  132   58151 [main] touch 828181 geterrno_from_win_error: windows error 5 
> >  == errno 13
> >   98   58249 [main] touch 828181 geterrno_from_win_error: windows error 5 
> >   == errno 13
> >  101   58350 [main] touch 828181 utimes: -1 = utimes (foo-r, 0x0)
> 
> Same errors as in the foo-rw case.

Thanks very much.  I think I understand now what happens, at least
vaguely.  Sigh, time to dust off my Win98 VM.


Corinna

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

--
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: Problems instaling perl Net::Pcap module

2005-03-04 Thread Dave Korn
Original Message
>From: SonOfLilit
>Sent: 03 March 2005 17:08

[ ... snip! ... ]
> * d/l WinPcap developer kit and put ./lib to my /lib/Pcap and ./include
> to my /usr/include, without replacing 2-3 .h headers that I already had
[ ... snip! ... ]
> 'Pcap.o(.text+0x12b7):Pcap.c: undefined reference to `_pcap_open_live
[ ... snip! ... ]
> gcc -shared -o  Pcap.dll -Wl,--out-implib=libPcap.dll.a
> -Wl,--export-all-symbols \ Wl,--enable-auto-import -Wl,--stack,8388608-
> s -L/usr/local/lib Pcap.o  /usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a-
[ ... snip! ... ]
> Clue anyone?

  Two clues for the price of one in fact!

>put ./lib to my /lib/Pcap and ./include

>-L/usr/local/lib 



cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
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: Listing services

2005-03-04 Thread Dave Korn
Original Message
>From: Colin JN Breame
>Sent: 04 March 2005 11:50

> Hello,
> 
> Anyone know how to list the names and descriptions of all the services on
> the system?


  I dunno how to do it in a cygwin fashion, so this is OT, but you can use
the 'doze command line utility "sc":


[EMAIL PROTECTED] /win/c/downloads2/suspect-viri> sc /?
*** Unrecognized Command ***
DESCRIPTION:
SC is a command line program used for communicating with the
NT Service Controller and services.
USAGE:
sc  [command] [service name]  ...

The option  has the form "\\ServerName"
Further help on commands can be obtained by typing: "sc [command]"
Commands:
  query---Queries the status for a service, or
  enumerates the status for types of services.


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
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: keychain service--hanging in ssh-add

2005-03-04 Thread Chuck
Karl M wrote:
> Hi All...
> 
> I tracked it down. It is not a problem with keychain, openssh or cygwin.
> 
> Occasionally, on this particular laptop (XP SP2), the user can reboot,
> log in and start a bash shell before all of the services are running or
> while they are still starting. Gotta love Microsoft. So that was causing
> the problem.
> 
> I have a little more handshaking to prevent the problem now.
> 
> I think the keychain service stuff just is about ready for a wider
> audience.
> 
> Corinna...I have not heard back from Hack after I sent him an e-mail a
> week ago. I am happy to support an updated keychain package, or just
> place my files in the archives. We can wait a while longer to see if we
> hear from Hack. Just let me know how you would like to proceed.
> 
> Thanks,
> 
> ...Karl
> 
> 
> 

Don't know if this is related but a few days ago after installing
cygwin-1.5.13-1, and cygrunsrv-1.0.1-1, ssh-add started hanging on me
the first time I try to use it. If I simply CTRL+C it, and try again it
works. This happens consistently. I've tried with pdksh (my default
shell) and bash. Only seems to happen the first time I launch ssh-add
after rebooting, but I don't think it's related to MS services not
running. My PC can be up and running for hours first, and it'll still
happen. Any ideas?
-- 
To reply by email remove "_nospam"


--
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: ctime: creation or change time?

2005-03-04 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Corinna Vinschen on 3/3/2005 4:30 AM:
> On Mar  2 13:19, [EMAIL PROTECTED] wrote:
> 
>>In fact, NTFS has no notion of file change time as described in POSIX.  Is 
>>there
>>any chance of undoing this change?  An alternative solution might be to simply
>>use the NTFS file modify time for both the mtime and ctime of the file, since
>>those two are almost always updated together anyway.

Not true - some functions that only affect file metadata, such as utimes()
or chown(), only touch the ctime.  Furthermore, mtime can be arbitrarily
set (thanks to utimes()), but the POSIX notion of ctime is that it is
always an accurate snapshot of the last time something changed about a
file, and cannot be arbitrarily changed.  This is handy, for example, when
untarring an archive - it preserves atime and mtime as they were when the
archive was created, but sets ctime to the time the archive was untarred.

> 
> 
> Well, we're trying to be POSIX like, so that's nothing we're going to
> revert.  I guess we're using ctime as change time even more in future.

If you really want the old behavior, then propose a patch that adds an
option to the CYGWIN environment variable.  I envision the following:

CYGWIN="ctime=creation": never touch ctime; let it be the Windows notion
of file creation time

CYGWIN="ctime=file_change": touch ctime for file modifications (chown,
write, utimes, etc.).  This would be the default level, and matches cygwin
1.5.13 behavior.

CYGWIN="ctime=dir_change": touch ctime everywhere that POSIX requires (the
containing directory needs to be touched on creat, rename, unlink, etc.)
This is more time-consuming and not implemented in 1.5.13, because it
requires opening additional directory file handles during the course of
operation, but is necessary for more complete compliance to the standards.

Having said all that, I'm not going to be the one to implement a patch
along those lines.  If the default bothers you, you are free to fix it.

- --
Life is short - so eat dessert first!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCKGiW84KuGfSFAYARAltJAKCwLrlJEqTj1siobEPuNOrgQDxNVQCdGpn/
q65RZygXUMvz3K4MOdMvbxM=
=o+Xc
-END PGP SIGNATURE-

--
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: "cannot set time" on FAT32 - after installing cygwin-1.5.13-1

2005-03-04 Thread Corinna Vinschen
On Mar  4 13:15, Corinna Vinschen wrote:
> On Mar  4 13:07, Jacek Piskozub wrote:
> > This is from "strace touch foo-r" output:
> > >   96   56626 [main] touch 828181 fhandler_base::open_9x: 0xB8 = 
> > >   CreateFile (d:\mozilla_source\mozilla\foo-r, 0x8000, 0x3, 0x83E910, 
> > >   0x3, 0x280, 0)
> > >  104   56730 [main] touch 828181 fhandler_base::open_9x: 1 = 
> > >  fhandler_base::open (d:\mozilla_source\mozilla\foo-r, 0x11)
> > >  103   56833 [main] touch 828181 fhandler_base::open_fs: 1 = 
> > >  fhandler_disk_file::open (d:\mozilla_source\mozilla\foo-r, 0x1)
> > >  845   57678 [main] touch 828181 fhandler_disk_file::utimes: incoming 
> > >  lastaccess 42284C7C 0001FBD0
> > >  156   57834 [main] touch 828181 fhandler_base::close: closing 
> > >  '/cygdrive/d/mozilla_source/mozilla/foo-r' handle 0xB8
> > >  185   58019 [main] touch 828181 seterrno_from_win_error: 
> > >  /netrel/src/cygwin-1.5.13-1/winsup/cygwin/fhandler_disk_file.cc:835 
> > >  windows error 5
> > >  132   58151 [main] touch 828181 geterrno_from_win_error: windows error 5 
> > >  == errno 13
> > >   98   58249 [main] touch 828181 geterrno_from_win_error: windows error 5 
> > >   == errno 13
> > >  101   58350 [main] touch 828181 utimes: -1 = utimes (foo-r, 0x0)
> > 
> > Same errors as in the foo-rw case.
> 
> Thanks very much.  I think I understand now what happens, at least
> vaguely.  Sigh, time to dust off my Win98 VM.

Ok, I've reproduced the effect (this only happens on 9x/ME) and I've
checked in a fix.  Please try the next Cygwin developers snapshot from
http://cygwin.com/snapshots/


Corinna

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

--
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/



Seg Fault while using /dev/clipboard

2005-03-04 Thread Pat Kane
I am having problems using /dev/clipboard.  When there is a text
selection on the Windows clipboard things work as expected, but if
there is some other type of selection I get:   "Segmentation fault (core 
dumped)"

To duplicate the problem try:   cat  /dev/clipboard
first with a text selection and then after using Windows to copy a 
program (right click, copy),
or after taking a screen  snapshot (cntrl-alt-prntScrn).

I am using Cygwin DLL 1.5.13-1  on Win2k V5 SP4, below is the output
of cygcheck.
Pat Kane

---
Cygwin Configuration Diagnostics
Current System Time: Fri Mar 04 07:44:12 2005
Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4
Path:e:\cygwin\lib\subversion\bin
   e:\cygwin\usr\local\bin
   e:\cygwin\bin
   e:\cygwin\bin
   e:\cygwin\usr\X11R6\bin
   c:\Bin\
   c:\Python22\
   c:\WINNT\system32
   c:\WINNT
   c:\WINNT\System32\Wbem
   c:\Program Files\ATI Technologies\ATI Control Panel
   c:\Java1.3\bin
   c:\PROGRA~1\MICROS~3\Office
   e:\cygwin\bin
   e:\cygwin\home\pek\Bin
Output from e:\cygwin\bin\id.exe (nontsec)
UID: 1002(pek) GID: 513(None)
513(None)
Output from e:\cygwin\bin\id.exe (ntsec)
UID: 1002(pek)  GID: 513(None)
0(root) 513(None)   544(Administrators) 545(Users)
SysDir: C:\WINNT\system32
WinDir: C:\WINNT
HOME = `e:\cygwin\home\pek'
MAKE_MODE = `unix'
PWD = `/'
USER = `pek'
ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\pek\Application Data'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `P3KNT'
COMSPEC = `C:\WINNT\system32\cmd.exe'
CVS_RSH = `/bin/ssh'
HISTCONTROL = `ignoredups'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\pek'
HOSTNAME = `p3knt'
INFOPATH = 
`/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:'
LOGONSERVER = `\\P3KNT'
MANPATH = 
`/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man:/usr/X11R6/man'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/home'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
PALMTOPCENTERDIR = `C:\Program Files\Sharp Zaurus 2\Qtopia Desktop'
PATHEXT = 
`.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.py;.pyc;.pyo;.pyw;.pys'
PKG_CONFIG_PATH = `/usr/X11R6/lib/pkgconfig'
PRINTER = `\\NEWBLUE\HP OfficeJet K80'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 6, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0806'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
PS1 = `\[\033]0;\w\007
[EMAIL PROTECTED] \[\033[33m\w\033[0m\]
$ '
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TEMP = `C:\DOCUME~1\pek\LOCALS~1\Temp'
TERM = `cygwin'
TEXMF = `{/usr/share/lilypond/2.4.2,/usr/share/texmf}'
TMP = `C:\DOCUME~1\pek\LOCALS~1\Temp'
USERDOMAIN = `P3KNT'
USERNAME = `pek'
USERPROFILE = `C:\Documents and Settings\pek'
WINDIR = `C:\WINNT'
_ = `/usr/bin/cygcheck'
POSIXLY_CORRECT = `1'

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 = 0x0022
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\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
 (default) = `/cygdrive'
 cygdrive flags = 0x0022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
 (default) = `e:\cygwin'
 flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
 (default) = `e:\cygwin/bin'
 flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
 (default) = `e:\cygwin/lib'
 flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts 
v2\/usr/X11R6/lib/X11/fonts
 (default) = `C:\cygwin\usr\X11R6\lib\X11\fonts'
 flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options
c:  hd  FAT32 6993Mb  49% CPUN   WIN
e:  hd  FAT3211762Mb  96% CPUN   PEK
f:  hd  NTFS  5498Mb  21% CP CS UN PA FC Scratch

.  /cygdrive user
binmode,cygdrive
e:\cygwin  / system  binmode
e:\cygwin/bin  /usr/bin  system  binmode
e:\cygwin/lib  /usr/lib  system  binmode
C:\cygwin\usr\X11R6\lib\X11\fonts  /usr/X11R6/lib/X11/fonts  system  binmode
.  /cygdrive system  
binmode,cygdrive

Found: e:\cygwin\bin\awk.exe
Found: e:\cygwin\bin\bash.exe
Found: e:\cygwin\bin\cat.exe
Found: e:\cygwin\bin\cp.exe
Found: e:\cygwin\bin\cpp.exe
Found: e:\cygwin\bin\find.exe
Found: e

Re: cron copy on network drives

2005-03-04 Thread Jason Tishler
Paul,

On Thu, Mar 03, 2005 at 08:13:36AM -0800, Paul Hodor wrote:
> I am trying to set up a cron service to update some directories on a
> network drive, but I ran into a problem.
> 
> This copy command works from the command-line:
> cp -a -u -v //mydrive/myshare/dir1/* //mydrive/myshare/dir2 >> log 2>&1
> 
> However, if I run it with cron I get the following error:
> cp: cannot stat `//mydrive/myshare/dir1/*': No such file or directory
> 
> Do I need to use a different syntax for the path or am I doing
> something else wrong? I am running Windows XP Professional version 2002
> SP1 and cygwin DLL version 1.5.12.

The attached script, remount.sh, may help to solve your problem with a
few changes as appropriate:

1. SSS
2. DDD
3. share

and if you are willing to store your Windows password in a file (i.e.,
~/.passwd).

I use remount.sh at work to remount a network share so I can backup my
local home directory (which is not otherwise backed up) to this share
(which is).

My crontab entry looks like the following:

5 2 * * * remount.sh; backup.sh ...

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6


remount.sh
Description: Bourne shell script
--
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: [ANNOUNCEMENT] New package: psmisc-21.5-1

2005-03-04 Thread Max Bowsher
Corinna Vinschen wrote:
   --datadir=$(prefix)/share \
   --mandir=$(prefix)/share/man \
Shouldn't those be braces, not parentheses?
Max.
--
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: [ANNOUNCEMENT] New package: psmisc-21.5-1

2005-03-04 Thread Corinna Vinschen
On Mar  4 14:34, Max Bowsher wrote:
> Corinna Vinschen wrote:
> >   --datadir=$(prefix)/share \
> >   --mandir=$(prefix)/share/man \
> 
> Shouldn't those be braces, not parentheses?

I'm using parenthesis, because they are not expanded before put into
the Makefile.  So they refer to the Makefile variable prefix and a
later

  make prefix=/foo

changes all depending variables.

However, as usual I forgot to *quote* the strings.  This is the correct
version:

  ./configure \
--prefix=/usr \
--datadir='$(prefix)/share' \
--mandir='$(prefix)/share/man' \
--without-libiconv-prefix \
--without-libintl-prefix


Corinna

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

--
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: ctime: creation or change time? & "cannot set time" error

2005-03-04 Thread Christopher Faylor
On Fri, Mar 04, 2005 at 08:16:55AM +0100, Jacek Piskozub wrote:
>>>The problem described in the following post to this mailing list 
>>>earlier today sounds like it is caused by Cygwin's new treatment 
>>>of ctime:
>>>
>>>   http://cygwin.com/ml/cygwin/2005-03/msg00165.html
>>
>>Since the CVS in question is a cygwin version, if this really is a
>>problem with ctime then it seems rather strange that cygwin's attempts
>>to behave more like POSIX would break a utility which relies on that
>>very behavior.
>>
>>In any event, this isn't the postulated problem with a native windows
>>application.
>
>Well, whatever it is, this "non problem" of yours makes it impossible to 
>build Mozilla with win32.
>
>At least on FAT32 which I use. I mention as everyone is talking only 
>about NTFS.

Hello?  I didn't say it was a non-problem.  I wanted to find out
specifically what kind of problems we were talking about.  Supposedly,
the change will break all sorts of windows apps.

So far the answer is "it breaks cvs" (a non-native-windows app), "makes
it impossible to build Mozilla with win32...on FAT32" (a bug report
which contains no details), and "it breaks my custom application which
actually uses the windows version of ctime".  So, we're 1 for 3.

Basically, people are seeing a behavior that they don't like and just
assuming that the reason for the behavior has something to do with that
"ctime" thing they've heard so much about.  It is possible, of course,
that the ctime changes caused some other behavior as a side-effect but
blaming the change for every file related problem in 1.5.13 isn't going
to be very productive.

cgf

--
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: keychain service--hanging in ssh-add

2005-03-04 Thread Karl M

From: Chuck
Subject: Re: keychain service--hanging in ssh-add
Date: Fri, 04 Mar 2005 08:29:09 -0500
Karl M wrote:
> Hi All...
>
> I tracked it down. It is not a problem with keychain, openssh or cygwin.
>
> Occasionally, on this particular laptop (XP SP2), the user can reboot,
> log in and start a bash shell before all of the services are running or
> while they are still starting. Gotta love Microsoft. So that was causing
> the problem.
>
> I have a little more handshaking to prevent the problem now.
>
> I think the keychain service stuff just is about ready for a wider
> audience.
>
> Corinna...I have not heard back from Hack after I sent him an e-mail a
> week ago. I am happy to support an updated keychain package, or just
> place my files in the archives. We can wait a while longer to see if we
> hear from Hack. Just let me know how you would like to proceed.
>
> Thanks,
>
> ...Karl
>
>
>
Don't know if this is related but a few days ago after installing
cygwin-1.5.13-1, and cygrunsrv-1.0.1-1, ssh-add started hanging on me
the first time I try to use it. If I simply CTRL+C it, and try again it
works. This happens consistently. I've tried with pdksh (my default
shell) and bash. Only seems to happen the first time I launch ssh-add
after rebooting, but I don't think it's related to MS services not
running. My PC can be up and running for hours first, and it'll still
happen. Any ideas?
I think it may be related to your update to cygwin-1.5.13-1. This is a 
symptom that I was seeing also, but only on one machine (XP SP2 laptop) and 
only on some reboots. Please try a snapshot and report the results.

Another experiment is to reboot, and wait for the disk activity to stop. 
That is, to wait until the reboot is really finished. Then try ssh-add. That 
would be worth trying with both 1.5.13-1 and with a snapshot.

Please tell me about your system configuration. Are you running ssh-agent 
and or keychain as a service?

What may be going on is that after boot-up, the machine is busy and the new 
pipe code slows down (see postings from cgf). For me, this was causing a 
race at startup. When I prevented the race, it prevented the problem...but I 
don't think I found the problem, just sent it back into hiding.

Thanks,
...Karl

--
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: installing cygwin (for C++)

2005-03-04 Thread Igor Pechtchanski
On Fri, 4 Mar 2005, arjun wrote:

> Hi,
>   I want to know what all pacakegs I need to install to be able to compile
> and run C++ programs.

What you need is the GNU C++ compiler (g++).  Search the Cygwin packages
for 'g++' on the package search page at .
Remember, the search string is a full regular expression, so '+'s need to
be escaped with '\'s.  It's also helpful to prepend "bin/" to the
executable name.

See also .

> Can you also please suggest mirrors which contain these.Iam installing
> using setup.exe

All of the mirrors on the official mirror list[*] should contain the
necessary packages.
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

--
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: Listing services

2005-03-04 Thread Al Slater
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Colin JN Breame wrote:
| Anyone know how to list the names and descriptions of all the services
on the
| system?
psservice in pstools package at http://www.sysinternals.com will do that
and more.
- --
Al Slater
Technical Director
Stanton Consultancy
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCKJI7z4fTOFL/EDYRAj+FAJ9jupXwC1gkG85wovrZmw+WJ38EBgCeJWIy
/CcKs69tKy2iF8volxWszxI=
=w0Jt
-END PGP SIGNATURE-
--
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: cygstart patch

2005-03-04 Thread Charles Wilson
Alec Klauk wrote:
 I have unsubscribed 10 times to this mailing. How do you do it?
First, you DON'T pick some random schmoe on the list and ask him.
Second, you read and follow the instructions...
http://cygwin.com/lists.html#subscribe-unsubscribe
http://sourceware.org/lists.html#faqs (especially FAQ 3, 4 and 5)
--
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: Seg Fault while using /dev/clipboard

2005-03-04 Thread Igor Pechtchanski
On Fri, 4 Mar 2005, Pat Kane wrote:

> I am having problems using /dev/clipboard.  When there is a text
> selection on the Windows clipboard things work as expected, but if
> there is some other type of selection I get:   "Segmentation fault (core
> dumped)"
>
> To duplicate the problem try:   cat  /dev/clipboard
> first with a text selection and then after using Windows to copy a program
> (right click, copy),
> or after taking a screen  snapshot (cntrl-alt-prntScrn).
>
> I am using Cygwin DLL 1.5.13-1  on Win2k V5 SP4,

Ok, I can reproduce this on WinXP Pro SP1.  The last few lines of strace
before the exception[*] show a read call that executes normally, and then
a SEGV.  Someone with a debug version of Cygwin should be able to trace
through this in gdb.

> below is the output of cygcheck.

In the future, please *attach* the output of cygcheck instead of including
it inline, to avoid false positives in archive searches.  Thanks,
Igor
[*] Here is a relevant (IMO) snippet of the strace:
  115   31208 [main] cat 9200 build_fh_pc: fh 0x61791454
   42   31250 [main] cat 9200 fhandler_base::set_flags: flags 0x2, 
supplied_bin 0x0
   35   31285 [main] cat 9200 fhandler_base::set_flags: O_TEXT/O_BINARY set in 
flags 0x2
   33   31318 [main] cat 9200 fhandler_base::set_flags: filemode set to text
   32   31350 [main] cat 9200 open: 3 = open (/dev/clipboard, 0x0)
   33   31383 [main] cat 9200 fhandler_base::fstat: here
   35   31418 [main] cat 9200 fstat64: 0 = fstat (3, 0x22EF30)
   70   31488 [main] cat 9200 readv: readv (3, 0x22EE40, 1) blocking, 
sigcatchers 0
   43   31531 [main] cat 9200 readv: no need to call ready_for_read
   84   31615 [main] cat 9200 handle_exceptions: In cygwin_except_handler exc 
0xC005 at 0x610D3F51 sp 0x22ED24
   37   31652 [main] cat 9200 handle_exceptions: In cygwin_except_handler sig 
11 at 0x610D3F51

-- 
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

--
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/



CSAgent warning with setup.exe

2005-03-04 Thread Will Parsons
I have cygwin 1.5.13 installed on the my WinXP machine at work.  The IT
department apparently has recently installed Cisco Security Agent and now
when I run setup.exe I get a warning message that setup.exe "tried to make
system call from self-modifying code" and that this may mean the program
has been subverted by a buffer overflow attack.

Is this true and if so is it something I should worry about?

cygcheck output is attached (if I've done this right).

- Will


begin 644 cygcheck.out
M#0I#>6=W:[EMAIL PROTECTED])A=&EO;B!$:6%G;F]S=&EC[EMAIL PROTECTED]&[EMAIL PROTECTED])I($UA6=W:6Y<=7-R7&%U=&]T;V]L7'-T86)L
M95QB:6X-"@E#.EQC>6=W:6Y<=7-R7&QO8V%L7&)I;@T*"4,Z7&-Y9W=I;EQB
M:6X-"@E#.EQC>6=W:6Y<8FEN#0H)0SI<8WEG=VEN7'5S&[EMAIL PROTECTED]&YO;G1S96,I#0I5240Z(#(X.#`S*'=B<"D@("`@("`@("`@
M1TE$.B`Q,#4Q,RA$;VUA:[EMAIL PROTECTED]7-T96TS,@T*5VEN1&ER.B!#
M.EQ724Y$3U=3#0H-"D-91U=)3B`](&!S97)V97(G#0I(3TU%([EMAIL PROTECTED]&,Z7'=B
M<"<-"E!71"`](&`O<"<-"@T*04Q,55-%4E-04D]&24Q%([EMAIL PROTECTED],Z7$1O8W5M
M96YT"QV)PT*4T534TE/3DY!344@/[EMAIL PROTECTED]6=W:6X-"DA+15E?0U524D5.5%]54T527%-O9G1W87)E7$-Y9VYU
M6=W:6Y<4')O9W)A;2!/
M<'1I;VYS#0I(2T597TQ/0T%,7TU!0TA)3D5<4T]&5%=!4D5<0WEG;G5S(%-O
M;'5T:6]N6=W:6Y<;6]U;G1S('8R#0H@("AD969A=6QT
M*2`](&`O8WEG9')I=F4G#0H@(&-Y9V1R:79E(&9L86=S(#T@,'@P,#`P,#`R
M80T*2$M%65],3T-!3%]-04-(24Y%7%-/1E1705)%7$-Y9VYU6=W
M:6XG#0H@(&9L86=S(#T@,'@P,#`P,#`P80T*2$M%65],3T-!3%]-04-(24Y%
M7%-/1E1705)%7$-Y9VYU6=N=7,@4V]L=71I;VYS7$-Y9W=I;EQM
M;W5N=',@=C)<+V0-"[EMAIL PROTECTED]&1E9F%U;'0I([EMAIL 
PROTECTED]&0Z)PT*("!F;&%G6=N=7,@
M4V]L=71I;VYS7$-Y9W=I;EQM;W5N=',@=C)<+V5X<&]R=',O8PT*("`H9&5F
M875L="D@/[EMAIL PROTECTED]@(&9L86=S(#T@,'@P,#`P,#`P80T*2$M%65],3T-!
M3%]-04-(24Y%7%-/1E1705)%7$-Y9VYU#`P,#`P,#!A#0I(2T597TQ/0T%,7TU!0TA)3D5<4T]&5%=!4D5<
M0WEG;G5S(%-O;'5T:6]N6=W:6Y<;6]U;G1S('8R7"]E>'!O6=N=7,@4V]L=71I;VYS7$-Y
M9W=I;EQM;W5N=',@=C)<+V5X<&]R=',O<0T*("`H9&5F875L="D@/2!@<3HG
M#0H@(&9L86=S(#T@,'@P,#`P,#`P80T*2$M%65],3T-!3%]-04-(24Y%7%-/
M1E1705)%7$-Y9VYU#`P,#`P,#!A#0I(2T597TQ/0T%,7TU!0TA)3D5<4T]&
M5%=!4D5<0WEG;G5S(%-O;'5T:6]N6=W:6Y<;6]U;G1S('8R7"]U6=W:6XO;&EB)PT*("!F;&%G6=N
M=7,@4V]L=71I;VYS7$-Y9W=I;EQM;W5N=',@=C)<+W5S6=W:6Y<[EMAIL PROTECTED],5(V
M7&QI8EQ8,3%<9F]N=',G#0H@(&9L86=S(#T@,'@P,#`P,#`P80T*2$M%65],
M3T-!3%]-04-(24Y%7%-/1E1705)%7$-Y9VYU7-T96T@(&)I;FUO9&4-"F$Z("`@("`@("`@("`@("`@("`@("`@("`@
M("`@("`@("[EMAIL PROTECTED]@("`@("`@("`@("`@("`@("`@("`@("!S>7-T96T@(&)I
M;FUO9&4-"F,Z("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("[EMAIL PROTECTED],@
M("`@("`@("`@("`@("`@("`@("`@("!S>7-T96T@(&)I;FUO9&4-"FDZ("`@
M("`@("`@("`@("`@("`@("`@("`@("`@("`@("[EMAIL PROTECTED]("`@("`@("`@("`@
M("`@("`@("`@("!S>7-T96T@(&)I;FUO9&4-"F0Z("`@("`@("`@("`@("`@
M("`@("`@("`@("`@("`@("[EMAIL PROTECTED]@("`@("`@("`@("`@("`@("`@("`@("!S
M>7-T96T@(&)I;FUO9&4-"F,Z("`@("`@("`@("`@("`@("`@("`@("`@("`@
M("`@("[EMAIL PROTECTED]<&]R=',O8R`@("`@("`@("`@("`@("!S>7-T96T@(&)I;FUO
M9&4-"F0Z("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("[EMAIL PROTECTED]<&]R
M=',O9"`@("`@("`@("`@("`@("!S>7-T96T@(&)I;FUO9&4-"G`Z("`@("`@
M("`@("`@("`@("`@("`@("`@("`@("`@("[EMAIL PROTECTED]<&]R=',O<"`@("`@("`@
M("`@("`@("!S>7-T96T@(&)I;FUO9&4-"G$Z("`@("`@("`@("`@("`@("`@
M("`@("`@("`@("`@("[EMAIL PROTECTED]<&]R=',O<2`@("`@("`@("`@("`@("!S>7-T
M96T@(&)I;FUO9&4-"G`Z("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@
M("[EMAIL PROTECTED]@("`@("`@("`@("`@("`@("`@("`@("!S>7-T96T@(&)I;FUO9&4-
M"G$Z("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("[EMAIL PROTECTED]@("`@("`@
M("`@("`@("`@("`@("`@("!S>7-T96T@(&)I;FUO9&4-"G,Z("`@("`@("`@
M("`@("`@("`@("`@("`@("`@("`@("[EMAIL PROTECTED],@("`@("`@("`@("`@("`@("`@
M("`@("!S>7-T96T@(&)I;FUO9&4-"D,Z7&-Y9W=I;B]B:6X@("`@("`@("`@
M("`@("`@("`@("[EMAIL PROTECTED]7-T96T@
M(&)I;FUO9&4-"D,Z7&-Y9W=I;B]L:6(@("`@("`@("`@("`@("`@("`@("`@
M+W5S7-T96T@(&)I;FUO9&4-"D,Z
M7&-Y9W=I;EQU7-T96T@(&)I;FUO9&4-"BX@("`@("`@("`@("`@
M("`@("`@("`@("`@("`@("`@("[EMAIL PROTECTED]:79E("`@("`@("`@("`@("`@
M("!S>7-T96T@(&)I;FUO9&4L8WEG9')I=F4-"@T*3F]T($9O=6YD.B!A=VL-
M"D9O=6YD.B!#.EQC>6=W:6Y<8FEN7&)A<[EMAIL PROTECTED]&;[EMAIL PROTECTED]<8WEG
M=VEN7&)I;EQC870N97AE#0I&;[EMAIL PROTECTED]<4')O9W)A;2!&:6QE6=W:6Y<8FEN7&-P+F5X90T*1F]U
M;F0Z($,Z7&-Y9W=I;EQB:6Y<8W!P+F5X90T*1F]U;F0Z(&,Z7$)#-5Q"24Y<
M8W!P+F5X90T*5V%R;[EMAIL PROTECTED]<8WEG=VEN7&)I;EQC<'`N97AE(&AI9&5S
M(&,Z7$)#-5Q"24Y<8W!P+F5X90T*1F]U;F0Z($,Z7&-Y9W=I;EQB:6Y<9FEN
M9"YE>&4-"D9O=6YD.B!#.EQC>6=W:6Y<8FEN7&=C8RYE>&4-"D9O=6YD.B!#
M.EQC>6=W:6Y<8FEN7&=D8BYE>&4-"D9O=6YD.B!#.EQC>6=W:6Y<8FEN7&=R
M97`N97AE#0I&;[EMAIL PROTECTED]<8WEG=VEN7&)I;EQL9"YE>&4-"D9O=6YD.B!#
M.EQC>6=W:6Y<8FEN7&QS+F5X90T*1F]U;F0Z(&,Z7%!R;[EMAIL PROTECTED]<
M2'5M;6EN9V)I&4@:&ED97,@8SI<4')O
M9W)A;2!&:6QE&4-"E=A&4@:&ED97,@8SI<0D,U7$))3EQM86ME+F5X90T*1F]U
M;F0Z($,Z7&-Y9W=I;EQB:6Y<;78N97AE#0I&;W5N9#H@<#I<8FEN7&UV+F5X
M90T*5V%R;[EMAIL PROTECTED]<8WEG=VEN7&)I;EQM=BYE>&4@:&ED97,@<#I<8FEN
M7&UV+F5X90T*1F]U;F0Z(%QB:6Y<;78N97AE#0I787)N:6YG.B!#.EQC>6=W
M:6Y<8FEN7&UV+F5X92!H:61E&4@:&ED97,@<#I<8FEN7')M+F5X90T*
M1F]U;F0Z(%QB:6Y<6=W:6Y<8FEN7')M
M+F5X92!H:61E&4-
M"E=A6=W:6Y<8FEN7&-Y9V)Z,BTQ+F1L;"`M(&]S

Re: Seg Fault while using /dev/clipboard

2005-03-04 Thread Igor Pechtchanski
On Fri, 4 Mar 2005, Igor Pechtchanski wrote:

> On Fri, 4 Mar 2005, Pat Kane wrote:
>
> > I am having problems using /dev/clipboard.  When there is a text
> > selection on the Windows clipboard things work as expected, but if
> > there is some other type of selection I get:   "Segmentation fault (core
> > dumped)"
> >
> > To duplicate the problem try:   cat  /dev/clipboard
> > first with a text selection and then after using Windows to copy a program
> > (right click, copy),
> > or after taking a screen  snapshot (cntrl-alt-prntScrn).
> >
> > I am using Cygwin DLL 1.5.13-1  on Win2k V5 SP4,
>
> Ok, I can reproduce this on WinXP Pro SP1.  The last few lines of strace
> before the exception[*] show a read call that executes normally, and then
> a SEGV.  Someone with a debug version of Cygwin should be able to trace
> through this in gdb.

As I hit "Send", I realized that I have a (slightly older) debug version
of the DLL compiled from CVS, that also exhibits this problem.  I don't
have time to delve into this now, but, just in case it helps, here's the
gdb trace:

(gdb) info threads
* 3 thread 9564.0x534  0x77f75a59 in ?? ()
   from /cygdrive/c/WINDOWS/System32/ntdll.dll
  2 thread 9564.0x2488  0x7ffe0304 in ?? ()
  1 thread 9564.0x24fc  0x610b3df1 in strlen ()
at /usr/src/cygwin-cvs/src/winsup/cygwin/cygserver.h:82
Current language:  auto; currently c++
(gdb) thread 1
[Switching to thread 1 (thread 9564.0x24fc)]#0  0x610b3df1 in strlen ()
at /usr/src/cygwin-cvs/src/winsup/cygwin/cygserver.h:82
82ssize_t error_code () const { return _header.error_code; };
(gdb) where
#0  0x610b3df1 in strlen ()
at /usr/src/cygwin-cvs/src/winsup/cygwin/cygserver.h:82
#1  0x6101da6f in fhandler_dev_clipboard::read (this=0x61804d50,
ptr=0x100102d8, [EMAIL PROTECTED])
at /usr/src/cygwin-cvs/src/winsup/cygwin/fhandler_clipboard.cc:230
#2  0x0022ed8c in ?? ()
#3  0x77f5abb5 in ?? () from /cygdrive/c/WINDOWS/System32/ntdll.dll
#4  0x77e75a90 in KERNEL32!IsBadWritePtr ()
   from /cygdrive/c/WINDOWS/system32/kernel32.dll
#5  0x0400 in ?? ()
#6  0x0022ee60 in ?? ()
#7  0x0001 in ?? ()
#8  0x1001 in ?? ()
#9  0x in ?? () from
(gdb) list
77size_t bufsiz = 0);
78virtual ~client_request ();
79
80request_code_t request_code () const { return _header.request_code; }
81
82ssize_t error_code () const { return _header.error_code; };
83void error_code (ssize_t error_code) { _header.error_code = 
error_code; };
84
85size_t msglen () const { return _header.msglen; };
86void msglen (size_t len) { _header.msglen = len; };
(gdb) up
#1  0x6101da6f in fhandler_dev_clipboard::read (this=0x61804d50,
ptr=0x100102d8, [EMAIL PROTECTED])
at /usr/src/cygwin-cvs/src/winsup/cygwin/fhandler_clipboard.cc:230
(gdb) list
230   ret = ((len > (strlen (lpstr) - pos)) ? (strlen (lpstr) - 
pos)
225   else
226 {
227   LPSTR lpstr;
228   lpstr = (LPSTR) GlobalLock (hglb);
229
230   ret = ((len > (strlen (lpstr) - pos)) ? (strlen (lpstr) - 
pos)
231  : len);
232
233   memcpy (ptr, lpstr + pos, ret);
234   //ret = snprintf((char *) ptr, len, "%s", lpstr);//+pos);
(gdb) quit

HTH,
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

--
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: Seg Fault while using /dev/clipboard

2005-03-04 Thread Dave Korn
Original Message
>From: Igor Pechtchanski
>Sent: 04 March 2005 16:55

> On Fri, 4 Mar 2005, Pat Kane wrote:

>> To duplicate the problem try:   cat  /dev/clipboard
>> first with a text selection and then after using Windows to copy a
>> program (right click, copy), or after taking a screen  snapshot
>> (cntrl-alt-prntScrn). 

> Ok, I can reproduce this on WinXP Pro SP1.  The last few lines of strace
> before the exception[*] show a read call that executes normally, and then
> a SEGV.  Someone with a debug version of Cygwin [...snip!...]

Grmbmmgf?  Huh?  did someone call my name?  Here's the results
from the .stackdump file:

Exception: STATUS_ACCESS_VIOLATION at eip=610AB771
eax= ebx=0400 ecx= edx= esi=
edi=
ebp=0022ED60 esp=0022ED5C program=C:\cygwin\bin\cat.exe, pid 4224, thread
main
cs=001B ds=0023 es=0023 fs=0038 gs= ss=0023
Stack trace:
Frame Function  Args
0022ED60  610AB771  (, 0002, 000F, 610ABD58)
../../../../../../src/newlib/libc/machine/i386/strlen.S:27
0022EDC0  6101B28F  (0022EE78, 0001, 0022EDF0, 61045C38)
/usr/build/obj/i686-pc-cygwin/winsup/cygwin/../../../../src/winsup/cygwin/fh
andler_clipboard.cc:228
0022EDF0  61019508  (617E1458, 0022EE78, 0001, 0400)
/usr/build/obj/i686-pc-cygwin/winsup/cygwin/../../../../src/winsup/cygwin/fh
andler.cc:948
0022EE60  6107CC95  (0003, 0022EE78, 0001, 6107DF7F)
/usr/build/obj/i686-pc-cygwin/winsup/cygwin/../../../../src/winsup/cygwin/cy
gheap.h:326
0022EE80  6107CABD  (0003, 0A0501F8, 0400, )
/usr/build/obj/i686-pc-cygwin/winsup/cygwin/../../../../src/winsup/cygwin/sy
scalls.cc:388
0022EEB0  6107348F  (0003, 0A0501F8, 0400, 2CF91218)
??:0
0022EEE0  00401672  (0A0501F8, 0400, 0022EFA0, 00402022)
??:0
0022EFA0  0040202E  (0002, 617E2CB8, 0A0500A8, 0022EFF8)
??:0
0022EFE0  610054DD  (0022EFF8, , 0002, 0003)
/usr/build/obj/i686-pc-cygwin/winsup/cygwin/../../../../src/winsup/cygwin/dc
rt0.cc:861
0022FF60  61005603  (, , , )
/usr/build/obj/i686-pc-cygwin/winsup/cygwin/../../../../src/winsup/cygwin/dc
rt0.cc:916
End of stack trace


  Hmmph.  Calling strlen on a NULL pointer.  D'oh!

void __stdcall
fhandler_dev_clipboard::read (void *ptr, size_t& len)
{
  HGLOBAL hglb;
  size_t ret;
  UINT formatlist[2];
  UINT format;
  if (eof)
len = 0;
  else
{
  formatlist[0] = cygnativeformat;
  formatlist[1] = current_codepage == ansi_cp ? CF_TEXT : CF_OEMTEXT;
  OpenClipboard (0);
  if ((format = GetPriorityClipboardFormat (formatlist, 2)) <= 0)
{
  CloseClipboard ();
#if 0
  system_printf ("a non-accepted format! %d", format);
#endif
  len = 0;
}
  else
{
  hglb = GetClipboardData (format);
  if (format == cygnativeformat)
{
  unsigned char *buf = (unsigned char *) GlobalLock (hglb);
  size_t buflen = (*(size_t *) buf);
  ret = ((len > (buflen - pos)) ? (buflen - pos) : len);
  memcpy (ptr, buf + sizeof (size_t)+ pos , ret);
  pos += ret;
  if (pos + len - ret >= buflen)
eof = true;
  GlobalUnlock (hglb);
}
  else
{
  LPSTR lpstr;
  lpstr = (LPSTR) GlobalLock (hglb);

  ret = ((len > (strlen (lpstr) - pos)) ? (strlen (lpstr) - pos)
 : len);

  So, GetClipboardData is failing and returning NULL.


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
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: Seg Fault while using /dev/clipboard

2005-03-04 Thread Dave Korn
Original Message
>From: Dave Korn
>Sent: 04 March 2005 17:14

> hglb = GetClipboardData (format);

> 
>   So, GetClipboardData is failing and returning NULL.


... yet bizarrely, GetLastError returns zero.  Oh dear.


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
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: Seg Fault while using /dev/clipboard

2005-03-04 Thread Igor Pechtchanski
On Fri, 4 Mar 2005, Igor Pechtchanski wrote:

> [Switching to thread 1 (thread 9564.0x24fc)]#0  0x610b3df1 in strlen ()
> at /usr/src/cygwin-cvs/src/winsup/cygwin/cygserver.h:82
 
Whoops, this is obviously wrong.  Note to self: never post gdb output in a
hurry...  Thanks to Dave for the concise (and much more accurate)
analysis.
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

--
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: Seg Fault while using /dev/clipboard

2005-03-04 Thread Dave Korn
Original Message
>From: Dave Korn
>Sent: 04 March 2005 17:19

> Original Message
>> From: Dave Korn
>> Sent: 04 March 2005 17:14
> 
>>hglb = GetClipboardData (format);
> 
>> 
>>   So, GetClipboardData is failing and returning NULL.
> 
> 
> ... yet bizarrely, GetLastError returns zero.  Oh dear.
> 


  Ah.  format == -1.


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
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: Seg Fault while using /dev/clipboard

2005-03-04 Thread Dave Korn
Original Message
>From: Dave Korn
>Sent: 04 March 2005 17:14

>   UINT format;

>   if ((format = GetPriorityClipboardFormat (formatlist, 2)) <= 0)


  LOL!



cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
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: Listing services

2005-03-04 Thread David Rothenberger
On 3/4/2005 3:50 AM, Colin JN Breame wrote:
Hello,
Anyone know how to list the names and descriptions of all the services on the
system?
Cheers,
I do it with the following script which uses /proc.
--
David Rothenbergerspammer? -> [EMAIL PROTECTED]
GPG/PGP: 0x7F67E734, C233 365A 25EF 2C5F C8E1 43DF B44F BA26 7F67 E734
  This page intentionally left blank.
#!/bin/sh
usage() {
  cat <

signature.asc
Description: OpenPGP digital signature


RE: Seg Fault while using /dev/clipboard

2005-03-04 Thread Dave Korn
Original Message
>From: Dave Korn
>Sent: 04 March 2005 17:27

> Original Message
>> From: Dave Korn
>> Sent: 04 March 2005 17:14
> 
>>   UINT format;
> 
>>   if ((format = GetPriorityClipboardFormat (formatlist, 2)) <= 0)
> 
> 
>   LOL!


  Dunno why the compiler didn't warn.  This seems to fix it ok.  Attached as
well, in case of line wrap.


[EMAIL PROTECTED] /usr/build/src> cat /dev/clipboard
[EMAIL PROTECTED] /usr/build/src> echo $?
0
[EMAIL PROTECTED] /usr/build/src>

Index: winsup/cygwin/fhandler_clipboard.cc
===
RCS file: /cvs/src/src/winsup/cygwin/fhandler_clipboard.cc,v
retrieving revision 1.27
diff -p -u -r1.27 fhandler_clipboard.cc
--- winsup/cygwin/fhandler_clipboard.cc 1 Mar 2005 11:51:28 -   1.27
+++ winsup/cygwin/fhandler_clipboard.cc 4 Mar 2005 17:31:45 -
@@ -198,7 +198,7 @@ fhandler_dev_clipboard::read (void *ptr,
   formatlist[0] = cygnativeformat;
   formatlist[1] = current_codepage == ansi_cp ? CF_TEXT : CF_OEMTEXT;
   OpenClipboard (0);
-  if ((format = GetPriorityClipboardFormat (formatlist, 2)) <= 0)
+  if ((int)(format = GetPriorityClipboardFormat (formatlist, 2)) <= 0)
{
  CloseClipboard ();
 #if 0

cheers,
  DaveK
-- 
Can't think of a witty .sigline today


fix-clip-bug.diff
Description: Binary data
--
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: CSAgent warning with setup.exe

2005-03-04 Thread Max Bowsher
Will Parsons wrote:
I have cygwin 1.5.13 installed on the my WinXP machine at work.  The IT
department apparently has recently installed Cisco Security Agent and now
when I run setup.exe I get a warning message that setup.exe "tried to make
system call from self-modifying code" and that this may mean the program
has been subverted by a buffer overflow attack.
Is this true and if so is it something I should worry about?
setup.exe does contain some legitimate self-modifying code (in autoload.c if 
anyone is interested).

So, it's fairly likely this is a false alarm.
Max.
--
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: [ANNOUNCEMENT] New package: psmisc-21.5-1

2005-03-04 Thread Max Bowsher
Corinna Vinschen wrote:
On Mar  4 14:34, Max Bowsher wrote:
Corinna Vinschen wrote:
  --datadir=$(prefix)/share \
  --mandir=$(prefix)/share/man \
Shouldn't those be braces, not parentheses?
I'm using parenthesis, because they are not expanded before put into
the Makefile.  So they refer to the Makefile variable prefix and a
later
 make prefix=/foo
changes all depending variables.
OK. Some configures do try to evaluate them, though (against autoconf 
guidelines, I know, since it breaks the make prefix=... thing).

Max.
--
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: Seg Fault while using /dev/clipboard

2005-03-04 Thread Corinna Vinschen
Dave,

On Mar  4 17:35, Dave Korn wrote:
>   Dunno why the compiler didn't warn.  This seems to fix it ok.  Attached as
> well, in case of line wrap.

any reason you're not following the usual patch guidelines like, say,
sending the patch to cygwin-patches and, that's even more important,
adding a ChangeLog entry?


Corinna

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

--
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: Seg Fault while using /dev/clipboard

2005-03-04 Thread Dave Korn
Original Message
>From: Corinna Vinschen
>Sent: 04 March 2005 17:57

> Dave,
> 
> On Mar  4 17:35, Dave Korn wrote:
>>   Dunno why the compiler didn't warn.  This seems to fix it ok. 
>> Attached as well, in case of line wrap.
> 
> any reason you're not following the usual patch guidelines like, say,
> sending the patch to cygwin-patches and, that's even more important,
> adding a ChangeLog entry?


  Sheer absent mindedness.  I'll resend to the -patches list, with, as you
say, a changelog.

cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
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: Seg Fault while using /dev/clipboard

2005-03-04 Thread Christopher Faylor
On Fri, Mar 04, 2005 at 06:03:38PM -, Dave Korn wrote:
>Original Message
>>From: Corinna Vinschen
>>Sent: 04 March 2005 17:57
>
>> Dave,
>> 
>> On Mar  4 17:35, Dave Korn wrote:
>>>   Dunno why the compiler didn't warn.  This seems to fix it ok. 
>>> Attached as well, in case of line wrap.
>> 
>> any reason you're not following the usual patch guidelines like, say,
>> sending the patch to cygwin-patches and, that's even more important,
>> adding a ChangeLog entry?
>
>  Sheer absent mindedness.  I'll resend to the -patches list, with, as you
>say, a changelog.

I just checked in a patch which changes the UINTs to int's as that is
what is actually returned by GetPriorityClipboardFormat.  I assume that
will fix this problem.

cgf

--
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: chere doesn't cd to directory

2005-03-04 Thread Dave
>Wayne Johnson  yahoo.com> writes:
>
>> One problem though.  Where I do the chere "Bash here" menu entry, it starts 
>> the bash in the home directory.  I dug through the xhere script and found the
>> "export CHERE_DIR=`cygpath -u $2`" commented out.  If I comment it back in, I
>> get an error because the registry entry didn't pass in the directory name as
>> $2.

Mmmm. Leftovers. I'll clean that out in the next release.

CHere didn't work because you either have an old or custom /etc/profile.

> In /etc/profile I need to replace the line:
>
> 

Yes, that does the job, but not completely.

Look for the correct snippet in a recent /etc/defaults/etc/profile (part of the
base-files package). If you don't have other modifications in /etc/profile copy
the default file, which was updated recently. This also means you will pick up
further base-files modifications when they are released.

>Whether this will fix it for all shells, I'm not sure.

The cd occurs in /etc/profile for bash, ash, and pdksh; /etc/zprofile for zsh;
/etc/csh.login for tcsh.

An appropriate modification for zprofile can be found in
/usr/share/doc/zsh-/StartupFiles/etc/zprofile (installed with zsh).
zprofile is updated in a similar way to profile, so use the default if you want
to pick up updates.

Appropriate modifications for csh.login should appear in the next release. They
are similar to that in profile.

>Thanks for a great utility.

Not a problem.


Dave.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--
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: installing cygwin (for C++)

2005-03-04 Thread arjun
hi,
 Thanks a lot for the reply.I installed everything in the "Devel" category.
 However,when I try to compile a cpp file using "g++ filename.cpp" Iam
getting the following error:

 /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld:
cannot
find -luser32
collect2: ld returned 1 exit status

 can you plz help me out with this.

Arjun.

> On Fri, 4 Mar 2005, arjun wrote:
>
>> Hi,
>>   I want to know what all pacakegs I need to install to be able to
>> compile
>> and run C++ programs.
>
> What you need is the GNU C++ compiler (g++).  Search the Cygwin packages
> for 'g++' on the package search page at .
> Remember, the search string is a full regular expression, so '+'s need to
> be escaped with '\'s.  It's also helpful to prepend "bin/" to the
> executable name.
>
> See also .
>
>> Can you also please suggest mirrors which contain these.Iam installing
>> using setup.exe
>
> All of the mirrors on the official mirror list[*] should contain the
> necessary packages.
>   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
>



--
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: installing cygwin (for C++)

2005-03-04 Thread Brian Dessent
[EMAIL PROTECTED] wrote:

>  Thanks a lot for the reply.I installed everything in the "Devel" category.
>  However,when I try to compile a cpp file using "g++ filename.cpp" Iam
> getting the following error:
> 
>  /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld:
> cannot
> find -luser32
> collect2: ld returned 1 exit status
> 
>  can you plz help me out with this.

As the package search reveals (try using it!) you need the w32api
package.

However, this package is listed as a dependency of gcc so it should have
been selected when you selected gcc.  Perhaps you used setup in such as
way as to override its choices, which is not a good idea.  If setup
picks packages that you think you don't need when you select something
that you do need, keep those selections.

Brian

--
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: Buiding net-snmp perl in cygwin - Please anyone help me

2005-03-04 Thread Gerrit P. Haase
Hi,
comments below.
Currently I uninstalled activeperl and I am having cygwin perl alone and
correspondingly I changed the Path variable to D:\cygwin\bin.
Herewith I am attcahing the output of "perl Makefile.PL", "make" 

$ make
[...snip...]
LD_RUN_PATH="" ld2  -s -L/usr/local/lib agent.o  -o 
.../blib/arch/auto/NetSNMP/agent/agent.dll /usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a 
-L/usr/local/lib -lnetsnmpagent -lnetsnmpmibs -lnetsnmphelpers -lnetsnmp -lm
gcc -shared -o agent.dll -Wl,--out-implib=libagent.dll.a 
-Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 \
-s -L/usr/local/lib agent.o /usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a 
-L/usr/local/lib -lnetsnmpagent -lnetsnmpmibs -lnetsnmphelpers -lnetsnmp -lm
Creating library file: libagent.dll.a
/usr/local/lib/libnetsnmpmibs.a(udpTable.o)(.text+0x580): In function 
`udpTable_load':/cygdrive/d/net-snmp-5.2.1/agent/mibgroup/mibII/udpTable.c:568: 
undefined reference to [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a(udpTable.o)(.text+0x726):/cygdrive/d/net-snmp-5.2.1/agent/mibgroup/mibII/udpTable.c:575:
 undefined reference to [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a(tcpTable.o)(.text+0x65a): In function 
`tcpTable_load':/cygdrive/d/net-snmp-5.2.1/agent/mibgroup/mibII/tcpTable.c:659: 
undefined reference to [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a(tcpTable.o)(.text+0x828):/cygdrive/d/net-snmp-5.2.1/agent/mibgroup/mibII/tcpTable.c:666:
 undefined reference to [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a(var_route.o)(.text+0x39e): In function 
`var_ipRouteEntry':/cygdrive/d/net-snmp-5.2.1/agent/mibgroup/mibII/var_route.c:1492:
 undefined reference to [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a(var_route.o)(.text+0x5a9):/cygdrive/d/net-snmp-5.2.1/agent/mibgroup/mibII/var_route.c:1499:
 undefined reference to [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a(extend.o)(.text+0x537): In function 
`extend_load_cache':/cygdrive/d/net-snmp-5.2.1/agent/mibgroup/agent/extend.c:218:
 undefined reference to `_run_shell_command'
/usr/local/lib/libnetsnmpmibs.a(extend.o)(.text+0x6a1):/cygdrive/d/net-snmp-5.2.1/agent/mibgroup/agent/extend.c:220:
 undefined reference to `_run_exec_command'
/usr/local/lib/libnetsnmpmibs.a(extensible.o)(.text+0x9b7): In function 
`var_extensible_shell':/cygdrive/d/net-snmp-5.2.1/agent/mibgroup/ucd-snmp/extensible.c:470:
 undefined reference to `_run_shell_command'
/usr/local/lib/libnetsnmpmibs.a(extensible.o)(.text+0xa60):/cygdrive/d/net-snmp-5.2.1/agent/mibgroup/ucd-snmp/extensible.c:467:
 undefined reference to `_run_exec_command'
/usr/local/lib/libnetsnmpmibs.a(extensible.o)(.text+0xab4):/cygdrive/d/net-snmp-5.2.1/agent/mibgroup/ucd-snmp/extensible.c:459:
 undefined reference to `_run_shell_command'
/usr/local/lib/libnetsnmpmibs.a(extensible.o)(.text+0xaef):/cygdrive/d/net-snmp-5.2.1/agent/mibgroup/ucd-snmp/extensible.c:456:
 undefined reference to `_run_exec_command'
/usr/local/lib/libnetsnmpmibs.a(extensible.o)(.text+0xfa3): In function 
`var_extensible_relocatable':/cygdrive/d/net-snmp-5.2.1/agent/mibgroup/ucd-snmp/extensible.c:597:
 undefined reference to `_run_shell_command'
/usr/local/lib/libnetsnmpmibs.a(extensible.o)(.text+0x10d4):/cygdrive/d/net-snmp-5.2.1/agent/mibgroup/ucd-snmp/extensible.c:594:
 undefined reference to `_run_exec_command'
/usr/local/lib/libnetsnmpmibs.a(extensible.o)(.text+0x114c):/cygdrive/d/net-snmp-5.2.1/agent/mibgroup/ucd-snmp/extensible.c:587:
 undefined reference to `_run_shell_command'
/usr/local/lib/libnetsnmpmibs.a(extensible.o)(.text+0x1193):/cygdrive/d/net-snmp-5.2.1/agent/mibgroup/ucd-snmp/extensible.c:584:
 undefined reference to `_run_exec_command'
/usr/local/lib/libnetsnmpmibs.a(udp.o)(.text+0x491): In function 
`udp_load':/cygdrive/d/net-snmp-5.2.1/agent/mibgroup/mibII/udp.c:462: undefined 
reference to [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a(icmp.o)(.text+0x541): In function 
`icmp_load':/cygdrive/d/net-snmp-5.2.1/agent/mibgroup/mibII/icmp.c:669: 
undefined reference to [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a(tcp.o)(.text+0x521): In function 
`tcp_load':/cygdrive/d/net-snmp-5.2.1/agent/mibgroup/mibII/tcp.c:649: undefined 
reference to [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a(ip.o)(.text+0x811): In function 
`ip_load':/cygdrive/d/net-snmp-5.2.1/agent/mibgroup/mibII/ip.c:748: undefined 
reference to [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a(interfaces.o)(.text+0x1c3): In function 
`header_ifEntry':/cygdrive/d/net-snmp-5.2.1/agent/mibgroup/mibII/interfaces.c:2562:
 undefined reference to [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a(interfaces.o)(.text+0x4ad):/cygdrive/d/net-snmp-5.2.1/agent/mibgroup/mibII/interfaces.c:2573:
 undefined reference to [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a(interfaces.o)(.text+0x5d9): In function 
`var_interfaces':/cygdrive/d/net-snmp-5.2.1/agent/mibgroup/mibII/interfaces.c:2621:
 undefined reference to [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a

Re: Listing services

2005-03-04 Thread GD
Al Slater wrote:
Colin JN Breame wrote:
| Anyone know how to list the names and descriptions of all the services
on the system?
psservice in pstools package at http://www.sysinternals.com will do that
and more.
$ psservice.exe query sshd
PsService v2.13 - Service information and configuration utility
Copyright (C) 2001-2004 Mark Russinovich
Sysinternals - www.sysinternals.com
SERVICE_NAME: sshd
DISPLAY_NAME: sshd
(null)
   TYPE  : 10 WIN32_OWN_PROCESS
   STATE : 1  STOPPED
  (NOT_STOPPABLE,NOT_PAUSABLE,IGNORES_SHUTDOWN)
   ^
   WIN32_EXIT_CODE   : 1077 (0x435)
   SERVICE_EXIT_CODE : 0  (0x0)
   CHECKPOINT: 0x0
   WAIT_HINT : 0x0
Hmmm.  Maybe this really means the folks at Cygwin are unstoppable?
;-)
As an alternative to the pstools, there's a Perl module named 
Win32::Service that you can use to write your own custom approach.


--
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: Buiding net-snmp perl in cygwin - Please anyone help me

2005-03-04 Thread Yitzchak Scott-Thoennes
On Fri, Mar 04, 2005 at 09:12:41PM +0100, Gerrit P. Haase wrote:
> 
> If this all fails, the submit a bug report to the address which should
> be included in the README file.

Even if that all succeeds, send a bug report.

--
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: Listing services

2005-03-04 Thread Brian Dessent
David Rothenberger wrote:

> I do it with the following script which uses /proc.

That's an interesting script but it has a couple of deficiencies.  It
does not list services with names that start with a "." and it breaks on
services with a space in the name when -n is used.  It's also very slow
with -n, as there's no need to invoke awk once for each service, and
using forking /bin/cat to read each description is costly.

Here's a slightly tweaked version that fixes the above problems and runs
about 30 times faster.  (0m13.722s down to 0m0.489s on my system at
least.)

#!/bin/sh

usage() {
  cat 

RE: stupid noobquestion(clear)

2005-03-04 Thread Buchbinder, Barry (NIH/NIAID)
At Tuesday, March 01, 2005 10:34 AM, Alexander Thurban wrote:
> Is there a command for clearing the console?
> Can't get cls,clr,clear to work :(

There is a package named "clear" that you can download and install using
setup.  One can find it under "Utils".

I've also got the following in my .bashrc:

alias cls='echo -n ^[[2J'

--
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/



windowsscriptinghost

2005-03-04 Thread Alexander Thurban
How do I run wsh-files from cygwin? In cmd.exe I can just write 
nameofthescript.vbs to run it.

--
"The surest way to corrupt a youth is to instruct him to hold in
higher esteem those who think alike than those who think differently."
- Friedrich Nietzsche
--
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: windowsscriptinghost

2005-03-04 Thread Brian Dessent
Alexander Thurban wrote:

> How do I run wsh-files from cygwin? In cmd.exe I can just write
> nameofthescript.vbs to run it.

"cygstart nameofthescript.vbs" or "cmd nameofthescript.vbs" should work.

Brian

--
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/



1.5.13: ssh -2 to sshd fails

2005-03-04 Thread Isaiah
I installed openssh on a host (cygwin.out-ad1 attached), used
ssh-host-config -y.  After starting the service, when I tried to ssh to it,
I received the error message:

Read from socket failed: Connection reset by peer

This was puzzling, because it worked fine on another host several
months earlier (cygwin.out-mx1 attached).

Both have default sshd_config files, so protocol 1 and 2 are active.

ssh -1 from unix clients succeeds to the problematic host.  ssh -2 from
itself succeeds on the problematic host (interesting!).  ssh -2 from unix
clients fails to the problematic host.  ssh -2 from other cygwin ssh
clients also fails to the problematic host.

Using verbose options with the ssh clients did not yield helpful
information.  

Starting sshd with -ddd appeared to change behavior slightly; the
server would stop the service after each failed ssh attempt.  By design?
I've attached the sshd.log from a single start-and-fail-then-die.

There are no firewalls involved.

I would really like -2 to succeed.  Is there more information I can
provide to help?

Thanks for your time in advance,
-- 
- Isaiah


Cygwin Configuration Diagnostics

Current System Time: Fri Mar 04 12:16:38 2005



Windows .NET Server Ver 5.2 Build 3790 



Path:   C:\cygwin\usr\local\bin

C:\cygwin\bin

C:\cygwin\bin

C:\cygwin\usr\X11R6\bin

c:\Program Files\Support Tools\

c:\WINDOWS\system32

c:\WINDOWS

c:\WINDOWS\System32\Wbem

C:\cygwin\bin



Output from C:\cygwin\bin\id.exe (nontsec)

UID: 500(Administrator) GID: 513(Domain Users)

513(Domain Users)



Output from C:\cygwin\bin\id.exe (ntsec)

UID: 500(Administrator) GID: 513(Domain Users)

0(root) 513(Domain Users)

544(Administrators) 554(Pre-Windows 2000 Compatible Access)

545(Users)  1605(PasswordPropDeny)

10545(mkgroup_l_d)



SysDir: C:\WINDOWS\system32

WinDir: C:\WINDOWS



CYGWIN = `ntsec'

HOME = `C:\cygwin\home\Administrator'

MAKE_MODE = `unix'

PWD = `/home/Administrator'

USER = `Administrator'



ALLUSERSPROFILE = `C:\Documents and Settings\All Users'

CLUSTERLOG = `C:\WINDOWS\Cluster\cluster.log'

COMMONPROGRAMFILES = `C:\Program Files\Common Files'

COMPUTERNAME = `AD1'

COMSPEC = `C:\WINDOWS\system32\cmd.exe'

CVS_RSH = `/bin/ssh'

HOMEDRIVE = `C:'

HOMEPATH = `\cygwin\home\Administrator'

HOSTNAME = `AD1'

INFOPATH = 
`/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:'

LOGNAME = `Administrator'

LOGONSERVER = `\\AD1'

MAIL = `/var/spool/mail/Administrator'

MANPATH = 
`/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man'

NUMBER_OF_PROCESSORS = `2'

OLDPWD = `/home/Administrator'

OS = `Windows_NT'

PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'

PRINTER = `rugby on pdc (from ISIT) in session 2'

PROCESSOR_ARCHITECTURE = `x86'

PROCESSOR_IDENTIFIER = `x86 Family 15 Model 3 Stepping 4, GenuineIntel'

PROCESSOR_LEVEL = `15'

PROCESSOR_REVISION = `0304'

PROGRAMFILES = `C:\Program Files'

PS1 = `\[\033]0;\w\007

[EMAIL PROTECTED] \[\033[33m\w\033[0m\]

$ '

SHELL = `/bin/bash'

SHLVL = `1'

SSH_CLIENT = `10.123.4.150 38775 22'

SSH_CONNECTION = `10.123.4.150 38775 10.123.10.10 22'

SSH_TTY = `/dev/tty0'

SYSTEMDRIVE = `C:'

SYSTEMROOT = `C:\WINDOWS'

TEMP = `c:\DOCUME~1\SSHD_S~1\LOCALS~1\Temp'

TERM = `xterm'

TMP = `c:\DOCUME~1\SSHD_S~1\LOCALS~1\Temp'

TZ = `PST8PDT7,M4.1.0/2,M10.5.0/2'

USERDNSDOMAIN = `DDNS.AGAMI.COM'

USERDOMAIN = `DDNS'

USERNAME = `Administrator'

USERPROFILE = `C:\Documents and Settings\Administrator.AD1'

WINDIR = `C:\WINDOWS'

_ = `/usr/bin/cygcheck'

POSIXLY_CORRECT = `1'



HKEY_CURRENT_USER\Software\Cygnus Solutions

HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin

HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2

HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options

HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions

HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin

HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2

  (default) = `/cygdrive'

  cygdrive flags = 0x0022

HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/

  (default) = `C:\cygwin'

  flags = 0x000a

HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin

  (default) = `C:\cygwin/bin'

  flags = 0x000a

HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib

  (default) = `C:\cygwin/lib'

  flags = 0x000a

HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options



a:  fd N/AN/A

c:  hd  NTFS 34710Mb  14% CP CS UN PA FC C_Drive

d:  cd N/AN/A



C:\cygwin  /  system  binmode

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

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

.  /cygdrive  system  bin

Bug diff 2.8.7: Separate dir

2005-03-04 Thread Arend-Jan Westhoff
Noticed that when diff is run with two differing files,
one with and one without a directory specifier:
diff a someDir\b
then all lines are reported as different.
Whereas when both have a directory specifier:
diff .\a someDir\b
output is normal.
(Filenames, argument order or using -d seem irrelevant.
Using / instead of \ makes output normal also:
diff a someDir/b
output is normal.
Similarly when comparing a and someDir\a as:
diff a someDir
output is also normal.
)

As an illustration I have provide a sample batch file.
(It creates up to two directories and two files):
**
@echo off
setlocal

set bugdir=showSeparateDirDiffBug
if not exist %bugdir%\ md %bugdir%
pushd %bugdir%

set subdir=adir
if not exist %subdir%\ md %subdir%

set file1=a
set file2=%subdir%\%file1%

echo a>%file1%
echo a>>%file1%
echo a>>%file1%

echo a>%file2%
echo b>>%file2%
echo a>>%file2%

echo This batch file: %0
echo.
diff --version
rem Bug
rem same: diff -d %file1% %file2%
diff %file1% %file2%
rem OK
diff .\%file1% %file2%

popd
endlocal
**
I expect this to run as is on a not too old version of the Windows NT
line of OS.
On my Windows 2000 system this produces the following output:
*
This batch file: separateDirDiffBug.bat

diff (GNU diffutils) 2.8.7
Written by Paul Eggert, Mike Haertel, David Hayes,
Richard Stallman, and Len Tower.

Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1,3c1,3
< a
< a
< a
---
> a
> b
> a
2c2
< a
---
> b
*
Since the relevant factor seems to be a directory specifier this bug is
probably Cygwin specific.

(Btw I used a batch file so that the only Cygwin functionality used would be 
directly bug related for clarity. If there is a different format that would
make
it easier to add to the testscripts that are used for the automatic testing
of 
these utilities please provide me with an example so I can model future
similar bugreports along those lines.)


--
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: Bug diff 2.8.7: Separate dir

2005-03-04 Thread Brian Dessent
Arend-Jan Westhoff wrote:
> 
> Noticed that when diff is run with two differing files,
> one with and one without a directory specifier:
> diff a someDir\b
> then all lines are reported as different.
> Whereas when both have a directory specifier:
> diff .\a someDir\b
> output is normal.
> (Filenames, argument order or using -d seem irrelevant.
> Using / instead of \ makes output normal also:
> diff a someDir/b
> output is normal.
> Similarly when comparing a and someDir\a as:
> diff a someDir
> output is also normal.
> )

I cannot reproduce this, either from a bash prompt or from cmd using
your .bat file:

$ cat a
a
a
a

$ cat somedir\\b
a
b
a

$ diff a somedir\\b
2c2
< a
---
> b

The batch file outputs:

This batch file: diffbugtest.bat

diff (GNU diffutils) 2.8.7
Written by Paul Eggert, Mike Haertel, David Hayes,
Richard Stallman, and Len Tower.

Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
2c2
< a
---
> b
2c2
< a
---
> b


It's probably a textmode/binmode issue, though I don't know why
switching between '\' and '/' as the path seperator changes it --
although the Cygwin path handling code is complex and I can't pretend to
understand it.

There was no attached cygcheck so I don't know how your mounts are setup
but from what I've read, using textmode mounts with tools like cvs and
diff is a recipe for disaster.

Brian

--
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: windowsscriptinghost

2005-03-04 Thread Andrew DeFaria
Brian Dessent wrote:
Alexander Thurban wrote:
How do I run wsh-files from cygwin? In cmd.exe I can just write 
nameofthescript.vbs to run it.
"cygstart nameofthescript.vbs" or "cmd nameofthescript.vbs" should work.
As should "cscript nameofthescript.vbs" and/or "wscript 
nameofthescript.vbs".

--
Alzheimer's advantage: New friends every day.
--
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/


Exim says TCP port "smtp" not found

2005-03-04 Thread John Kim
I just downloaded & installed Cygwin w/ Exim on a Windows 2000 box and...
 - ran exim-conf successfully
 - chmod-ed all the log files & directories to SYSTEM:root
 - created the /var/mail and /var/spool/mail directories.
When I try to start exim service ("net start exim" from Cygwin bash shell) 
it says that it cannot be started. When I look in the log files, it says (in 
cygrunsrv_err.log):
 TCP port "smtp" not found.

I looked in /etc/services and SMTP at port 25 is there (I hadn't touched the 
file to begin with).

What should I do?
-John 

--
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: Exim says TCP port "smtp" not found (here's my cygcheck.out)

2005-03-04 Thread John Kim
Oops, I forgot to attach cygcheck out, as advised. Profuse apologies.
-John
---
Cygwin Configuration Diagnostics
Current System Time: Fri Mar 04 17:56:28 2005
Windows 2000 Server Ver 5.0 Build 2195 Service Pack 4
Path: C:\cygwin\lib\subversion\bin
C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
C:\cygwin\usr\X11R6\bin
c:\Perl\bin
c:\WINNT\system32
c:\WINNT
c:\WINNT\System32\Wbem
c:\Sun\AppServer\jdk\bin
c:\apache\ant\bin
c:\mapserver\bin
c:\mapserver\lib
c:\arcgis\arcexe83\bin
c:\Program Files\Darwin Streaming Server
c:\MATLAB7\bin\win32
C:\cygwin\bin
.\
Output from C:\cygwin\bin\id.exe (nontsec)
UID: 500(Administrator) GID: 513(None)
513(None)
Output from C:\cygwin\bin\id.exe (ntsec)
UID: 500(Administrator) GID: 513(None)
0(root) 513(None)   544(Administrators)
SysDir: C:\WINNT\system32
WinDir: C:\WINNT
CYGWIN = `ntsec tty'
HOME = `C:\cygwin\home\Administrator'
MAKE_MODE = `unix'
PWD = `/var/log/exim'
USER = `Administrator'
ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
ANT_HOME = `C:\apache\ant'
APPDATA = `C:\Documents and Settings\Administrator\Application Data'
ARCHOME = `C:\arcgis\arcexe83'
ARCHOME_USER = `C:\arcgis\arcexe83'
ARCINFOFONTNAME = `Courier New'
ARCINFOFONTSIZE = `8'
ATHOME = `C:\arcgis\arcexe83\arctools'
CLIENTNAME = `JOHNKIM'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `DRAGONFLY'
COMSPEC = `C:\WINNT\system32\cmd.exe'
CVS_RSH = `/bin/ssh'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\Administrator'
HOSTNAME = `dragonfly'
INFOPATH = 
`/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:'
JAVA_HOME = `C:\Sun\AppServer\jdk'
LOGONSERVER = `\\DRAGONFLY'
MANPATH = 
`/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man:/usr/X11R6/man'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/var/log'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PKG_CONFIG_PATH = `/usr/X11R6/lib/pkgconfig'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 11 Stepping 1, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0b01'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
PS1 = `\[\033]0;\w\007
[EMAIL PROTECTED] \[\033[33m\w\033[0m\]
$ '
SESSIONNAME = `RDP-Tcp#2'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TEMP = `C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\1'
TERM = `cygwin'
TMP = `C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\1'
USERDOMAIN = `DRAGONFLY'
USERNAME = `dragonflyadmin'
USERPROFILE = `C:\Documents and Settings\Administrator'
WINDIR = `C:\WINNT'
_ = `/usr/bin/cygcheck'
POSIXLY_CORRECT = `1'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
 (default) = `/cygdrive'
 cygdrive flags = 0x0022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
 (default) = `C:\cygwin'
 flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/edtFTPD
 (default) = 0x0008
 native = `C:\edtFTPD\'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
 (default) = `C:\cygwin/bin'
 flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
 (default) = `C:\cygwin/lib'
 flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts 
v2\/usr/X11R6/lib/X11/fonts
 (default) = `C:\cygwin\usr\X11R6\lib\X11\fonts'
 flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd N/AN/A
c:  hd  NTFS 38154Mb  25% CP CS UN PA FC System (IDE)
d:  hd  NTFS 38162Mb   1% CP CS UN PA FC Backup (IDE)
e:  cd N/AN/A
f:  hd  NTFS 35000Mb  13% CP CS UN PA FC Data
Warning: Mount entries should not have a trailing (back)slash
C:\cygwin  / system  binmode
C:\edtFTPD\/edtFTPD  system 
textmode
C:\cygwin/bin  /usr/bin  system  binmode
C:\cygwin/lib  /usr/lib  system  binmode
C:\cygwin\usr\X11R6\lib\X11\fonts  /usr/X11R6/lib/X11/fonts  system  binmode
.  /cygdrive system 
binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Fou

Running Tomcat on Cygwin

2005-03-04 Thread Rahul Joshi
  I am new to Cygwin.
 
I want to run JSP/servlets using Tomcat on Cygwin. Is
there a special version of Tomcat that I need to
download? 
 
Is there any documentation about running Tomcat on
Cygwin?
 
Thanks!





__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

--
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/



passwordless ssh (2) failing

2005-03-04 Thread Charles Galpin
Hi Folks
This should not be a cygwin issue, but I am completely stumped, so I 
thought I had better rule this out.

I have two identical windows 2003 servers with cygwin and openssh 
installed. On one, my passwordless key which I use on other linux 
servers primarily, allows me to ssh to the windows server no problem. 
The second "problem" box fails with the error below. I installed 
openssh the same way with privilege seperation, and have verified all 
permissions are identical. The entire .ssh directory is a copy from the 
"good" box.

Any and all advise welcomed, even if it is to tell me that this is no 
way in hell related to windows/cygwin/openssh

thanks
charles
#  ssh -v [EMAIL PROTECTED]
OpenSSH_3.5p1, SSH protocols 1.5/2.0, OpenSSL 0x0090701f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Rhosts Authentication disabled, originating port will not be 
trusted.
debug1: ssh_connect: needpriv 0
debug1: Connecting to mybox [1.2.3.4] port 22.
debug1: Connection established.
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type 1
debug1: identity file /root/.ssh/id_dsa type 2
debug1: Remote protocol version 1.99, remote software version 
OpenSSH_3.9p1
debug1: match: OpenSSH_3.9p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.5p1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: dh_gen_key: priv key bits set: 143/256
debug1: bits set: 1011/2048
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'mybox' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:138
debug1: bits set: 1035/2048
debug1: ssh_rsa_verify: signature correct
debug1: kex_derive_keys
debug1: newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: waiting for SSH2_MSG_NEWKEYS
debug1: newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: done: ssh_kex2.
debug1: send SSH2_MSG_SERVICE_REQUEST
debug1: service_accept: ssh-userauth
debug1: got SSH2_MSG_SERVICE_ACCEPT
debug1: authentications that can continue: 
publickey,password,keyboard-interactive
debug1: next auth method to try is publickey
debug1: try privkey: /root/.ssh/identity
debug1: try pubkey: /root/.ssh/id_rsa
Read from socket failed: Connection reset by peer
debug1: Calling cleanup 0x80674e0(0x0)

On the "good" box, after the 'try pubkey' I get
debug1: input_userauth_pk_ok: pkalg ssh-rsa blen 149 lastkey 0x80902d8 
hint 1
debug1: read PEM private key done: type RSA
debug1: ssh-userauth2 successful: method publickey
debug1: channel 0: new [client-session]
debug1: send channel open 0
debug1: Entering interactive session.
debug1: ssh_session2_setup: id 0
debug1: channel request 0: pty-req
debug1: channel request 0: shell
debug1: fd 3 setting TCP_NODELAY
debug1: channel 0: open confirm rwindow 0 rmax 32768
Last login: Fri Mar  4 21:30:08 2005 from 4.3.2.1

--
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: chere doesn't cd to directory

2005-03-04 Thread Igor Pechtchanski
On Fri, 4 Mar 2005, Dave wrote:

> CHere didn't work because you either have an old or custom /etc/profile.
>
> > In /etc/profile I need to replace the line:
> >
> > 
>
> Yes, that does the job, but not completely.
>
> Look for the correct snippet in a recent /etc/defaults/etc/profile (part
> of the base-files package). If you don't have other modifications in
> /etc/profile copy the default file, which was updated recently. This
> also means you will pick up further base-files modifications when they
> are released.
>
> >Whether this will fix it for all shells, I'm not sure.
>
> The cd occurs in /etc/profile for bash, ash, and pdksh; /etc/zprofile
> for zsh; /etc/csh.login for tcsh.
>
> An appropriate modification for zprofile can be found in
> /usr/share/doc/zsh-/StartupFiles/etc/zprofile (installed with zsh).
> zprofile is updated in a similar way to profile, so use the default if
> you want to pick up updates.
>
> Appropriate modifications for csh.login should appear in the next
> release. They are similar to that in profile.

Dave,

I don't recall if this was part of the discussion, but any particular
reason you're not doing this in a /etc/profile.d script instead?  That
way, it would work even with a custom /etc/profile.
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

--
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: Bug diff 2.8.7: Separate dir

2005-03-04 Thread Igor Pechtchanski
On Fri, 4 Mar 2005, Brian Dessent wrote:

> Arend-Jan Westhoff wrote:
> >
> > Noticed that when diff is run with two differing files,
> > one with and one without a directory specifier:
> > diff a someDir\b
> > then all lines are reported as different.
> > Whereas when both have a directory specifier:
> > diff .\a someDir\b
> > output is normal.
> > (Filenames, argument order or using -d seem irrelevant.
> > Using / instead of \ makes output normal also:
> > diff a someDir/b
> > output is normal.
> > Similarly when comparing a and someDir\a as:
> > diff a someDir
> > output is also normal.
> > )
>
> I cannot reproduce this, either from a bash prompt or from cmd using
> your .bat file:

I can reproduce this (even under bash).  All you need is a textmode mount
and files with CRLF line endings.

> It's probably a textmode/binmode issue, though I don't know why
> switching between '\' and '/' as the path seperator changes it --
> although the Cygwin path handling code is complex and I can't pretend to
> understand it.

Having a '\' in a filename bypasses Cygwin's mounts and uses regular
Windows mechanisms for opening the file.  Reading a file on a textmode
mount will translate CRLF line endings to normal LFs.  No wonder 'diff' is
confused.

> There was no attached cygcheck so I don't know how your mounts are setup
> but from what I've read, using textmode mounts with tools like cvs and
> diff is a recipe for disaster.

Yep.  One possible workaround is to use the '--strip-trailing-cr' option
to diff, which will make it insensitive to textmode/binmode line endings.
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

--
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: Bug diff 2.8.7: Separate dir

2005-03-04 Thread Igor Pechtchanski
On Fri, 4 Mar 2005, Igor Pechtchanski wrote:

> On Fri, 4 Mar 2005, Brian Dessent wrote:
>
> > I cannot reproduce this, either from a bash prompt or from cmd using
> > your .bat file:
>
> I can reproduce this (even under bash).  All you need is a textmode mount
> and files with CRLF line endings.

Upon re-reading this, the above seems to imply that this is a bug.  I just
want to clarify that, as explained below, this is NOT a bug, but intended
behavior.  The "workaround" mentioned below is for a faulty setup
(textmode mounts and '\'s in paths), not for any perceived bug.
Igor

> > It's probably a textmode/binmode issue, though I don't know why
> > switching between '\' and '/' as the path seperator changes it --
> > although the Cygwin path handling code is complex and I can't pretend to
> > understand it.
>
> Having a '\' in a filename bypasses Cygwin's mounts and uses regular
> Windows mechanisms for opening the file.  Reading a file on a textmode
> mount will translate CRLF line endings to normal LFs.  No wonder 'diff'
> is confused.
>
> > There was no attached cygcheck so I don't know how your mounts are setup
> > but from what I've read, using textmode mounts with tools like cvs and
> > diff is a recipe for disaster.
>
> Yep.  One possible workaround is to use the '--strip-trailing-cr' option
> to diff, which will make it insensitive to textmode/binmode line endings.

-- 
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

--
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: Exim says TCP port "smtp" not found

2005-03-04 Thread Igor Pechtchanski
On Fri, 4 Mar 2005, John Kim wrote:

> I just downloaded & installed Cygwin w/ Exim on a Windows 2000 box and...
>  - ran exim-conf successfully
>  - chmod-ed all the log files & directories to SYSTEM:root
>  - created the /var/mail and /var/spool/mail directories.
>
> When I try to start exim service ("net start exim" from Cygwin bash shell) it
> says that it cannot be started. When I look in the log files, it says (in
> cygrunsrv_err.log):
>  TCP port "smtp" not found.
>
> I looked in /etc/services and SMTP at port 25 is there (I hadn't touched the
> file to begin with).
>
> What should I do?

Read , and follow its directions for
reporting Cygwin-related problems.  However, my crystal ball informs me
that you have installed Cygwin as "Just for me".  See the FAQ on "Why
don't my services work?": .
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

--
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: Exim says TCP port "smtp" not found (here's my cygcheck.out)

2005-03-04 Thread Igor Pechtchanski
On Fri, 4 Mar 2005, John Kim wrote:

> Oops, I forgot to attach cygcheck out, as advised. Profuse apologies.

Oops indeed.  Since the messages weren't in the same thread, I fired off
the previous reply before seeing this.  Turns out I was wrong in my guess.

Is /etc readable to the SYSTEM user?  Is /etc/services (or, rather, the
file it's pointing to) readable?  In fact, is / readable (the new versions
of Cygwin have traverse checking turned on, so if a directory isn't
readable or executable, none of the entries underneath it can be
accessed).
Igor
P.S. FYI, you didn't attach your cygcheck output, but included it inline.
-- 
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

--
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: Running Tomcat on Cygwin

2005-03-04 Thread Igor Pechtchanski
On Fri, 4 Mar 2005, Rahul Joshi wrote:

>   I am new to Cygwin.
>
> I want to run JSP/servlets using Tomcat on Cygwin. Is
> there a special version of Tomcat that I need to
> download?

Tomcat itself is a Java program.  There is no special Cygwin JVM, so you'd
need to have a native Windows JVM.  Given that, Tomcat works just fine.
However, if you want to run the Unix shell scripts supplied with Tomcat,
you'll need to use the java wrapper scripts that I posted to this list
(Google for "cygwin java_wrapper.sh"), since the JVM, being a native
program, doesn't understand POSIX (Cygwin) paths.

> Is there any documentation about running Tomcat on Cygwin?

Not that I know of.  If you use the wrapper scripts mentioned above, the
regular Unix documentation should apply.
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

--
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: Exim says TCP port "smtp" not found

2005-03-04 Thread Pierre A. Humblet
At 06:03 PM 3/4/2005 -0800, John Kim wrote:
>I just downloaded & installed Cygwin w/ Exim on a Windows 2000 box and...
>  - ran exim-conf successfully
>  - chmod-ed all the log files & directories to SYSTEM:root
>  - created the /var/mail and /var/spool/mail directories.

These last two steps are OK but not necessary.

>When I try to start exim service ("net start exim" from Cygwin bash shell) 
>it says that it cannot be started. When I look in the log files, it says (in 
>cygrunsrv_err.log):
>  TCP port "smtp" not found.
>
>I looked in /etc/services and SMTP at port 25 is there (I hadn't touched the 
>file to begin with).
>
>What should I do?

This is a sign of trouble with winsock, getservbyname() is one
of the initial network calls.
There must be something special with your environment...
Do you perhaps have a user called "exim" in /etc/passwd ?
If so, remove it.
Also, do you run exim under the system account?

There was a very long thread about that problem two years ago, ending with
http://www.cygwin.com/ml/cygwin/2003-02/msg02099.html
http://www.cygwin.com/ml/cygwin/2003-02/msg02189.html
If you don't have an "exim" user, we are in for some similar debugging :(

Pierre




--
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: passwordless ssh (2) failing

2005-03-04 Thread Isaiah
This is likely identical to my problem.

If you do `ssh -1 [EMAIL PROTECTED] it will using protocol 1 and not die.

On Fri, Mar 04, 2005 at 10:30:54PM -0500, Charles Galpin wrote:
> This should not be a cygwin issue, but I am completely stumped, so I 
> thought I had better rule this out.
-- 
- Isaiah

--
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/