XP/g77 ``Couldn't duplicate my handle...''

2002-02-13 Thread Bert Sweetman
I have recently installed cygwin under windows XP and have been unable to use the g77 compiler. I get an error like ``g77 816 proc_subproc: Couldn't duplicate my handle<0x7E0> for PID 288, Win32 error 6.'' I get this same result with or without make. With make, I also get a pop-up box entitled

Re: More security issues

2002-02-13 Thread Pierre A. Humblet
At 04:57 PM 2/12/2002 +0100, Corinna Vinschen wrote: >On Sun, Feb 10, 2002 at 02:34:55PM -0500, Pierre A. Humblet wrote: Corinna, I have changed the order of the items. >> In the course of debugging I also noticed that the sid2 passed >> to sec_user() from just before CreateProcessAsUser() is us

cygwin C++ DLLs and inter-operation with M$OFT

2002-02-13 Thread Dylan Cuthbert
To anyone who can help, We've been having some fun creating DLLs that need to be loaded by some Visual C++ code. The code in the dll itself, ie. the interface is C so there aren't any name mangling problems. However, using v3.0.3 of GCC we get unresolved symbol errors for any libstdc++ we do wit

Re: cal misspells "January"

2002-02-13 Thread Chris January
> cal seems to use "Janurary" instead of "January": Horrors! Misspelling my name is a travesty! Regards Chris -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ:

RE: cygrunsrv does not start sshd in 1 out of 40 installs

2002-02-13 Thread Hildenbrand, Patrick
The problem is with cygrunsrv failing to initialize. Not even the first line of code is getting executed. Searching for StartServiceCtrlDispatcherA, I could find an other thread from last year, discussing the same problem: http://www.cygwin.com/ml/cygwin/2001-06/msg00099.html What I tried at the

RE: cygrunsrv does not start sshd in 1 out of 40 installs

2002-02-13 Thread Hildenbrand, Patrick
just some more info. There is a timing issue with initializing the cygwin code on the machines where cygrunsrv fails to start. As posted invoker starts sshd but sshd won't respond to any connection requests for about a 1.5 minutes (after which it works fine). So this sounds to me as the most likly

[BUG] inter-process signaling of non-special signals breaks

2002-02-13 Thread Stipe Tolj
Ok, this issue has been addressed by me a couple of times, so I hope you core Cygwin developers don't get borred from me. The bug (maybe it's fixed now, but it has been detected at least from 1.3.1 up to 1.3.7) arises from my work on Apache for Cygwin. Here is the main problem scope: apache's m

Re:anonymous ftp on WIn9x

2002-02-13 Thread Jorge Goncalvez
Hi, I wonder how i can anonymous ftp enable under Win9x, do i must add a line with ftp in the passwd file? In winnt, the set up programs create a user ftp in the passwd allowing anonymous ftp based by the nt box user, how can i do to declare a ftp user in Win 9x to make cygwin setup automatical

Re: cygrunsrv does not start sshd in 1 out of 40 installs

2002-02-13 Thread Lassi A. Tuura
> Now anybody some hints on what might happen there ? Anything I could try to > nail down the problem ? Try running cygrunsrv under strace (as the service). I did this once by hacking around the registry, it wasn't too hard, though I don't remember exactly what I did. Remember that strace takes

RE: /usr/bin/env - Incorrect parsing of #! line?

2002-02-13 Thread Gerald S. Williams
I think DG's and PJA's original assessment was correct and BASH should be modified. Support for cross-platform scripts is important, and the #!/bin/env trick is used frequently. It is also not limited to env--any time you use multiple arguments to #! you get into trouble. For example, the followi

RE: /usr/bin/env - Incorrect parsing of #! line?

2002-02-13 Thread Michael Schaap
At 15:25 13-2-2002, Gerald S. Williams wrote: >I think DG's and PJA's original assessment was correct and >BASH should be modified. Support for cross-platform scripts >is important, and the #!/bin/env trick is used frequently. Not so sure it's a bash thing. Ash and zsh on Cygwin do exactly the sa

RE: /usr/bin/env - Incorrect parsing of #! line?

2002-02-13 Thread Robert Praetorius
> I think DG's and PJA's original assessment was correct and > BASH should be modified. Support for cross-platform scripts > is important, and the #!/bin/env trick is used frequently. bashref.html says: "Suggestions and `philosophical' bug reports may be mailed to [EMAIL PRO

Re: how to create a new user

