Re: clamwin installs incompatible copy of cygwin1.dll

2005-03-29 Thread Corinna Vinschen
On Mar 29 22:55, Larry Hall wrote: > At 05:49 PM 3/29/2005, you wrote: > >If there is interest, I am willing to take a crack at pulling > >together the information that is sprinkled in email threads > >about how to avoid trampling on existing cygwin installations. > > > >Eventually, there really sh

RE: recv and errno during a connection reset/closed by peer

2005-03-29 Thread Peter Stephens
Brian, I will look at this also. I appreciated all of the suggestions, but really just wanted to understand why Cygwin and Linux would be different in this area. The original reason behind posting to this group was because I believed that my install of Cygwin was not following the SusV3 spec. I

cygexec mounted binaries don't inherit PATH during dynamic loading

2005-03-29 Thread Brian Dessent
The last month or so I've been fooling around with using the 'cygexec' feature of the mount table to tell Cygwin that everything under /usr/bin is a Cygwin executable (except for strace and cygcheck.) However, a strange thing started happening recently. With the x11 server running I would try to

Re: clamwin installs incompatible copy of cygwin1.dll

2005-03-29 Thread Larry Hall
At 05:49 PM 3/29/2005, you wrote: >Larry Hall wrote: >> At 10:20 PM 3/24/2005, Brian Dessent wrote: >>> A symlink won't work, because it's Windows own loader that searches >>> for and loads any .DLLs called for by an .exe. Windows does not >>> understand symlinks as they are a Cygwin thing, so you

Re: cannot connect to local sshd _proper_

2005-03-29 Thread Brian Dessent
Hunter Peress wrote: > after installing cygwin, i followed all instructions from: > http://pigtail.net/LRP/printsrv/cygwin-sshd.html There are lots of sites that purport to tell you how to install sshd on Cygwin, but this list does not support any of them. 1. Forget everything you read on any no

cannot connect to local sshd _proper_

2005-03-29 Thread Hunter Peress
after installing cygwin, i followed all instructions from: http://pigtail.net/LRP/printsrv/cygwin-sshd.html the important ones being to set variable name is CYGWIN variable value is ntsec tty as an env variable in windows, and to append ;c:\cygwin\bin to the win2k Path var. so i do this: $ ssh -vv

cannot connect to local sshd

2005-03-29 Thread Hunter Peress
after installing cygwin, i followed all instructions from: http://pigtail.net/LRP/printsrv/cygwin-sshd.html the important ones being to set variable name is *CYGWIN *variable value is *ntsec tty as an env variable in windows, and to append **;c:\cygwin\bin to the win2k Path var. so i do this: **$

RE: recv and errno during a connection reset/closed by peer

2005-03-29 Thread Peter A. Castro
On Tue, 29 Mar 2005, Peter Stephens wrote: Peter, Hi Peter :) I have thought about your suggestion and it makes a lot of sense. If I understand correctly this is what you are thinking about: Yes, this is pretty similar to how I've solve this before. It's a good compromise for an (arguably) imperf

RE: recv and errno during a connection reset/closed by peer

2005-03-29 Thread Peter A. Castro
On Tue, 29 Mar 2005, Brian Ford wrote: On Mon, 28 Mar 2005, Peter Stephens wrote: FYI - I tried setting the SO_LINGER and the SO_RCVTIMEO on Linux and on Cygwin (see code below). It makes sense to me that if the timeout has been exceeded then the recv(..., MSG_PEEK) should do something. On Cygwin

RE: recv and errno during a connection reset/closed by peert

2005-03-29 Thread Peter A. Castro
On Tue, 29 Mar 2005, Brian Ford wrote: On Tue, 29 Mar 2005, Peter Stephens wrote: I have thought about your suggestion and it makes a lot of sense. It seems like your suggestion would be very portable. A good suggestion and the most likely route for me at this point. Not to me. Maybe I'm missing

RE: recv and errno during a connection reset/closed by peer

2005-03-29 Thread Peter A. Castro
On Tue, 29 Mar 2005, Brian Ford wrote: On Mon, 28 Mar 2005, Peter A. Castro wrote: As someone who's seen this behaviour on several platforms, it can happen. I've had to deal with this little annoyance in other products by having a retry counter loop. So many consecutive recv()s of 0 length constit

RE: OpenSSH_3.9p1 and Could not load host key

2005-03-29 Thread Larry Hall
At 06:14 PM 3/29/2005, you wrote: >On Tue, 29 Mar 2005, Larry Hall wrote: > >> >XFree86-base4.3.0-11 >> >XFree86-bin 4.3.0-21 >> >XFree86-bin-icons 4.3.0-7 >> >XFree86-doc 4.3.0-2 >> >XFree86-etc 4.3.0-12 >> >XFree86-f1004.3.0-2 >> >

Re: apparent scheduler problem

2005-03-29 Thread Brian Ford
On Tue, 29 Mar 2005, Andrew Dunstan wrote: > Recently after upgrading my installation of Cygwin on XP-Pro, I noticed > that PostgreSQL started failing one of its regression tests. [snip] > The test is for the stats collector, and essentially it does some > work, waits a couple of seconds in a fair

RE: OpenSSH_3.9p1 and Could not load host key

2005-03-29 Thread Igor Pechtchanski
On Tue, 29 Mar 2005, Larry Hall wrote: > >XFree86-base4.3.0-11 > >XFree86-bin 4.3.0-21 > >XFree86-bin-icons 4.3.0-7 > >XFree86-doc 4.3.0-2 > >XFree86-etc 4.3.0-12 > >XFree86-f1004.3.0-2 > >XFree86-fcyr4.3.0-2 > >XFree86-

RE: OpenSSH_3.9p1 and Could not load host key

2005-03-29 Thread Peter Fraser
Sorry I don't know which ones helped. I did them all at once. My guess is the mkpasswd and mkgroup, from the looks of it the -d option was not used earlier. And there is a local pjf NT userid as well as a domain userid. I expect that caused the confusion. Then ssh started to work shh complained a

Re: clamwin installs incompatible copy of cygwin1.dll

2005-03-29 Thread Jim Kleckner
Larry Hall wrote: > At 10:20 PM 3/24/2005, Brian Dessent wrote: >> A symlink won't work, because it's Windows own loader that searches >> for and loads any .DLLs called for by an .exe. Windows does not >> understand symlinks as they are a Cygwin thing, so you can't >> symlink a DLL and expect it to

RE: rxvt with libW11 bug: doubled KP_Subtract and KP_Add

2005-03-29 Thread Steve O
Hi, I never noticed the double ++ and --, but it happens for me too. Removing the code to handle KP_Add and KP_Subtract (as the patch suggests) may end up breaking the shift+ shift- font changer. -steve Christopher Faylor wrote: Hi, Did you see this? It would be nice to get this fixed? cgf -Or

RE: OpenSSH_3.9p1 and Could not load host key

2005-03-29 Thread Larry Hall
At 05:08 PM 3/29/2005, you wrote: >My problem: > >When I opened an ssh session from an OpenBSD or Linux box to >my XP system I got the following > >$ ssh whoops.thoughts.thinkage.ca >Last login: Mon Mar 28 11:15:25 2005 from mail.thinkage.ca >Fanfare!!! >You are successfully logged in to this serve

RE: OpenSSH_3.9p1 and Could not load host key

2005-03-29 Thread Peter Fraser
My problem: When I opened an ssh session from an OpenBSD or Linux box to my XP system I got the following $ ssh whoops.thoughts.thinkage.ca Last login: Mon Mar 28 11:15:25 2005 from mail.thinkage.ca Fanfare!!! You are successfully logged in to this server!!! bash.exe: warning: could not find /tmp