2002-02-13 Thread Larry Hall (RFK Partners, Inc)
At 01:56 AM 2/13/2002, Ryan T. Sammartino wrote: >On Tue, Feb 12, 2002 at 05:26:54PM -0500, Alex BATKO wrote: > > We are doing pretty much the same things (in creating a user), but > > I get permission denied after entering the password (during an ssh > > attempt). You don't have this problem ?

RE: /usr/bin/env - Incorrect parsing of #! line?

2002-02-13 Thread Chet Ramey
> I think DG's and PJA's original assessment was correct and > BASH should be modified. Support for cross-platform scripts > is important, and the #!/bin/env trick is used frequently. How is changing bash going to do anything? The kernel takes care of executing files with a `#!' magic number. I

RE: /usr/bin/env - Incorrect parsing of #! line?

2002-02-13 Thread Benoit Rochefort
My contribution is running the above script on a HPUX-10.20, so you may take a better decision: #!/usr/bin/env perl -v This gives: No such file or directory: perl -v On Solaris2, this gives: This is perl, v5.6.0 built for sun4-solaris ... On Linux: /usr/bin/env: perl -v: No such file or direc

Re: /usr/bin/env - Incorrect parsing of #! line?

2002-02-13 Thread Chet Ramey
> The problem looks to be that bash "helps out" the system > by executing scripts beginning with #!. In the source for > bash, look in execute_cmd.c, line 3369. Only one argument > is allowed. So e.g. #!/usr/bin/env perl -w becomes > "/usr/bin/env" "perl -w" > If I make a patch for this, should

Re:anonymous ftp on WIn9x

2002-02-13 Thread Larry Hall (RFK Partners, Inc)
At 07:55 AM 2/13/2002, Jorge Goncalvez wrote: >Hi, I wonder how i can anonymous ftp enable under Win9x, do i must add a line >with ftp in the passwd file? >In winnt, the set up programs create a user ftp in the passwd allowing anonymous >ftp based by the nt box user, how can i do to declare a ft

RE: /usr/bin/env - Incorrect parsing of #! line?

2002-02-13 Thread Gerald S. Williams
If DG's assessment is correct: > The problem looks to be that bash "helps out" the system > by executing scripts beginning with #!. In the source for > bash, look in execute_cmd.c, line 3369. Only one argument > is allowed. So e.g. #!/usr/bin/env perl -w becomes > "/usr/bin/env" "perl -w" > If

Re: cygwin C++ DLLs and inter-operation with M$OFT

2002-02-13 Thread Larry Hall (RFK Partners, Inc)
At 05:58 AM 2/13/2002, Dylan Cuthbert wrote: >To anyone who can help, > >We've been having some fun creating DLLs that need to be loaded by some >Visual C++ code. The code in the dll itself, ie. the interface is C so >there aren't any name mangling problems. However, using v3.0.3 of GCC we >get

Re: [BUG] inter-process signaling of non-special signals breaks

2002-02-13 Thread Corinna Vinschen
On Wed, Feb 13, 2002 at 01:12:14PM +0100, Stipe Tolj wrote: > Ok, this issue has been addressed by me a couple of times, so I hope > you core Cygwin developers don't get borred from me. > > The bug (maybe it's fixed now, but it has been detected at least from > 1.3.1 up to 1.3.7) arises from my w

Re: Calling JVM from cygwin

2002-02-13 Thread Pasch, Thomas (ACTGRO)
Some time ago, Ignasi Villagrasa wrote: > [...] > I built following .bat file: > gcc -c invoke.c -Id:\jdk1.3.1\include -Id:\jdk1.3.1\include\win32 DLLTOOL --dllname jvm.dll --def libjvm.def \ > --output-lib d:\jdk1.3.1\jre\bin\classic\libjvm.a c++ -o invoke.exe invoke.o -Ld:\jdk1.3.1\jre\bin\cla

Re: cal misspells "January"

2002-02-13 Thread Michael F. March
I hear ya! My last name is 'March' and it people mangled that all the time. > > cal seems to use "Janurary" instead of "January": > > Horrors! Misspelling my name is a travesty! -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.h

Re: /usr/bin/env - Incorrect parsing of #! line?

2002-02-13 Thread Christopher Faylor
On Wed, Feb 13, 2002 at 09:52:23AM -0500, Chet Ramey wrote: >>The problem looks to be that bash "helps out" the system by executing >>scripts beginning with #!. In the source for bash, look in >>execute_cmd.c, line 3369. Only one argument is allowed. So e.g. >>#!/usr/bin/env perl -w becomes "/u

Re: /usr/bin/env - Incorrect parsing of #! line?