RE: rxvt with libW11 bug: doubled KP_Subtract and KP_Add

2005-03-29 Thread Gary R. Van Sickle
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Pierre Bogossian > Sent: Tuesday, March 29, 2005 8:04 AM > To: cygwin@cygwin.com > Subject: rxvt with libW11 bug: doubled KP_Subtract and KP_Add > > When rxvt is executed with libW11, there is an annoy

apparent scheduler problem

2005-03-29 Thread Andrew Dunstan
Greetings Cygwin people! I do some work with PostgreSQL, including running the build farm. Recently after upgrading my installation of Cygwin on XP-Pro, I noticed that PostgreSQL started failing one of its regression tests. Another user with a completely fresh Cygwin installation has noticed the

RE: OpenSSH_3.9p1 and Could not load host key

2005-03-29 Thread Larry Hall
At 01:59 PM 3/29/2005, you wrote: >With CYGWIN=notraverse > >I rebooted just to make sure that the change >prorogated everywhere. That's fine and good. >Also It makes no difference whether X win is active or not. None of this has anything to do with X so I wouldn't expect any change here eith

RE: Cygwin spelling mistake and more

2005-03-29 Thread Stefan Schuerger
>So are we saying that Cygwin is British?!? ;-) Yes, I'd opt for Shakespearean English: [EMAIL PROTECTED] ~/src $ su su: O lilliterate loiterer! Hence, horrible villain, or I'll spurn thine eyes like balls before me; I'll unhair thy head, Thou shalt be whipp'd with wire, and stew'd'in br

Re: Cygwin spelling mistake and more

2005-03-29 Thread Andrew DeFaria
Buchbinder, Barry (NIH/NIAID) wrote: personalise and personalize are both correctly spellings of the word. The former is the British spelling and the latter is American. So are we saying that Cygwin is British?!? ;-) -- Things are more like they are today than they ever were before. -- Unsubscribe

RE: OpenSSH_3.9p1 and Could not load host key

2005-03-29 Thread Peter Fraser
With CYGWIN=notraverse I rebooted just to make sure that the change prorogated everywhere. Also It makes no difference whether X win is active or not. Also sshd was working with a earlier version, I don't know which one, but it was after the Nov 11 Cygwin DLL 1.5.12-1 I had previously upgraded

Re: Cannot link ___assert, __impure_ptr with -mno-cygwin

2005-03-29 Thread Christopher Faylor
On Tue, Mar 29, 2005 at 01:30:00PM -0500, Williams, Gerald S (Jerry) wrote: >Matt Olson wrote: >> Unfortunately, while "compile .o files with -mno-cygwin" fixes my toy >> example, it doesn't help the real code I'm trying to build: >[...] >> If the problem is object files being compiled without -mno

RE: Cannot link ___assert, __impure_ptr with -mno-cygwin

2005-03-29 Thread Williams, Gerald S \(Jerry\)
Matt Olson wrote: > Unfortunately, while "compile .o files with -mno-cygwin" fixes my toy > example, it doesn't help the real code I'm trying to build: [...] > If the problem is object files being compiled without -mno-cygwin and > linked with it, do I need to make sure that all of the (static?) >

RE: OpenSSH_3.9p1 and Could not load host key

2005-03-29 Thread Peter Fraser
I should have added earlier, that I am receiving these messages in the event log The description for Event ID ( 0 ) in Source ( sshd ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be ab

RE: OpenSSH_3.9p1 and Could not load host key

2005-03-29 Thread Peter Fraser
A cygcheck while an ssh session had be established (I could not do it from inside the session fork: Permissions denied) I have not set notraverse yet, that will be the next message ~$ cygcheck -srv Cygwin Configuration Diagnostics Current System Time: Tue Mar 29 13:00:42 2005 Windows XP Profess

RE: OpenSSH_3.9p1 and Could not load host key

2005-03-29 Thread Larry Hall
At 12:02 PM 3/29/2005, you wrote: > I used the method from > > > >A piece of code I would have never thought of. > >On the windows XP system the output was > >bash: /etc/profile: Permission denied >bash-2.05b$ /usr/sbin/sshd -D -d -d -d >debug2: lo

RE: OpenSSH_3.9p1 and Could not load host key

2005-03-29 Thread Peter Fraser
I used the method from A piece of code I would have never thought of. On the windows XP system the output was bash: /etc/profile: Permission denied bash-2.05b$ /usr/sbin/sshd -D -d -d -d debug2: load_server_config: filename /etc/sshd_config d

Re: Cannot link ___assert, __impure_ptr with -mno-cygwin

2005-03-29 Thread Matt Olson
On Tue, 29 Mar 2005 10:31:06 -0500, Williams, Gerald S (Jerry) <[EMAIL PROTECTED]> wrote: > Matt Olson wrote: > > I've narrowed my problems down to a relatively small test case: > [...] > > Makefile: > [...] > > LINKFLAGS = -g -L/lib/mingw -mwindows -mno-cygwin > > LIBS = -lmingw32 > > > > foo

RE: recv and errno during a connection reset/closed by peer

2005-03-29 Thread Brian Ford
On Mon, 28 Mar 2005, Peter Stephens wrote: > FYI - I tried setting the SO_LINGER and the SO_RCVTIMEO on Linux and on > Cygwin (see code below). It makes sense to me that if the timeout has been > exceeded then the recv(..., MSG_PEEK) should do something. On Cygwin it > doesn't do anything. I do

RE: recv and errno during a connection reset/closed by peer

2005-03-29 Thread Brian Ford
On Tue, 29 Mar 2005, Peter Stephens wrote: > I have thought about your suggestion and it makes a lot of sense. > > It seems like your suggestion would be very portable. A good suggestion and > the most likely route for me at this point. Not to me. Maybe I'm missing something, but it seems you a

RE: recv and errno during a connection reset/closed by peer

2005-03-29 Thread Brian Ford
On Mon, 28 Mar 2005, Peter A. Castro wrote: > As someone who's seen this behaviour on several platforms, it can happen. > I've had to deal with this little annoyance in other products by having a > retry counter loop. So many consecutive recv()s of 0 length constitues a > closed connection. Some

RE: recv and errno during a connection reset/closed by peer

2005-03-29 Thread Brian Ford
On Mon, 28 Mar 2005, Peter Stephens wrote: > Brian > > Are you saying that there is no way to distinguish a dropped connection from > a MSG_PEEK with no data to retrieve? AFAIK, yes. Why are you using this MSG_PEEK method? Why not just do a poll and look for POLLHUP (http://www.opengroup.org/on

Re: gcc 3.3.3, const symbols and shared libraries

2005-03-29 Thread Gerrit P. Haase
Norton Allen wrote: Gerrit P. Haase wrote: Norton Allen wrote: I have seen the discussions at http://sourceware.org/ml/cygwin/2004-09/msg01101.html referenced at http://cygwin.com/ml/cygwin/2005-03/msg00048.html regarding gcc 3.3.3's placement of const symbols into rdata which then cannot be proper

Re: Program launched under rxvt asks for user input in original prompt

2005-03-29 Thread Brian Dessent
Mikael wrote: > I tried again with your configure options (previously I simply > had --without-server) and guess, what: compilation still fails with the > following error: > In file included from term.c:62: > /usr/include/curses.h:717: error: conflicting types for `tparm' > /usr/include/termcap.h:

RE: Cannot link ___assert, __impure_ptr with -mno-cygwin

2005-03-29 Thread Williams, Gerald S \(Jerry\)
Matt Olson wrote: > I've narrowed my problems down to a relatively small test case: [...] > Makefile: [...] > LINKFLAGS = -g -L/lib/mingw -mwindows -mno-cygwin > LIBS = -lmingw32 > > foo: foo.o > gcc $(LINKFLAGS) -o foo foo.o $(LIBS) [...] > Compiler output: > $ make > gcc -g -L. -L/h

Re: gcc 3.3.3, const symbols and shared libraries

2005-03-29 Thread Jani Tiainen
Norton Allen wrote: Gerrit P. Haase wrote: Norton Allen wrote: I have seen the discussions at http://sourceware.org/ml/cygwin/2004-09/msg01101.html referenced at http://cygwin.com/ml/cygwin/2005-03/msg00048.html regarding gcc 3.3.3's placement of const symbols into rdata which then cannot be proper

Re: keychain locking problem (Was test -f occasionally fails on sym links)

2005-03-29 Thread Corinna Vinschen
On Mar 29 06:47, Karl M wrote: > The reason I ask is that keychain uses > >if tl_error=`ln -s $$ "$lockf" 2>&1`; then > > inside its takelock function as an atomic operation for creating a lock. It > then uses > >if [ -f "$lockf" ]; then > > to test for an old style lock file, and this

keychain locking problem (Was test -f occasionally fails on sym links)

2005-03-29 Thread Karl M
Hi All... The reason I ask is that keychain uses if tl_error=`ln -s $$ "$lockf" 2>&1`; then inside its takelock function as an atomic operation for creating a lock. It then uses if [ -f "$lockf" ]; then to test for an old style lock file, and this sometimes fails (incorrectly succeeds) and

keychain locking problem (Was test -f occasionally fails on sym links)

2005-03-29 Thread Karl M
Hi All... The reason I ask is that keychain uses if tl_error=`ln -s $$ "$lockf" 2>&1`; then inside its takelock function as an atomic operation for creating a lock. It then uses if [ -f "$lockf" ]; then to test for an old style lock file, and this sometimes fails (incorrectly succeeds) and

RE: Cygwin spelling mistake and more

2005-03-29 Thread Jamiil Abdullah Alkadir
Wow! I learned something new today. Thanks man, From: "Buchbinder, Barry (NIH/NIAID)" <[EMAIL PROTECTED]> To: cygwin@cygwin.com Subject: RE: Cygwin spelling mistake and more Date: Tue, 29 Mar 2005 09:32:50 -0500 At Tuesday, March 29, 2005 6:32 AM, Jamiil Abdullah Alkadir wrote: [snip] > // Error me

RE: Cygwin spelling mistake and more

2005-03-29 Thread Buchbinder, Barry (NIH/NIAID)
At Tuesday, March 29, 2005 6:32 AM, Jamiil Abdullah Alkadir wrote: [snip] > // Error message > mkdir: cannot create directory '/home/Jamiil': No medium found > Copy skeleton files. > These files are for the user to personalis(z)e their cygwin > experience [snip] > And, can someone please fix th

rxvt with libW11 bug: doubled KP_Subtract and KP_Add

2005-03-29 Thread Pierre Bogossian
When rxvt is executed with libW11, there is an annoying bug: each time the KP_Subtract (or KP_Add) key is pressed, the '-' (or '+') character is sent two times to the terminal. This bug has already been reported two years ago, and someone even proposed a patch: http://sourceware.org/ml/cygwin/2003

Re: gcc 3.3.3, const symbols and shared libraries

2005-03-29 Thread Norton Allen
Gerrit P. Haase wrote: Norton Allen wrote: I have seen the discussions at http://sourceware.org/ml/cygwin/2004-09/msg01101.html referenced at http://cygwin.com/ml/cygwin/2005-03/msg00048.html regarding gcc 3.3.3's placement of const symbols into rdata which then cannot be properly initialized. This

Re: Program launched under rxvt asks for user input in original prompt

2005-03-29 Thread Mikael
"Brian Dessent" wrote: > Mikael wrote: > >> Thanks Brian, I guess I'll just launch these programs from an ordinary >> command line shell then. >> As for building the client-only side of MySQL for Cygwin, that still >> doesn't >> work ootb because term.c in the mysql source insists on including bo

Re: Cygwin spelling mistake and more

2005-03-29 Thread Brian Dessent
Jamiil Abdullah Alkadir wrote: > I have just recently installed cywing on a WinXP, I chose the c:/cywin as > the root directory and c:/cygwin_tmp as the directory to dump the cywin’s > downloads. > The problem I have is that when I launch cygwin the cursor window appears > saying that my user dire

Cygwin spelling mistake and more

2005-03-29 Thread Jamiil Abdullah Alkadir
Hi Cygwin users!! I have just recently installed cywing on a WinXP, I chose the c:/cywin as the root directory and c:/cygwin_tmp as the directory to dump the cywin’s downloads. The problem I have is that when I launch cygwin the cursor window appears saying that my user directory was not found:

Re: Program launched under rxvt asks for user input in original prompt

2005-03-29 Thread Brian Dessent
Mikael wrote: > Thanks Brian, I guess I'll just launch these programs from an ordinary > command line shell then. > As for building the client-only side of MySQL for Cygwin, that still doesn't > work ootb because term.c in the mysql source insists on including both > termcap.h and (n?)curses.h, an

Re: gcc 3.3.3, const symbols and shared libraries

2005-03-29 Thread Gerrit P. Haase
Norton Allen wrote: I have seen the discussions at http://sourceware.org/ml/cygwin/2004-09/msg01101.html referenced at http://cygwin.com/ml/cygwin/2005-03/msg00048.html regarding gcc 3.3.3's placement of const symbols into rdata which then cannot be properly initialized. This problem seems pretty f

Re: /proc/self/exename -> exe ? (Re: Retrieving name of executable)

2005-03-29 Thread Corinna Vinschen
On Mar 29 09:47, Chris January wrote: > Corinna Vinschen wrote: > >The old exename was a file containing the path, the new exe is a symlink > >pointing to the binary. This is how it's done on Linux. > > Maybe exename should be kept for backwards compatibility? Sigh. Ok, I reverted the removal o

Re: perl test failures on 20050326 snapshot

2005-03-29 Thread Yitzchak Scott-Thoennes
On Mon, Mar 28, 2005 at 09:46:54AM -0800, Yitzchak Scott-Thoennes wrote: > I'm seeing several alarm, sleep, and timer related failures on the > 20050326 snapshot that weren't there with 20050323: All better in 20050328, thanks. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Pr

Re: test -f occasionally fails on sym links (keychain related)

2005-03-29 Thread Corinna Vinschen
On Mar 25 09:37, Karl M wrote: > Sometimes doing a [ -f foo ]; will show a false true while the symlink is > being created. You can see this by opening two bash shells and executing Creating symlinks is not an atomic process in Cygwin. It requires several OS calls to create a symlink. Corinna

Re: /proc/self/exename -> exe ? (Re: Retrieving name of executable)

2005-03-29 Thread Chris January
Corinna Vinschen wrote: On Mar 28 23:36, Anthony Heading wrote: On Fri, Jan 14, 2005 at 02:35:28PM -0500, Christopher Faylor wrote: On Fri, Jan 14, 2005 at 10:39:23AM -0800, Earl Chew wrote: I think the name of the current executable is stored in myself->progname within cygwin1.dll. The more easily

Re: /proc/self/exename -> exe ? (Re: Retrieving name of executable)

2005-03-29 Thread Corinna Vinschen
On Mar 28 23:36, Anthony Heading wrote: > On Fri, Jan 14, 2005 at 02:35:28PM -0500, Christopher Faylor wrote: > > On Fri, Jan 14, 2005 at 10:39:23AM -0800, Earl Chew wrote: > > >I think the name of the current executable is stored in myself->progname > > >within cygwin1.dll. > > > > > >The more eas