2002-02-13 Thread Lassi A. Tuura
> Find some other way to accomplish what you need to do. #!/usr/bin/env perl BEGIN { $^W = 1; } $foo = 0; //lat -- No matter how hard you try, you can't make a baby in much less than 9 months. Trying to speed this up *might* make it slower, but it won't make it happen any quicker. --R

grep and sed are Cygwin "text tools", which others?, where is the list?

2002-02-13 Thread trodman
grep and sed are Cygwin "text tools" ;they strip out "\r" in a binary pipe. Forgive me for oversimplifying the "text tools" concept. Which other Cygwin tools have this behavior, and where is this documented? Per my tests below, cat, tac, perl, awk, head, tail, and tee are "binary tools". thanks

Solution for pserver problem (was: Re: CVS with pserver: Binary files get corrupted)

2002-02-13 Thread Holger Spielmann
Hello, here's the solution: The problem was that the working directory from which imports and adds where done resided on a text mount. After mounting it in binary mode and starting a fresh repository, everything's fine. Maybe this should go into the documentation. CU -- Holger Spielmann Germany

newbie questions

2002-02-13 Thread marcin pakula
Hi, I got couple of questions and I'd appreciate your help ;o)) I'm new to cygwin and pretty new to linux. I was looking for .profile, .bashrc and .inputrc but i can't find them how come ??? In User manual it says that Ican set %HOME% in properties but i got no such thing Finally

Re: XP/g77 ``Couldn't duplicate my handle...''

2002-02-13 Thread Bert Sweetman
I solved my own problem... I never did figure out what was causing it, but I completely reinstalled cygwin from the beginning (rather than `upgrading' my win2k installation). It now works like a champ. = I have recently installed cyg

1.3.6: Bug - Any PATH larger than ~256 gets reset to (NULL)

2002-02-13 Thread Mike Auty
Hi, I was having problems with openssh for windows, which makes use of cygwin1.dll 1.3.6, and I eventually tracked the problem back to a subprocess being executed but being passed path=(NULL). After reading the mailing list (http://www.cygwin.com/ml/cygwin/2001-10/msg01224.html) I discovered

Re: More security issues

2002-02-13 Thread Pierre A. Humblet
Corinna, please forget my previous message for now. Pierre -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/

2nd Cygwin/Java/JNI tutorial available

2002-02-13 Thread David P. Caldwell
Hello, everyone: A month or so back, I posted a tutorial on using Java & JNI with Cygwin tools. Some folks told me they found it useful, so I've written a second article on Cygwin/Java/JNI. The first article was on how to use Cygwin to build Java programs which use native methods. The new arti

Re: how to create a new user

2002-02-13 Thread Alex BATKO
+--- | I have the latest greatest Cygwin possible (don't have | version numbers in front of me at the moment), but mkpasswd -u | means "make a password entry just for the given user" | OK, thanks for pointing that out. Although I think that other then the amount of time require

updating packages/utilities

2002-02-13 Thread Alex BATKO
I can't find anything in neither the documentation, nor the FAQ about how to update a Cygwin package or Cygwin utility, or about how to install a package AFTER Cygwin has already been installed. If anyone knows a link to such documentation, please reply. -- Unsubscribe info: http://cygwin.

Re: updating packages/utilities

2002-02-13 Thread Larry Hall (RFK Partners, Inc)
At 04:42 PM 2/13/2002, Alex BATKO wrote: >I can't find anything in neither the documentation, nor the FAQ >about how to update a Cygwin package or Cygwin utility, or about >how to install a package AFTER Cygwin has already been installed. > >If anyone knows a link to such documentation, please re

RE: /usr/bin/env - Incorrect parsing of #! line?

2002-02-13 Thread Heribert Dahms
Hi, another generic way would be a shell wrapper named "perl -w" somewhere in the PATH e.g. /usr/local/bin, so Peter wouldn't need to change a lot of scripts. Bye, Heribert ([EMAIL PROTECTED]) > -Original Message- > From: Lassi A. Tuura [SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, Febru

Re: RCS 5.7 (?) + setup.exe advice

2002-02-13 Thread Robert Collins
=== - Original Message - From: "Dylan Cuthbert" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 13, 2002 5:00 PM Subject: Re: RCS 5.7 (?) + setup.exe advice > Ah, I get it now, I had a full installation of an older version of cygwin > and of course when I ran the s

Problems with local rsync on cygwin w2k

2002-02-13 Thread Joseph Annino
I am getting errors when I try and do a dry-run of a local rsync on cygwin on windows 2000. Here is an example command line: /usr/bin/rsync --archive --dry-run --ignore-times --stats --verbose /cygdrive/d/EarthBulletin/data/ /cygdrive/d/EarthBulletin/data_new/ It fails with the following messag

Possible patch for gdbm

2002-02-13 Thread AJ Reins
diff -urN gdbm-1.8.0.old/gdbmopen.c gdbm-1.8.0/gdbmopen.c --- gdbm-1.8.0.old/gdbmopen.c Sat Jul 29 22:46:42 2000 +++ gdbm-1.8.0/gdbmopen.c Thu Feb 7 09:25:48 2002 @@ -126,21 +126,21 @@ switch (flags & GDBM_OPENMASK) { case GDBM_READER: - dbf->desc = open (dbf->name, O

anybody else also infected

2002-02-13 Thread hongxun lee
Norton AntiVir complains that the file was infected by eggHead virus..but couldnt repair it.. below is the reply from Symantec for my submission. Anyone has the same experience? thanks - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 13, 200

Re: anybody else also infected

2002-02-13 Thread Randall R Schulz
Hong Xun, I scanned my copy of cygz.dll (/bin/cygz.dll) with Norton AntiVirus (with the weekly updates downloaded and installed earlier today). It found no problem with that file. For the record: % cygcheck -v cygz.dll Found: D:\cygwin\bin\cygz.dll D:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=

Re: anybody else also infected

2002-02-13 Thread hongxun lee
Thanks..but i have no ides what's wrong there. My vir-definition is updated within half an hour..my cygwin is now dead.Would you pls send to me a copy of that file for i hate to reinstall..Thanks again - Original Message - From: "Randall R Schulz" <[EMAIL PROTECTED]> To: "hongxun lee" <[E

Re: cygwin gcc DLLs loaded by Visual C++ crashing

2002-02-13 Thread Dylan Cuthbert
Thanks for the reply. I have searched the mailing lists high and low and as far back as 1998 and there are some references to this problem and some solutions, yet there are no definitive "this works" type responses ( in fact, almost all the responses I found seemed like temporary hacks ) and it w

Re: anybody else also infected

2002-02-13 Thread Michael A Chase
Update to zlib-1.1.3-7. NAV thinks it detects the virus in the 1.1.3-6 version of the file, but not in the 1.1.3-7 version. Since you reported the false positive to SARC, the next release of the NAV data files may have it fixed as well. -- Mac :}) ** I normally forward private questions to the a

Re: anybody else also infected

2002-02-13 Thread Michael A Chase
- Original Message - From: "Randall R Schulz" <[EMAIL PROTECTED]> To: "Michael A Chase" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, February 13, 2002 20:18 Subject: Re: anybody else also infected > My NAV does not detect any virus in /bin/cygz.dll from the 1.1.3-6 package >

Re: Is window manipulation available in perl?

2002-02-13 Thread Soren Andersen
On 12 Feb 2002 at 9:04, Robert Mecklenburg wrote: > First, please excuse the newbie question. I don't think this is > off-topic, but my judgement isn't the one that counts. ;-) I've done a > good bit of searching with google, faqs, and posting to > comp.lang.perl.misc, but can't figure this out

Re: cygwin gcc DLLs loaded by Visual C++ crashing - SOLVED

2002-02-13 Thread Dylan Cuthbert
The FAQ/User Manual leads everyone in completely the wrong direction. If anyone else wants to get CYGWIN C++ programs running as dlls loaded by Visual C++ programs, use the attached example as a basis, it is *really* simple. This only allows Visual C++ to access the C functions of course, but t

Re: 2/13 PM NAV update

2002-02-13 Thread Randall R Schulz
Bill, A better way to detect an alteration to a program is to use the "sum" command to generate a checksum. As I mentioned in my first resonse to Hong Xun, sum on my installed copy of the 1.3-6 cygz.dll yields this: % sum /bin/cygz.dll 1964950 For the 1.3-6 version the result is: % sum

Re: 2/13 PM NAV update [Correction]

2002-02-13 Thread Randall R Schulz
Bill, I noticed an error in my previous message. >A better way to detect an alteration to a program is to use the "sum" >command to generate a checksum. As I mentioned in my first resonse to Hong >Xun, sum on my installed copy of the 1.3-6 cygz.dll yields this: CORRECTION: I have the 1.3-7 (

Re: 2/13 PM NAV update [Correction]

2002-02-13 Thread Robert Collins
Please, for the sake of sanity, don't refer to packages by .dll revisions. libz is separate from cygwin1.dll and updated at different times. Rob -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cy