Re: [ITP] xcb-util

2009-01-13 Thread Yaakov (Cygwin/X)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Yaakov (Cygwin/X) wrote:
 I propose to maintain xcb-util, a collection of XCB convenience
 libraries.  libxcb-render-util is a requirement for enabling the XCB
 backend in cairo.
 
 libxcb-wm is static-only on purpose; it depends on the program utilizing
 it to define a particular symbol, so a shared library is not possible.
 
 Earlier versions are in Debian testing and unstable and Ubuntu 8.10.

Ping?


Yaakov
Cygwin/X
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAklsVt4ACgkQpiWmPGlmQSPjKQCfYhfkPGKuOT07dja8xKYzLbh1
htgAoPG2RvDyixg+3s8gKoiJvUFDElre
=pGXv
-END PGP SIGNATURE-


Re: [ITP] xcb-util

2009-01-13 Thread Corinna Vinschen
On Jan 13 02:54, Yaakov (Cygwin/X) wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256
 
 Yaakov (Cygwin/X) wrote:
  I propose to maintain xcb-util, a collection of XCB convenience
  libraries.  libxcb-render-util is a requirement for enabling the XCB
  backend in cairo.
  
  libxcb-wm is static-only on purpose; it depends on the program utilizing
  it to define a particular symbol, so a shared library is not possible.
  
  Earlier versions are in Debian testing and unstable and Ubuntu 8.10.
 
 Ping?

I'm somewhat puzzled by the xcb-util/setup.hint file:

  requires: libxcb-atom-devel libxcb-aux-devel libxcb-event-devel
libxcb-icccm-devel libxcb-image-devel libxcb-keysyms-devel
libxcb-property-devel libxcb-render-util-devel libxcb-reply-devel
libxcb-wm-devel

All the devel packages?  That doesn't look right.  I would have
expected xcb-util to pull in all the library packages, but not the
devel packages.

Other than that, it looks good to me.


Corinna

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


[RFU] lftp-3.7.6-1

2009-01-13 Thread Andrew Schulman
I've packaged a new release of lftp, for both 1.5 and 1.7.  This is a new
upstream release.  Please upload.  Thanks, Andrew.

# 1.5
wget \
 http://home.comcast.net/~andrex2/cygwin-1.5/lftp/lftp-3.7.6-1.tar.bz2 \
 http://home.comcast.net/~andrex2/cygwin-1.5/lftp/lftp-3.7.6-1-src.tar.bz2

# 1.7
wget \
 http://home.comcast.net/~andrex2/cygwin-1.7/lftp/lftp-3.7.6-1.tar.bz2 \
 http://home.comcast.net/~andrex2/cygwin-1.7/lftp/lftp-3.7.6-1-src.tar.bz2


X Error of failed request: BadAlloc (insufficient resources for operation)

2009-01-13 Thread Marzio.VIDALI
Hello,
I recently updated my Cygwin installation and I'm facing a strange problem now.
I use Cygwin (Xwin X Server release 6.8.99.901-4) on Windows XP to work on a 
fully patched Solaris 9 workstation.
When I try to run VNC on the Solaris workstation, it pops up the VNC 
authentication dialog as it should, but as soon as I start writing the password 
in it, VNC fails and I get this message: 

 CConn:   connected to host remotepc port 5900
 CConnection: Server supports RFB protocol version 3.7
 CConnection: Using RFB protocol version 3.7
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  136 (XKEYBOARD)
  Minor opcode of failed request:  16 (XkbSetNamedIndicator)
  Serial number of failed request:  365
  Current serial number in output stream:  373

If I work locally on the Solaris box, this doesn't happen. If I try the same on 
a XP machine, where I have an older installation of Cygwin (Xwin X Server 
release 6.8.2.0-4) I get no problems. So I think the problem is in Cygwin.
I tried to find a solution digging in Google and forums, a found a similar 
issue described in http://www.cygwin.com/ml/cygwin-xfree/2008-12/msg1.html 
and https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/292973, but the 
suggested solution (apply patch 112785-64 on the Solaris box) doesn't solve the 
issue.
Thanks for any help or suggestion.

Marzio


[ANNOUNCEMENT] Updated: libcairo2/libcairo-devel-1.8.6-1

2009-01-13 Thread Yaakov (Cygwin/X)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

The following packages were updated in the Cygwin distribution:

*** libcairo2-1.8.6-1
*** libcairo-devel-1.8.6-1

This is the latest upstream release of cairo.  The XCB backend has been
enabled, adding a dependency on the just-released libxcb-render-util0.


Yaakov
Cygwin/X


DOWNLOAD:
=
Note that downloads from sources.redhat.com (aka cygwin.com) aren't
allowed due to bandwidth limitations.  This means that you will need to
find a mirror which has this update, please choose the one nearest to
you: http://cygwin.com/mirrors.html

QUESTIONS:
==
If you want to make a point or ask a question the cygwin-xfree mailing
list is the appropriate place.

CYGWIN-XFREE-ANNOUNCE UNSUBSCRIBE INFO:
===
To unsubscribe to the cygwin-xfree-announce mailing list, look at the
List-Unsubscribe:  tag in the email header of this message.  Send
email to the address specified there.  It will be in the format:

cygwin-xfree-announce-unsubscribe-you=yourdomain@cygwin.com

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAklsu1kACgkQpiWmPGlmQSNqrQCfdNx5WhxqIL/pmHh//HfT/8o5
UEcAoIiQD6A+5GHBWu6990xIWnaTX6A3
=4IYY
-END PGP SIGNATURE-

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



[ANNOUNCEMENT] New packages: xcb-util-0.3.2-1 (19 packages)

2009-01-13 Thread Yaakov (Cygwin/X)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

The following packages were added to the Cygwin distribution:

*** libxcb-atom1-0.3.2-1
*** libxcb-atom-devel-0.3.2-1
*** libxcb-aux0-0.3.2-1
*** libxcb-aux-devel-0.3.2-1
*** libxcb-event1-0.3.2-1
*** libxcb-event-devel-0.3.2-1
*** libxcb-icccm1-0.3.2-1
*** libxcb-icccm-devel-0.3.2-1
*** libxcb-image0-0.3.2-1
*** libxcb-image-devel-0.3.2-1
*** libxcb-keysyms0-0.3.2-1
*** libxcb-keysyms-devel-0.3.2-1
*** libxcb-property1-0.3.2-1
*** libxcb-property-devel-0.3.2-1
*** libxcb-render-util0-0.3.2-1
*** libxcb-render-util-devel-0.3.2-1
*** libxcb-reply1-0.3.2-1
*** libxcb-reply-devel-0.3.2-1
*** libxcb-wm-devel-0.3.2-1

xcb-util provides a number of convenience libraries on top of XCB.


Yaakov
Cygwin/X


DOWNLOAD:
=
Note that downloads from sources.redhat.com (aka cygwin.com) aren't
allowed due to bandwidth limitations.  This means that you will need to
find a mirror which has this update, please choose the one nearest to
you: http://cygwin.com/mirrors.html

QUESTIONS:
==
If you want to make a point or ask a question the cygwin-xfree mailing
list is the appropriate place.

CYGWIN-XFREE-ANNOUNCE UNSUBSCRIBE INFO:
===
To unsubscribe to the cygwin-xfree-announce mailing list, look at the
List-Unsubscribe:  tag in the email header of this message.  Send
email to the address specified there.  It will be in the format:

cygwin-xfree-announce-unsubscribe-you=yourdomain@cygwin.com

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAklsuj8ACgkQpiWmPGlmQSOlagCfSw3ZqnxfxPuJ5hobCccQApnL
DIEAn3E0hxTvQTB4NeWPD3LKToT+Q1Fr
=x9kb
-END PGP SIGNATURE-

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



configure error in X build - cpp requires -undef

2009-01-13 Thread Tom George

Hello,

I am trying to build the Cygwin/X following the instructions in the 
Cygwin/X Contributors Guide.


When I run

./configure --prefix=/usr

the last few lines of output are:

checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... no
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... no
checking for byacc... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for cpp... /usr/bin/cpp
checking if /usr/bin/cpp requires -undef... configure: error: 
/usr/bin/cpp defines unix with or without -undef.  I don't know what to do.


Any help to get past this would be greatly appreciated.

Thanks,
Tom

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



Re: configure error in X build - cpp requires -undef

2009-01-13 Thread Jon TURNEY

Tom George wrote:
I am trying to build the Cygwin/X following the instructions in the 
Cygwin/X Contributors Guide.


When I run

./configure --prefix=/usr

the last few lines of output are:

...
checking if /usr/bin/cpp requires -undef... configure: error: 
/usr/bin/cpp defines unix with or without -undef.  I don't know what to do.


Any help to get past this would be greatly appreciated.


This means that the X server source you are building didn't have it's 
./configure generated with xorg-util-macros with a patch needed for cygwin [1]


The X server source package available via cygwin setup shouldn't have this 
problem.  What source are you using?


[1] 
http://cygwin-ports.svn.sourceforge.net/viewvc/cygwin-ports/ports/trunk/xorg/xorg-util-macros/1.1-cpp-undef.patch?view=markup



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



Re: configure error in X build - cpp requires -undef

2009-01-13 Thread Tom George

I got the source via cygwin setup. The version is 1.0.5-1.

Jon TURNEY wrote:

Tom George wrote:
I am trying to build the Cygwin/X following the instructions in the 
Cygwin/X Contributors Guide.


When I run

./configure --prefix=/usr

the last few lines of output are:

...
checking if /usr/bin/cpp requires -undef... configure: error: 
/usr/bin/cpp defines unix with or without -undef.  I don't know what 
to do.


Any help to get past this would be greatly appreciated.


This means that the X server source you are building didn't have it's 
./configure generated with xorg-util-macros with a patch needed for 
cygwin [1]


The X server source package available via cygwin setup shouldn't have 
this problem.  What source are you using?


[1] 
http://cygwin-ports.svn.sourceforge.net/viewvc/cygwin-ports/ports/trunk/xorg/xorg-util-macros/1.1-cpp-undef.patch?view=markup 




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





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



Re: Semaphore handle leaks in WindowMaker with latest Xorg distribution

2009-01-13 Thread Dr. Volker Zell
 Volker Zell writes:

 Yaakov  writes:
 Dr. Volker Zell wrote:
 After switching to the latest Xorg packages (still under cygwin-1.5),
 WindowMaker-0.90.0-2 stops working after more or less 36 hours continues
 uptime of my laptop. When this happens I see the following in a bash 
window
 from where I started my X environment via startx:

 Could you test if this happen with 0.92.0 as well from Ports:

 
ftp://ftp.cygwinports.org/pub/cygwinports/release/X11/WindowMaker/WindowMaker-0.92.0-2.tar.bz2
 
ftp://ftp.cygwinports.org/pub/cygwinports/release/X11/WindowMaker/libwraster3/libwraster3-0.92.0-2.tar.bz2

 All the other deps are in the distro already.  If this fixes the
 problem, then I'll ITA this right away.

 Sorry but your version has the same problem, both wmaker and Wprefs leak
 semaphore handles. I'm running it now since 6 hours under cygwin-1.7:

 wmaker - 225 Handles
 Wprefs -   75000 Handles


I have just finished running a couple of other X programs without
touching the keyboard and all of them are leaking handles, although not
as extreme as wmaker:

 | Program   | 17:30 | 21:59 | 07:17 |  18:26 |
 |---+---+---+---+|
 | xemacs| 62553 | 63176 | 66218 | 125519 |
 | fvwm  | 27075 | 30741 | 39327 |  55344 |
 | FvwmPager |  6279 |  6972 |  8544 |  12009 |
 | rxvt  |  2216 |  2882 |  5510 |   9044 |
 | mrxvt |  1664 |  2219 |  2246 |   2738 |

An old cygwin installation where I haven't updated Xorg yet doesn't show
this behavior.

So it really looks like some X lib is the culprit.

Ciao
  Volker
  

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



Re: WMaker compile

2009-01-13 Thread Pascal A. Dupuis
On Mon, Jan 12, 2009 at 05:27:07PM +0100, Dr. Volker Zell wrote:
 Can you please check if your version also leaks handles ?
 
  o http://cygwin.com/ml/cygwin-xfree/2009-01/msg00048.html
 

Sorry, but how can I detect handle leakage ?

Maybe this is not related, or maybe it is:
- if I launch cygwin and and only use CLi programs, typing 'logout' ensure
the window gets closed and disappear;
- OTOH, launching 'startx', which starts the X environment and WMaker,
then using WMaker 'exit' functions, leaves a window which does never
get closed.

Regards

Pascal

-- 


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



src/winsup/cygwin ChangeLog libc/getopt.c

2009-01-13 Thread corinna
CVSROOT:/cvs/src
Module name:src
Changes by: cori...@sourceware.org  2009-01-13 09:58:43

Modified files:
winsup/cygwin  : ChangeLog 
winsup/cygwin/libc: getopt.c 

Log message:
* libc/getopt.c (parse_long_options): Use fix from NetBSD's getopt
to avoid false ambiguities.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.4351r2=1.4352
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/libc/getopt.c.diff?cvsroot=srcr1=1.11r2=1.12



Re: Signal handling in Win32 GUI programs

2009-01-13 Thread Chris January
On Tue, Jan 13, 2009 at 7:29 AM, Andy Koppe wrote:
 Actually I still can't quite get signal handling in MinTTY to work right.
 SIGINT is fine, but SIGTERM, SIGHUP, and SIGKILL don't seem to get to
 sigwait(), instead still invoking the default handler, i.e. terminating
 MinTTY without SIGHUP being sent to the command inside it.

 Anything obvious missing?

Shouldn't pthread_sigmask be called for signal_thread as well?
From the Linux manual page:
In a multithreaded program, the signal should be blocked in all
threads to prevent the signal being delivered to a thread other than
the one calling sigwaitinfo() or sigtimedwait()). 
But maybe that doesn't apply to Cygwin.

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: automate SSH-HOST-CONFIG

2009-01-13 Thread Dmitry Semyonov
Hi Johnny,

On Tue, Jan 13, 2009 at 03:28, blazt wrote:

 I am not sure how to do a except script. I have been looking at what I can
 find on the net.

It is 'expect', not 'except'. It's enough to read 'man expect' for basics.
You'll have to learn some Tcl docs for advanced usage, (not required
for ssh-host-config automation).


 Would I pass this command into the except part?

See an excerpt from my expect script below. I don't provide the full
version, as it is complicated more than necessary for the
demonstration due to support of different OSes and corner cases. (Also
it was not verified with the latest ssh-host-config.)


#!/bin/expect -f

# required on Win2k3
exec chmod +r /etc/passwd
exec chmod +r /etc/group
exec chmod +x /var

spawn ssh-host-config

# Host keys generation is lengthy procedure
set timeout 20

expect {
  Overwrite existing /etc/ssh_config file? (yes/no) { send yes\r;
exp_continue }
  Overwrite existing /etc/sshd_config file? (yes/no) { send yes\r;
exp_continue }
  Should privilege separation be used? (yes/no) { send yes\r }
}

set timeout 5

expect {
  Should this script create a local user 'sshd' on this machine?
(yes/no) { send yes\r }
  new local account 'sshd'? (yes/no) { send yes\r }
}

# [skipped]

expect eof { exec cygrunsrv -S sshd }


-- 
...Bye..Dmitry.

--
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: IP_PKTINFO in cygwin

2009-01-13 Thread Corinna Vinschen
On Jan 13 02:26, Bill Florac wrote:
 Does cygwin support the setsockopt() - IP_PKTINFO to retreive the destination 
 address of a incomming UDP packet received via recvmsg()?  I have made 
 numberous attempts but CMSG_FIRSTHDR() always returns NULL. The same code 
 works find under linux.  I'm guessing that cygwin is using winsock underneath 

That's right.

 and I beleive this would only be available under winsock 2.2.  Is there a 
 means to build cygwin to complile with this version of winsock?

No, that's not possible, since it doesn't work that way.   Cygwin is
using OS functions to emulate POSIX functionality, so calling Cygwin's
recvmsg is not just a direct call to the equivalent Winsock function
WSARecvMsg.  WSARecvMsg is only available starting with Windows XP.
Earlier systems only have WSARecvFrom, so that's what Cygwin is using
under the hood to support older OS versions as well.  The
sendmsg/recvmsg control data functionality wasn't that important so far.

In theory, that can be changed for Cygwin 1.7 so that WSARecvMsg is used
on XP and later, but that requires more work than just replacing
WSARecvFrom with WSARecvMsg.  I'm not even sure our header files are
sufficient for that.  I'm rather reluctant to change that right now,
but that's certainly something to consider for a later release.

Final note:  http://cygwin.com/acronyms/#PTC


Corinna

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

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



Re: bug in cygwin's gcc/g++ getopt_long(): erroneous ambiguous option

2009-01-13 Thread Corinna Vinschen
On Jan 13 00:49, Dan Tsafrir wrote:
 Hi,
 
 When given certain long options, Cygwin's getopt_long() function
 erroneously fails on ambiguous option. The short program below
 illustrates the problem: getopt_long() wrongfully reports the --xy
 option as ambiguous.
 
 Strangely, if flipping the order of the 2nd and 3rd entries in the
 options-array (by compiling the program with -DNO_BUG) the bug goes
 away, clearly demonstrating inconsistent Cygwin/getopt_long behavior.
 [...]
 #include stdio.h
 #include getopt.h
 
 const struct option lopts[] = {
 #ifdef NO_BUG
 {xy1 , required_argument, NULL, 'a' },
 {xy  , required_argument, NULL, 'b' },
 {xy2 , required_argument, NULL, 'c' },
 {NULL  , 0, NULL,  0  },
 #else /* swapping order of 2nd and 3rd entries generates the bug */
 {xy1 , required_argument, NULL, 'a' },
 {xy2 , required_argument, NULL, 'c' },
 {xy  , required_argument, NULL, 'b' },
 {NULL  , 0, NULL,  0  },
 #endif
 };
 
 int main()
 {
 const char* argv[] = {./a, --xy=1, NULL};
 int argc = 2;
 int index, c;
 
 // if NO_BUG defined, will print: got opt=b [OK]
 // otherwise: a: ambiguous option -- xy [BUG]
 if( (c = getopt_long(argc, (char**)argv, A:B:C, lopts, index)) != EOF )
 printf(got opt=%c\n, c);
 
 return 0;
 }

This appears to be a bug in the upstream version of getopt we're
using in Cygwin, which is the latest version from OpenBSD.  I'm
looking into creating a patch for Cygwin 1.7.


Thanks for the report,
Corinna

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

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



Re: Signal handling in Win32 GUI programs

2009-01-13 Thread Andy Koppe
2009/1/13 Andy Koppe andy.ko...@gmail.com:
  static const sigset_t term_sigs =
1SIGHUP | 1SIGKILL | 1SIGTERM | 1SIGINT;

Seems this is the problem. It needs to be done the proper way, using sigaddset.

Andy

--
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: file mirroring

2009-01-13 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Jan 12, 2009 at 11:48:51PM -0800, jedalaurin wrote:

[...]

 rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
 rsync error: error in rsync protocol data stream (code 12) at
 /home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/io.c(632)
 [receiver=3.0.4]
 
 after running 
 
 rsync -avz --delete --exclude=**/stats --exclude=**/error
 --exclude=**/files/pictures -e ssh -i /root/rsync/mirror-rsync-key
 someu...@server1.example.com:/var/www/ /var/www/

As Larry said, this probably isn't Cygwin-specific. Rsync can be also
had as a pure Windows app, AFAIK.

 our mirror server is using windows 2003 r3 on cygwin 2.573.2.3 and out main
 server is on Red Hat.

What machine are you invoking rsync on? (let's call it B). The other
machine (let's call it A) should have an SSH server running (since you
are using SSH as the rsync transport, as the option -e ssh... says).
Can you ssh from B to A? What happens if you invoke

  ssh -i /root/rsync/mirror-rsync-key someu...@server1.example.com:/var/www/ 
/var/www/

(My crystal ball tells me that B is the Redhat box, just based on the path
/root/blah, but that's just a hunch. This seems to be the hard way,
since it seems to be more work to set up a ssh server on a Windows box).

 Another question is there another way(s) to do the file synchronization on
 this setup?

Rsync is very nice and light on resources. Maybe you can skip the need
to have Cygwin using PuTTY as the SSH client on the windows box
(provided you rsync from the Windows box to the Redhat one). I don't
know what is needed to set up an SSH server on Windows (other than the
Cygwin one, that is) if you want to do it the other way 'round.

HTH
- -- tomás
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFJbJMPBcgs9XrR2kYRAvqcAKCCTaMzvXKdVn8o83LM/I+IPpCBtACfVle5
e89wcK/3eV7TFrL5wHarV9Q=
=whxm
-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: file mirroring

2009-01-13 Thread jedalaurin



Tomas Zerolo wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On Mon, Jan 12, 2009 at 11:48:51PM -0800, jedalaurin wrote:
 
 [...]
 
 rsync: connection unexpectedly closed (0 bytes received so far)
 [receiver]
 rsync error: error in rsync protocol data stream (code 12) at
 /home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/io.c(632)
 [receiver=3.0.4]
 
 after running 
 
 rsync -avz --delete --exclude=**/stats --exclude=**/error
 --exclude=**/files/pictures -e ssh -i /root/rsync/mirror-rsync-key
 someu...@server1.example.com:/var/www/ /var/www/
 
 As Larry said, this probably isn't Cygwin-specific. Rsync can be also
 had as a pure Windows app, AFAIK.
 
 our mirror server is using windows 2003 r3 on cygwin 2.573.2.3 and out
 main
 server is on Red Hat.
 
 What machine are you invoking rsync on? (let's call it B). The other
 machine (let's call it A) should have an SSH server running (since you
 are using SSH as the rsync transport, as the option -e ssh... says).
 Can you ssh from B to A? What happens if you invoke
 
   ssh -i /root/rsync/mirror-rsync-key
 someu...@server1.example.com:/var/www/ /var/www/
 
 (My crystal ball tells me that B is the Redhat box, just based on the path
 /root/blah, but that's just a hunch. This seems to be the hard way,
 since it seems to be more work to set up a ssh server on a Windows box).
 
 Another question is there another way(s) to do the file synchronization
 on
 this setup?
 
 Rsync is very nice and light on resources. Maybe you can skip the need
 to have Cygwin using PuTTY as the SSH client on the windows box
 (provided you rsync from the Windows box to the Redhat one). I don't
 know what is needed to set up an SSH server on Windows (other than the
 Cygwin one, that is) if you want to do it the other way 'round.
 
 HTH
 - -- tomás
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)
 
 iD8DBQFJbJMPBcgs9XrR2kYRAvqcAKCCTaMzvXKdVn8o83LM/I+IPpCBtACfVle5
 e89wcK/3eV7TFrL5wHarV9Q=
 =whxm
 -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/
 
 
 

server_A: Red hat
server_B: Window 2003 (cygwin)

i was on server_B running this command:


ssh -i /root/rsync/mirror-rsync-key someu...@server_a:/var/www/ /var/www/

all files on server_A to be transferred on server_B /var/www/
I got this error:
Connection closed by server_A
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at
/home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/io.c(632)
[receiver=3.0.4]

I've already setup ssh on cygwin
http://ist.uwaterloo.ca/~kscully/CygwinSSHD_W2K3.html.

may I ask the alternative that you have the other way 'round. for our
option.

Thanks in advance.



-- 
View this message in context: 
http://www.nabble.com/file-mirroring-tp21430068p21435784.html
Sent from the Cygwin list mailing list archive at Nabble.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: file mirroring

2009-01-13 Thread jedalaurin



Tomas Zerolo wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On Mon, Jan 12, 2009 at 11:48:51PM -0800, jedalaurin wrote:
 
 [...]
 
 rsync: connection unexpectedly closed (0 bytes received so far)
 [receiver]
 rsync error: error in rsync protocol data stream (code 12) at
 /home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/io.c(632)
 [receiver=3.0.4]
 
 after running 
 
 rsync -avz --delete --exclude=**/stats --exclude=**/error
 --exclude=**/files/pictures -e ssh -i /root/rsync/mirror-rsync-key
 someu...@server1.example.com:/var/www/ /var/www/
 
 As Larry said, this probably isn't Cygwin-specific. Rsync can be also
 had as a pure Windows app, AFAIK.
 
 our mirror server is using windows 2003 r3 on cygwin 2.573.2.3 and out
 main
 server is on Red Hat.
 
 What machine are you invoking rsync on? (let's call it B). The other
 machine (let's call it A) should have an SSH server running (since you
 are using SSH as the rsync transport, as the option -e ssh... says).
 Can you ssh from B to A? What happens if you invoke
 
   ssh -i /root/rsync/mirror-rsync-key
 someu...@server1.example.com:/var/www/ /var/www/
 
 (My crystal ball tells me that B is the Redhat box, just based on the path
 /root/blah, but that's just a hunch. This seems to be the hard way,
 since it seems to be more work to set up a ssh server on a Windows box).
 
 Another question is there another way(s) to do the file synchronization
 on
 this setup?
 
 Rsync is very nice and light on resources. Maybe you can skip the need
 to have Cygwin using PuTTY as the SSH client on the windows box
 (provided you rsync from the Windows box to the Redhat one). I don't
 know what is needed to set up an SSH server on Windows (other than the
 Cygwin one, that is) if you want to do it the other way 'round.
 
 HTH
 - -- tomás
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)
 
 iD8DBQFJbJMPBcgs9XrR2kYRAvqcAKCCTaMzvXKdVn8o83LM/I+IPpCBtACfVle5
 e89wcK/3eV7TFrL5wHarV9Q=
 =whxm
 -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/
 
 
 

Btw, but 2 servers are both remote and was located on different countries
thats why I am using what i had now.

-- 
View this message in context: 
http://www.nabble.com/file-mirroring-tp21430068p21435872.html
Sent from the Cygwin list mailing list archive at Nabble.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: How to make setup.exe default to local-install?

2009-01-13 Thread Grant Edwards
On 2009-01-13, Larry Hall (Cygwin) reply-to-list-only...@cygwin.com wrote:
 On 01/12/2009, Grant Edwards wrote:
 It looks like a batch file would work, but it pops up a
 nuisance console window.  [Question: does local directory
 refer to the directory where setup.exe is located or to the
 current working directory?]

 It refers to the local directory containing all the packages
 in the directory structure you get when you download packages.
 So it is neither the directory where 'setup.exe' is located
 not the current working directory.

If it's neither the current working directory nor the directory
where setup.exe is located, then how does setup.exe know where
to find it?

-- 
Grant


--
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: file mirroring

2009-01-13 Thread Manish Sharma
 jedalaurin == jedalaurin  neonflux...@yahoo.com writes:

jedalaurin Tomas Zerolo wrote:
[snip: lengthy explanation (59 lines)]
jedalaurin server_A: Red hat
jedalaurin server_B: Window 2003 (cygwin)

jedalaurin i was on server_B running this command:

jedalaurin ssh -i /root/rsync/mirror-rsync-key
jedalaurin someu...@server_a:/var/www/ /var/www/

jedalaurin all files on server_A to be transferred on server_B
jedalaurin /var/www/ I got this error: Connection closed by server_A
jedalaurin rsync: connection unexpectedly closed (0 bytes received so
jedalaurin far) [receiver] rsync error: error in rsync protocol data
jedalaurin stream (code 12) at
jedalaurin /home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/io.c(632)
jedalaurin [receiver=3.0.4]

Do you have free disk space on server_A?

-- 
Manish

Life is beautiful.*
* Conditions apply.


--
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: fetchmail pops up console windows

2009-01-13 Thread Jason Tishler
Gary,

On Mon, Jan 12, 2009 at 11:23:08PM -0800, Gary Johnson wrote:
 On 2008-02-22, Dr. Volker Zell wrote:
  This still bugs me. fetchmail pops up console windows when
  delivering mails to procmail.  It doesn't matter if I run fetchmail
  directly from the commandline (in my case in a rxvt window under X)
  or as a service.
 
  Any hint what could cause this popup windows is appreciated. I'm
  running under XP SP2 with the latest packages installed.
 
 I'm having the same problem running fetchmail as a daemon from the
 command line.  Were you able to find a solution?

FWIW, I don't have this problem when running fetchmail as a service.

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

--
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: file mirroring

2009-01-13 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, Jan 13, 2009 at 05:30:40AM -0800, jedalaurin wrote:
 
 
 
 Tomas Zerolo wrote:
[...]
  As Larry said, this probably isn't Cygwin-specific. Rsync can be also

[...]

 server_A: Red hat
 server_B: Window 2003 (cygwin)
 
 i was on server_B running this command:
 
 
 ssh -i /root/rsync/mirror-rsync-key someu...@server_a:/var/www/ /var/www/

Turns out my crystal ball was wrong ;-)

 all files on server_A to be transferred on server_B /var/www/
 I got this error:
 Connection closed by server_A
 rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
 rsync error: error in rsync protocol data stream (code 12) at
 /home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/io.c(632)
 [receiver=3.0.4]
 
 I've already setup ssh on cygwin
 http://ist.uwaterloo.ca/~kscully/CygwinSSHD_W2K3.html.
 
 may I ask the alternative that you have the other way 'round. for our
 option.

No, actually this way round seems easier. You are using Cygwin for the
SSH client (you might want to use PuTTY if you aren't taking advantage
of other Cygwin features). 

(1) What happens if you invoke the ssh command on the Windows box?
(you should get a shell on the RedHat box).

(2) Can you see activity on the redhat's box sshd or auth log file (found
somewhere around /var/log -- places to look would be sshd.log,
auth.log, daemon.log syslog)?

HTH
- -- tomás
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFJbLAHBcgs9XrR2kYRAlARAJ0Ss1ovcflUFWrWkJE15gtiI+CfGgCeJk3p
sKdA+WkDXwArOZJ47eMdJYA=
=bG9S
-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: file mirroring

2009-01-13 Thread jedalaurin



मनीष wrote:
 
 jedalaurin == jedalaurin  neonflux...@yahoo.com writes:
 
 jedalaurin Tomas Zerolo wrote:
 [snip: lengthy explanation (59 lines)]
 jedalaurin server_A: Red hat
 jedalaurin server_B: Window 2003 (cygwin)
 
 jedalaurin i was on server_B running this command:
 
 jedalaurin ssh -i /root/rsync/mirror-rsync-key
 jedalaurin someu...@server_a:/var/www/ /var/www/
 
 jedalaurin all files on server_A to be transferred on server_B
 jedalaurin /var/www/ I got this error: Connection closed by server_A
 jedalaurin rsync: connection unexpectedly closed (0 bytes received so
 jedalaurin far) [receiver] rsync error: error in rsync protocol data
 jedalaurin stream (code 12) at
 jedalaurin /home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/io.c(632)
 jedalaurin [receiver=3.0.4]
 
 Do you have free disk space on server_A?
 
 -- 
 Manish
 
 Life is beautiful.*
 * Conditions apply.
 
 
 --
 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/
 
 
 

yes, we do have about 15GB++ server_A and on server_B 26GB++.
-- 
View this message in context: 
http://www.nabble.com/file-mirroring-tp21430068p21437587.html
Sent from the Cygwin list mailing list archive at Nabble.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: Help me please install OpenSSH Server on Windows Vista

2009-01-13 Thread Alexey Eremenko
On Mon, Jan 12, 2009 at 4:32 PM, Larry Hall (Cygwin)
reply-to-list-only...@cygwin.com wrote:
 Alexey Eremenko wrote:

 On Mon, Jan 12, 2009 at 4:47 AM, Alexey Eremenko al4...@gmail.com wrote:

 Hi All !

 I have installed Cygwin on Vista -- but was unable to install SSH server
 on it.

 ssh-host-config returns an error no matter what I do. Diabling UAC
 doesn't help.


 Here is what I get when I try to setup SSH on Vista:

 $ ssh-host-config
 chmod: changing permissions of `/etc': Permission denied
 setfacl: Permission denied
 chmod: changing permissions of `/var/log': Permission denied
 setfacl: Permission denied

 Are you running with elevated Administrator permissions?

Yes, I tried running that with:-- right click-run as
administrator-cygwin bash shell

If this is what you mean by elevated Administrator permissions... or
something else?
It does not help.

-- 
-Alexey Eromenko Technologov

--
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: fetchmail pops up console windows

2009-01-13 Thread Buchbinder, Barry (NIH/NIAID) [E]
Gary Johnson wrote on Tuesday, January 13, 2009 2:23 AM:
 On 2008-02-22, Dr. Volker Zell wrote:
 This still bugs me. fetchmail pops up console windows when
 delivering mails to procmail. It doesn't matter if I run fetchmail
 directly from the commandline (in my case in a rxvt window under X)
 or as a service.

 Any hint what could cause this popup windows is appreciated. I'm
 running under XP SP2 with the latest packages installed.

 I'm having the same problem running fetchmail as a daemon from the
 command line.  Were you able to find a solution?

If Dr. Zell cannot solve this problem, I doubt that anything I might
say would be of any use, especially since I have never been faced
with this problem.  But here goes.

Does `cygstart run fetchmail' do what you want?  (See `man run'.)

(Note that run has a `-wait' option.  This might be useful to the
person [in another recent thread] who wanted cygstart to have a
`--wait' option.)

Again, I apologize if this was so much wasted bandwidth.

- Barry
  Disclaimer: Statements made herein are not made on behalf of NIAID.


--
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: file mirroring

2009-01-13 Thread jedalaurin



Tomas Zerolo wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On Tue, Jan 13, 2009 at 05:30:40AM -0800, jedalaurin wrote:
 
 
 
 Tomas Zerolo wrote:
 [...]
  As Larry said, this probably isn't Cygwin-specific. Rsync can be also
 
 [...]
 
 server_A: Red hat
 server_B: Window 2003 (cygwin)
 
 i was on server_B running this command:
 
 
 ssh -i /root/rsync/mirror-rsync-key someu...@server_a:/var/www/ /var/www/
 
 Turns out my crystal ball was wrong ;-)
 
 all files on server_A to be transferred on server_B /var/www/
 I got this error:
 Connection closed by server_A
 rsync: connection unexpectedly closed (0 bytes received so far)
 [receiver]
 rsync error: error in rsync protocol data stream (code 12) at
 /home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/io.c(632)
 [receiver=3.0.4]
 
 I've already setup ssh on cygwin
 http://ist.uwaterloo.ca/~kscully/CygwinSSHD_W2K3.html.
 
 may I ask the alternative that you have the other way 'round. for our
 option.
 
 No, actually this way round seems easier. You are using Cygwin for the
 SSH client (you might want to use PuTTY if you aren't taking advantage
 of other Cygwin features). 
 
 (1) What happens if you invoke the ssh command on the Windows box?
 (you should get a shell on the RedHat box).
 
 (2) Can you see activity on the redhat's box sshd or auth log file (found
 somewhere around /var/log -- places to look would be sshd.log,
 auth.log, daemon.log syslog)?
 
 HTH
 - -- tomás
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)
 
 iD8DBQFJbLAHBcgs9XrR2kYRAlARAJ0Ss1ovcflUFWrWkJE15gtiI+CfGgCeJk3p
 sKdA+WkDXwArOZJ47eMdJYA=
 =bG9S
 -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/
 
 
 


(1) What happens if you invoke the ssh command on the Windows box?
(you should get a shell on the RedHat box).
on the window box(server_B):
-as root: i can login just like your in linux box.
-as someuser: where I've setup the rsync
http://www.howtoforge.com/mirroring_with_rsync:
It tend to disconnect me: like this Connection closed by server_A

(2) Can you see activity on the redhat's box sshd or auth log file (found
somewhere around /var/log -- places to look would be sshd.log,
auth.log, daemon.log syslog)? 

Sorry for the delay I cant find the ssd.log, auth.log, demon.log.

here is my /etc/ssh/sshd_config

#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10
#ShowPatchLevel no

# no default banner path
#Banner /some/path

# override default of no subsystems
Subsystem   sftp/usr/libexec/openssh/sftp-server
[r...@cdr1-218 /]# tail /etc/syslog.conf
cron.*  /var/log/cron

# Everybody gets emergency messages
*.emerg *

# Save news errors of level crit and higher in a special file.
uucp,news.crit  /var/log/spooler

# Save boot messages also to boot.log
local7.*/var/log/boot.log

-- 
View this message in context: 
http://www.nabble.com/file-mirroring-tp21430068p21438889.html
Sent from the Cygwin list mailing list archive at Nabble.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/



Fwd: rm seems to fail

2009-01-13 Thread greenup greenup
I seem to have problems with rm.
specifically, even when using -f it won't remove files, if the
permissions are restricted to read-only.  -f is supposed to be the I
don't care, just do it switch.

At one point moved my whole c:\cygwin hierarchy to a backup,
rebooted and reinstalled, to try and get a clean experience.  no
good.

d...@w2 ~
$ mkdir goo

d...@w2 ~
$ touch goo/foo

d...@w2 ~
$ chmod 400 goo/foo

d...@w2 ~
 $ rm -f goo/foo

d...@w2 ~
$ ls -la goo
total 0
drwxr-xr-x+  2 dz mkgroup-l-d 0 Jan 13 08:10 .
drwxrwx---+ 23 Administrators SYSTEM  0 Jan 13 08:10 ..
-r   1 dz mkgroup-l-d 0 Jan 13 08:10 foo

d...@w2 ~
$ getfacl goo
# file: goo
# owner: dz
# group: mkgroup-l-d
user::rwx
group::r-x
mask:rwx
other:r-x
default:user::rwx
default:group::r-x
default:other:r-x

d...@w2 ~
$ getfacl goo/foo
 # file: goo/foo
# owner: dz
# group: mkgroup-l-d
user::r--
group::---
mask:rwx
other:---

d...@w2 ~
$ which rm
/usr/bin/rm

d...@w2 ~
 $ ls -l /usr/bin/rm
-rwxr-x---+ 1 dz mkgroup-l-d 125952 Nov 13 20:54 /usr/bin/rm

d...@w2 ~
$ mount
d:\cygwin\bin on /usr/bin type system (binmode)
d:\cygwin\lib on /usr/lib type system (binmode)
d:\cygwin on / type system (binmode)
 c: on /cygdrive/c type system (binmode,noumount)
d: on /cygdrive/d type system (binmode,noumount)


I did some searching to see if others are having these problems, but I
must be using bad search terms or something.
help appreciated-
greenup


cygcheck.out
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: rm seems to fail

2009-01-13 Thread greenup greenup
oh, I forgot to mention: right after doing the rm, the return code is
success, even though it failed to actually remove the file.

d...@w2 ~
$ rm -f goo/foo

d...@w2 ~
$ echo $?
0

On 1/13/09, greenup greenup gree...@gmail.com wrote:
...
  d...@w2 ~
 $ mkdir goo

  d...@w2 ~
  $ touch goo/foo

  d...@w2 ~
  $ chmod 400 goo/foo

  d...@w2 ~
   $ rm -f goo/foo

  d...@w2 ~
  $ ls -la goo
  total 0
  drwxr-xr-x+  2 dz mkgroup-l-d 0 Jan 13 08:10 .
  drwxrwx---+ 23 Administrators SYSTEM  0 Jan 13 08:10 ..
  -r   1 dz mkgroup-l-d 0 Jan 13 08:10 foo

 ...

--
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: python 2.6

2009-01-13 Thread Jason Tishler
On Tue, Jan 13, 2009 at 03:17:01AM +0200, George Ciobanu wrote:
 First of all, sorry for breaking the thread, but I'm not a subscriber
 to this list. Please cc me on the next email.
 
 Just wanted to let you know that I don't see the issue you are
 describing in my environment when running make test. I've attached
 the cygcheck info.
 [snip]

I know of another user who does not have this problem too.  I noticed
that both of these users do not have openssl-devel installed.  As an
experiment, I removed the openssl-devel package and built a completely
new Python 2.6.1.  I was able to run test_asynchat in a loop 300 times
without any core dumps [1].  Additionally, I was also able to run the
regression test without any of the threading related tests core dumping.

As another experiment, I ran Cygwin Ports Python 2.6.1 and it core dumps
in exactly the same way as the one I built when I had the openssl-devel
package installed.

Yaakov, did you have openssl-devel installed when you built Python
2.6.1?  If so, are you able to run the regression test [2] without
threading related problems?

George, are you willing to install openssl-devel, build a completely new
Python, run the regression test [2], and report back your findings to the
list?

Thanks,
Jason

[1] Although test_asynchat failed occasionally (about 5% of the time)
with a sem_init: Resource temporarily unavailable error.

[2] Run at least test_asynchat with something like the following:
./python.exe -E -tt Lib/test/regrtest.py -l test_asynchat

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

--
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: fetchmail pops up console windows

2009-01-13 Thread Gary Johnson
On 2009-01-13, Jason Tishler wrote:
 Gary,
 
 On Mon, Jan 12, 2009 at 11:23:08PM -0800, Gary Johnson wrote:
  On 2008-02-22, Dr. Volker Zell wrote:
   This still bugs me. fetchmail pops up console windows when
   delivering mails to procmail.  It doesn't matter if I run fetchmail
   directly from the commandline (in my case in a rxvt window under X)
   or as a service.
  
   Any hint what could cause this popup windows is appreciated. I'm
   running under XP SP2 with the latest packages installed.
  
  I'm having the same problem running fetchmail as a daemon from the
  command line.  Were you able to find a solution?
 
 FWIW, I don't have this problem when running fetchmail as a service.

I saw that in an earlier post and tried to follow the instructions
in /usr/share/doc/Cygwin/fetchmail-6.3.9.README, but I get this
result:

$ cygrunsrv --install fetchmail --path /usr/bin/fetchmail --env 
HOME=$HOME --user $USERDOMAIN\\$USERNAME '-w ' --args '--daemon 300 
--nodetach' --shutdown

$ cygrunsrv -S fetchmail
cygrunsrv: Error starting a service: StartService:  Win32 error 1069:
The service did not start due to a logon failure.

I have both cron and sshd running as services, so that much works,
but they may be running as the system user (whatever it's called).
I don't know how to diagnose this sort of failure.

Regards,
Gary



--
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: fetchmail pops up console windows

2009-01-13 Thread Dr. Volker Zell
 Gary Johnson writes:

 On 2008-02-22, Dr. Volker Zell wrote:
 Hi
 
 This still bugs me. fetchmail pops up console windows when delivering
 mails to procmail.
 It doesn't matter if I run fetchmail directly from the commandline (in
 my case in a rxvt window under X) or as a service.

 Any hint what could cause this popup windows is appreciated. I'm running
 under XP SP2 with the latest packages installed.

 I'm having the same problem running fetchmail as a daemon from the
 command line.  Were you able to find a solution?

Yes, cockpit error, I didn't follow the cygwin fetchmail README:

fetchmail --nodetach is your friend
  ^^
  
 Regards,
 Gary

Ciao
  Volker
  

--
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: rm seems to fail

2009-01-13 Thread Mark J. Reed
On Tue, Jan 13, 2009 at 12:16 PM, greenup wrote:
 oh, I forgot to mention: right after doing the rm, the return code is
 success, even though it failed to actually remove the file.

rm with -f is silent about certain types of errors, usually of the
file doesn't exist variety.  So that sounds like rm thinks that
either it successfully deleted the file or it didn't exist in the
first place.

Is rm without -f able to remove goo/foo (after you confirm at the
prompt)?  If not, does it generate an error indication?

--
Mark J. Reed markjr...@gmail.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: file mirroring

2009-01-13 Thread Thorsten Kampe
* jedalaurin (Mon, 12 Jan 2009 23:48:51 -0800 (PST))
 rsync: connection unexpectedly closed (0 bytes received so far) 
[receiver]
 rsync error: error in rsync protocol data stream (code 12) at
 /home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/io.c(632)
 [receiver=3.0.4]
 
 after running 
 
 rsync -avz --delete --exclude=**/stats --exclude=**/error
 --exclude=**/files/pictures -e ssh -i /root/rsync/mirror-rsync-key
 someu...@server1.example.com:/var/www/ /var/www/

Keep it simple, stupid: try without the excludes; if this doesn't work, 
try with ssh.
 
 our mirror server is using windows 2003 r3 on cygwin 2.573.2.3 and out main
 server is on Red Hat.
 
 Another question is there another way(s) to do the file synchronization on
 this setup?

sitecopy

Thorsten


--
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: file mirroring

2009-01-13 Thread Thorsten Kampe
* Thorsten Kampe (Tue, 13 Jan 2009 19:44:22 +0100)
 * jedalaurin (Mon, 12 Jan 2009 23:48:51 -0800 (PST))
  rsync: connection unexpectedly closed (0 bytes received so far) 
 [receiver]
  rsync error: error in rsync protocol data stream (code 12) at
  /home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/io.c(632)
  [receiver=3.0.4]
  
  after running 
  
  rsync -avz --delete --exclude=**/stats --exclude=**/error
  --exclude=**/files/pictures -e ssh -i /root/rsync/mirror-rsync-key
  someu...@server1.example.com:/var/www/ /var/www/
 
 Keep it simple, stupid: try without the excludes; if this doesn't work, 
 try with ssh.

/without/, of course

T.


--
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: rm seems to fail

2009-01-13 Thread greenup greenup
On 1/13/09, Mark J. Reed markjr...@gmail.com wrote:
 On Tue, Jan 13, 2009 at 12:16 PM, greenup wrote:
   oh, I forgot to mention: right after doing the rm, the return code is
   success, even though it failed to actually remove the file.
 rm with -f is silent about certain types of errors, usually of the
  file doesn't exist variety.  So that sounds like rm thinks that

  Is rm without -f able to remove goo/foo (after you confirm at the
  prompt)?  If not, does it generate an error indication?
Nope. no error.  Looking farther for an error, I tried to see if I
could get more verbose, and found -v.  It seemed to just further
indicate that rm thought it had done its job.

d...@w2 ~
$ rm -v goo/foo
rm: remove write-protected regular empty file `goo/foo'? y
removed `goo/foo'

d...@w2 ~
$ echo $?
0

d...@w2 ~
$ ls -la goo
total 0
drwxr-xr-x+  2 dz mkgroup-l-d 0 Jan 13 08:10 .
drwxrwx---+ 23 Administrators SYSTEM  0 Jan 13 10:01 ..
-r   1 dz mkgroup-l-d 0 Jan 13 08:18 foo

obviously, LOTS AND LOTS of scripts and makefiles depend on rm -f.
This is bad. (for me, at least)

--
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: rm seems to fail

2009-01-13 Thread greenup greenup
oops.  forgot to scrub mail headers for email addrs.  Sorry about
that.  does the list archive scrub?
-greenup
On 1/13/09, greenup greenup wrote:
 On 1/13/09, Mark J. Reed  wrote:
   On Tue, Jan 13, 2009 at 12:16 PM, greenup wrote:

--
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: automate SSH-HOST-CONFIG

2009-01-13 Thread blazt

Hi Dimitri, thanks for your help.

I created the script based on yours but it never sends the expect back to
the program.

#!/bin/bash
#!./expect -f 
chmod +r /etc/passwd
chmod +r /etc/group
chmod +x /var

echo Starting Script

ssh-host-config 
# Host keys generation is lengthy procedure
set timeout 20

expect {
  *** Query: Overwrite existing /etc/ssh_config file? (yes/no) { send
yes\r;
exp_continue }
  Overwrite existing /etc/sshd_config file? (yes/no) { send yes\r;
exp_continue }
  Should privilege separation be used? (yes/no) { send yes\r 
exp_continue}
  Say no if it is already installed as a service) (yes/no) { send
yes\r
exp_continue}
  Enter the value of CYGWIN for the daemon: [ntsec] { send \r
exp_continue}
  Do you want to use a different name? (yes/no)  { send  no\r
exp_continue}
  Please enter the password for user 'cyg_server': { send password\r
exp_continue}
  Reenter:  { send password }
} 

echo end First Part
set timeout 5 

expect {
  Should this script create a local user 'sshd' on this machine?
(yes/no) { send yes\r }
  new local account 'sshd'? (yes/no) { send yes\r }
}

I took out the exec so I could see the script run and it simply hangs at the
first query where it asks to overwrite existing files. Is there anything
else I need to do to get this to work with cygwin?




Dmitry Semyonov-2 wrote:
 
 Hi Johnny,
 
 On Tue, Jan 13, 2009 at 03:28, blazt wrote:

 I am not sure how to do a except script. I have been looking at what I
 can
 find on the net.
 
 It is 'expect', not 'except'. It's enough to read 'man expect' for basics.
 You'll have to learn some Tcl docs for advanced usage, (not required
 for ssh-host-config automation).
 
 
 Would I pass this command into the except part?
 
 See an excerpt from my expect script below. I don't provide the full
 version, as it is complicated more than necessary for the
 demonstration due to support of different OSes and corner cases. (Also
 it was not verified with the latest ssh-host-config.)
 
 
 #!/bin/expect -f
 
 # required on Win2k3
 exec chmod +r /etc/passwd
 exec chmod +r /etc/group
 exec chmod +x /var
 
 spawn ssh-host-config
 
 # Host keys generation is lengthy procedure
 set timeout 20
 
 expect {
   Overwrite existing /etc/ssh_config file? (yes/no) { send yes\r;
 exp_continue }
   Overwrite existing /etc/sshd_config file? (yes/no) { send yes\r;
 exp_continue }
   Should privilege separation be used? (yes/no) { send yes\r }
 }
 
 set timeout 5
 
 expect {
   Should this script create a local user 'sshd' on this machine?
 (yes/no) { send yes\r }
   new local account 'sshd'? (yes/no) { send yes\r }
 }
 
 # [skipped]
 
 expect eof { exec cygrunsrv -S sshd }
 
 
 -- 
 ...Bye..Dmitry.
 
 --
 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/
 
 
 

-- 
View this message in context: 
http://www.nabble.com/automate-SSH-HOST-CONFIG-tp21383170p21442493.html
Sent from the Cygwin list mailing list archive at Nabble.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: How to make setup.exe default to local-install?

2009-01-13 Thread Grant Edwards
On 2009-01-13, Larry Hall (Cygwin) reply-to-list-only...@cygwin.com wrote:
 On 01/12/2009, Grant Edwards wrote:
 It looks like a batch file would work, but it pops up a
 nuisance console window.  [Question: does local directory
 refer to the directory where setup.exe is located or to the
 current working directory?]

 It refers to the local directory containing all the packages in the
 directory structure you get when you download packages.

We haven't downloaded packages yet.  All we've done is start up
setup.exe and we're sitting looking at the first screen.

 So it is neither the directory where 'setup.exe' is located
 not the current working directory.

If you believe the setup.exe source code, it is the currrent
working directory.  The three choices are:

 IDC_SOURCE_DOWNLOAD
 IDC_SOURCE_NETINST
 IDC_SOURCE_CWD 

AFAICT, CWD stands for current working directory.

-- 
Grant Edwards   grante Yow! I want another
  at   RE-WRITE on my CEASAR
   visi.comSALAD!!


--
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: IP_PKTINFO in cygwin

2009-01-13 Thread Bill Florac
Corinna Vinschen corinna-cygwin at cygwin.com writes:

 
 On Jan 13 02:26, Bill Florac wrote:
  Does cygwin support the setsockopt() - IP_PKTINFO to retreive the 
destination 
  address of a incomming UDP packet received via recvmsg()?  I have made 
  numberous attempts but CMSG_FIRSTHDR() always returns NULL. The same code 
  works find under linux.  I'm guessing that cygwin is using winsock 
underneath 
 
 That's right.
 
  and I beleive this would only be available under winsock 2.2.  Is there a 
  means to build cygwin to complile with this version of winsock?
 
 No, that's not possible, since it doesn't work that way.   Cygwin is
 using OS functions to emulate POSIX functionality, so calling Cygwin's
 recvmsg is not just a direct call to the equivalent Winsock function
 WSARecvMsg.  WSARecvMsg is only available starting with Windows XP.
 Earlier systems only have WSARecvFrom, so that's what Cygwin is using
 under the hood to support older OS versions as well.  The
 sendmsg/recvmsg control data functionality wasn't that important so far.
 
 In theory, that can be changed for Cygwin 1.7 so that WSARecvMsg is used
 on XP and later, but that requires more work than just replacing
 WSARecvFrom with WSARecvMsg.  I'm not even sure our header files are
 sufficient for that.  I'm rather reluctant to change that right now,
 but that's certainly something to consider for a later release.
 
 Final note:  http://cygwin.com/acronyms/#PTC
 
 Corinna
 

So recvmsg() maps to WSARecvFrom() :( I suppose it should also return fail if 
the setsockopt() is called with an option that requires recvmsg() to get? And, 
perhaps recmsg() should also not be supported forcing users to use recvfrom()?

Well, what I need is a means to get the UDP (multicast) destination address. 
While it would be possible to make some other new function for this it seem to 
make the most since to use what currently exists (yet a bit obscure). It would 
also make the code more portable.

Bill





--
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: How to make setup.exe default to local-install?

2009-01-13 Thread Grant Edwards
On 2009-01-13, Grant Edwards gra...@visi.com wrote:
 On 2009-01-13, Larry Hall (Cygwin) reply-to-list-only...@cygwin.com wrote:
 On 01/12/2009, Grant Edwards wrote:
 It looks like a batch file would work, but it pops up a
 nuisance console window.  [Question: does local directory
 refer to the directory where setup.exe is located or to the
 current working directory?]

 It refers to the local directory containing all the packages in the
 directory structure you get when you download packages.

 We haven't downloaded packages yet.  All we've done is start up
 setup.exe and we're sitting looking at the first screen.

My mistake.  We're at the second screen Choose a download source.

-- 
Grant Edwards   grante Yow! I'm RELIGIOUS!!
  at   I love a man with
   visi.coma HAIRPIECE!!  Equip me
   with MISSILES!!


--
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: fetchmail pops up console windows

2009-01-13 Thread Jason Tishler
Gary,

On Tue, Jan 13, 2009 at 09:55:36AM -0800, Gary Johnson wrote:
 On 2009-01-13, Jason Tishler wrote:
  FWIW, I don't have this problem when running fetchmail as a service.
 
 I saw that in an earlier post and tried to follow the instructions in
 /usr/share/doc/Cygwin/fetchmail-6.3.9.README, but I get this result:
 
 [snip]
 
 $ cygrunsrv -S fetchmail
 cygrunsrv: Error starting a service: StartService:  Win32 error 1069:
 The service did not start due to a logon failure.
 
 I have both cron and sshd running as services, so that much works,
 but they may be running as the system user (whatever it's called).
 I don't know how to diagnose this sort of failure.

Did you heed the following from the README?

o the $USERDOMAIN\\$USERNAME account must have the Log on as a
  service user right for Cygwin fetchmail to start as a NT service

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

--
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: rm seems to fail

2009-01-13 Thread Mark J. Reed
On Tue, Jan 13, 2009 at 1:57 PM, greenup wrote:
 d...@w2 ~
 $ rm -v goo/foo
 rm: remove write-protected regular empty file `goo/foo'? y
 removed `goo/foo'

 d...@w2 ~
 $ echo $?
 0

 d...@w2 ~
 $ ls -la goo
 total 0
 drwxr-xr-x+  2 dz mkgroup-l-d 0 Jan 13 08:10 .
 drwxrwx---+ 23 Administrators SYSTEM  0 Jan 13 10:01 ..
 -r   1 dz mkgroup-l-d 0 Jan 13 08:18 foo

 obviously, LOTS AND LOTS of scripts and makefiles depend on rm -f.
 This is bad. (for me, at least)

Based on the above, the -f has nothing to do with it.   And this is
not a universal problem; rm has no trouble removing readonly files on
my Cygwin system, which is also 1.5.25.

Your cygcheck output indicates you have a C:\tools\unix\rm.exe in your
PATH; the Cygwin one is listed first by cygcheck, but it's worth
double-checking that you're executing the Cygwin one in the particular
shell environment where you're running these tests.

If it really is the Cygwin rm, it sounds like the unlink(2) call is
reporting success but not actually deleting the file.  That's easy to
check by calling unlink via a different route, e.g. perl -e
'unlink(goo/foo)' .

-- 
Mark J. Reed markjr...@gmail.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: python 2.6

2009-01-13 Thread George Ciobanu

Jason Tishler wrote:

George, are you willing to install openssl-devel, build a completely new
Python, run the regression test [2], and report back your findings to the
list?
  
After I've installed openssl-dev and rebuilt from scratch Python. I 
could see both error conditions:


sem_init: Resource temporarily unavailable - surprisingly enough I've seen it 
on the first run only

$  ./python.exe -E -tt Lib/test/regrtest.py -l test_asynchat
test_asynchat
 9 [unknown (0xE28)] python 2580 _cygtls::handle_exceptions: Error while du
mping state (probably corrupted stack)
1600540 [unknown (0x1A0)] python 2580 _cygtls::handle_exceptions: Error while du
mping state (probably corrupted stack)
Segmentation fault (core dumped)


George

--
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: rm seems to fail

2009-01-13 Thread greenup greenup
not a universal problem is good and bad...  good that this is
widespread, bad that it's harder to debug on just my system.

I renamed the other rm, (after checking to see if it worked... it
does, but even though it can cope with forward slashes, it hates
/cygdrive/d/...

I also tried backing down my coreutils and cygwin packages to 6.10-1
and 1.5.25-14, respectively (the oldest ones setup offered) that
didn't seem to help.

your perl test was a nice try; but it also did not remove the file,
which is revealing.
did I try downgrading the wrong packages? or is there another
direction I should look?
-greenup
(thanks for the quick help, by the way!)

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



setup.exe 2.592-1.7 built from sources seems buggy

2009-01-13 Thread Grant Edwards
I built setup.exe from the sources in setup-2.592-1.7special.tar.bz2,
and the resulting program seems a bit buggy.  There have been
two problems I've noticed so far:

 1) It stopped and complatined that release/gcc/gcc-3.4.4-3.tar.bz2
wasn't a valid file format.  Yet tar seems quite happy with
it.  

 2) About 6-8 times during the install, it stopped and
complained 

   Can't open file://D:\cygwin/ for reading: No such file

The working directory when setup.exe was started was
d:/cygwin, and the packages are all in d:/cygwin/release   

I just clicked OK on all the error dialog boxes and the
install continued and produced what appears to be a working
install.

Should I be using an older version of setup sources?  The
working setup.exe that I downloaded yesterday appears to be
version 2.573.2.3.

-- 
Grant Edwards   grante Yow! Boys, you have ALL
  at   been selected to LEAVE th'
   visi.comPLANET in 15 minutes!!


--
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: rm seems to fail

2009-01-13 Thread Mark J. Reed
On Tue, Jan 13, 2009 at 2:52 PM, greenup wrote:
 your perl test was a nice try; but it also did not remove the file,
 which is revealing.

I should have included a return code check:

perl -e 'unlink(goo/foo) or die $!'

I suspect that will still run silently without removing the file,
indicating that the problem is indeed in the unlink(2) system call.
Which *should* succeed in any case; unlink() doesn't care about the
permissions of the target file, only of the directory containing it.

I see your original message confirmed that you were running Cygwin's
rm, btw; sorry for the extra hoop-jumping there.

So at this point I'm at a loss.  I'm running the same version of
Cygwin (though on Vista, not XP) on the same type of filesystem (NTFS)
and not seeing the issue.  Is there any way this could be
BLODA-induced?

 --
Mark J. Reed markjr...@gmail.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/



setup 2.573.2.3 configure fails libgpg-error/libgcrypt

2009-01-13 Thread Grant Edwards
I'm tyring to build setup 2.573.2.3, but the configure always
fails like this:


   checking whether padlock support is requested... yes
   checking for gpg-error-config... (cached) 
/home/grante/setup-2.573.2.3/gpg-error-config-fake 
--dir=/home/grante/setup-2.573.2.3
   checking for GPG Error - version = 1.4... ./configure: line 23286: 
/home/grante/setup-2.573.2.3/gpg-error-config-fake: No such file or directory
   no
   configure: error: libgpg-error is needed.
   See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ .
   configure: error: ./configure failed for libgcrypt

libgcrypt, libgcrypt-devel, libgcrypt11, and libgpg-error are
all installed.

   $ gpg-error-config --version
   1.6
   $ libgcrypt-config --version
   1.4.1

Does anybody understand why the configure is failing?

It appears that setup.exe includes it's own private copy of
libgcrypt, and it thinks there's supposed to be a file named
setup-2.573.2.3/gpg-error-config-fake and it can't find it?

-- 
Grant Edwards   grante Yow! Don't SANFORIZE me!!
  at   
   visi.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: setup 2.573.2.3 configure fails libgpg-error/libgcrypt

2009-01-13 Thread Grant Edwards
On 2009-01-13, Grant Edwards gra...@visi.com wrote:
 I'm tyring to build setup 2.573.2.3, but the configure always
 fails like this:


checking whether padlock support is requested... yes
checking for gpg-error-config... (cached) 
 /home/grante/setup-2.573.2.3/gpg-error-config-fake 
 --dir=/home/grante/setup-2.573.2.3
checking for GPG Error - version = 1.4... ./configure: line 23286: 
 /home/grante/setup-2.573.2.3/gpg-error-config-fake: No such file or directory
no
configure: error: libgpg-error is needed.
See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ .
configure: error: ./configure failed for libgcrypt

 libgcrypt, libgcrypt-devel, libgcrypt11, and libgpg-error are
 all installed.

$ gpg-error-config --version
1.6
$ libgcrypt-config --version
1.4.1

 Does anybody understand why the configure is failing?

 It appears that setup.exe includes it's own private copy of
 libgcrypt, and it thinks there's supposed to be a file named
 setup-2.573.2.3/gpg-error-config-fake and it can't find it?

AFAICT, somebody removed the file gpg-error-config-fake
claiming it wasn't needed anymore:

http://www.cygwin.com/ml/cygwin-apps-cvs/2008-q2/msg00038.html

Except that it was needed.

Can somebody loan me hint on how to go about building 2.573.2.3?

(or any other snapshot that is likely to work?)

-- 
Grant Edwards   grante Yow! FROZEN ENTREES may
  at   be flung by members of
   visi.comopposing SWANSON SECTS ...


--
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: How to make setup.exe default to local-install?

2009-01-13 Thread Larry Hall (Cygwin)

Grant Edwards wrote:

On 2009-01-13, Larry Hall (Cygwin) reply-to-list-only-lh AT cygwin DOT com 
wrote:

  ^^
http://cygwin.com/acronyms/#PCYMTNQREAIYR.  Thanks.

On 01/12/2009, Grant Edwards wrote:

It looks like a batch file would work, but it pops up a
nuisance console window.  [Question: does local directory
refer to the directory where setup.exe is located or to the
current working directory?]

It refers to the local directory containing all the packages
in the directory structure you get when you download packages.
So it is neither the directory where 'setup.exe' is located
not the current working directory.


If it's neither the current working directory nor the directory
where setup.exe is located, then how does setup.exe know where
to find it?


Are you only interested in knowing where the local directory defaults
to the first time it is run on a machine without a Cygwin installation?
If so, then yes, it is CWD.  Otherwise, the local directory is the local
package directory where packages were downloaded last time, which may
not be the synonymous with the CWD at the time that you start 'setup.exe'.
In any case, the local directory to use is stored in
'/etc/setup/last-cache'.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

--
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: Help me please install OpenSSH Server on Windows Vista

2009-01-13 Thread Larry Hall (Cygwin)

Alexey Eremenko wrote:

On Mon, Jan 12, 2009 at 4:32 PM, Larry Hall (Cygwin)
reply-to-list-only...@cygwin.com wrote:

Alexey Eremenko wrote:

On Mon, Jan 12, 2009 at 4:47 AM, Alexey Eremenko al4...@gmail.com wrote:

Hi All !

I have installed Cygwin on Vista -- but was unable to install SSH server
on it.

ssh-host-config returns an error no matter what I do. Diabling UAC
doesn't help.


Here is what I get when I try to setup SSH on Vista:

$ ssh-host-config
chmod: changing permissions of `/etc': Permission denied
setfacl: Permission denied
chmod: changing permissions of `/var/log': Permission denied
setfacl: Permission denied

Are you running with elevated Administrator permissions?


Yes, I tried running that with:-- right click-run as
administrator-cygwin bash shell

If this is what you mean by elevated Administrator permissions... or
something else?
It does not help.



Seeing the output (*attached*) from 'cygcheck -s -r -v' as requested by
http://cygwin.com/problems.html would help.  What does 'ls -ld /etc'
say?  What does 'getfacl /etc' say?  What about 'cacls c:\cygwin\etc'?

In other words, who has permissions to change '/etc' and who's it's
owner?  Sounds like you need to rejigger ownerships/permissions to make
this work.  Perhaps try that based on the output of the above.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

--
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: MinTTY Double Click Issue

2009-01-13 Thread ERIC HO

Hi, Andy, you are right. Adjusting the Window's double click from fast to 
medium corrects the problem. I hardly use Windows applications nowadays with 
Cygwin available. Thanks again.
 
Eric.

--
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: rm seems to fail

2009-01-13 Thread Larry Hall (Cygwin)

Mark J. Reed wrote:

On Tue, Jan 13, 2009 at 2:52 PM, greenup wrote:

your perl test was a nice try; but it also did not remove the file,
which is revealing.


I should have included a return code check:

perl -e 'unlink(goo/foo) or die $!'

I suspect that will still run silently without removing the file,
indicating that the problem is indeed in the unlink(2) system call.
Which *should* succeed in any case; unlink() doesn't care about the
permissions of the target file, only of the directory containing it.

I see your original message confirmed that you were running Cygwin's
rm, btw; sorry for the extra hoop-jumping there.

So at this point I'm at a loss.  I'm running the same version of
Cygwin (though on Vista, not XP) on the same type of filesystem (NTFS)
and not seeing the issue.  Is there any way this could be
BLODA-induced?


Sounds like it.  His cygcheck output names one possible source of conflict:


Potential app conflicts:

Sonic Solutions burning software containing DLA component



--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

--
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: fetchmail pops up console windows

2009-01-13 Thread Gary Johnson
On 2009-01-13, Jason Tishler wrote:
 Gary,
 
 On Tue, Jan 13, 2009 at 09:55:36AM -0800, Gary Johnson wrote:
  On 2009-01-13, Jason Tishler wrote:
   FWIW, I don't have this problem when running fetchmail as a service.
  
  I saw that in an earlier post and tried to follow the instructions in
  /usr/share/doc/Cygwin/fetchmail-6.3.9.README, but I get this result:
  
  [snip]
  
  $ cygrunsrv -S fetchmail
  cygrunsrv: Error starting a service: StartService:  Win32 error 1069:
  The service did not start due to a logon failure.
  
  I have both cron and sshd running as services, so that much works,
  but they may be running as the system user (whatever it's called).
  I don't know how to diagnose this sort of failure.
 
 Did you heed the following from the README?
 
 o the $USERDOMAIN\\$USERNAME account must have the Log on as a
   service user right for Cygwin fetchmail to start as a NT service

I heeded it in the sense that I read it and understood that it might
be the problem.  I did go searching in the Control Panel for likely
utilities, but I couldn't find anything in User Accounts or anywhere
else that would let me set user rights or that even told me what
they were.  I did not search Windows Help and Support.  That sort of
cluelessness was meant to be implicit in the statement, I don't
know how to diagnose this sort of failure, but I suppose I should
have been more clear.

So how does one set that right?

Regards,
Gary



--
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: fetchmail pops up console windows

2009-01-13 Thread Larry Hall (Cygwin)

Gary Johnson wrote:

On 2009-01-13, Jason Tishler wrote:

Gary,

On Tue, Jan 13, 2009 at 09:55:36AM -0800, Gary Johnson wrote:

On 2009-01-13, Jason Tishler wrote:

FWIW, I don't have this problem when running fetchmail as a service.

I saw that in an earlier post and tried to follow the instructions in
/usr/share/doc/Cygwin/fetchmail-6.3.9.README, but I get this result:

[snip]

$ cygrunsrv -S fetchmail
cygrunsrv: Error starting a service: StartService:  Win32 error 1069:
The service did not start due to a logon failure.

I have both cron and sshd running as services, so that much works,
but they may be running as the system user (whatever it's called).
I don't know how to diagnose this sort of failure.

Did you heed the following from the README?

o the $USERDOMAIN\\$USERNAME account must have the Log on as a
  service user right for Cygwin fetchmail to start as a NT service


I heeded it in the sense that I read it and understood that it might
be the problem.  I did go searching in the Control Panel for likely
utilities, but I couldn't find anything in User Accounts or anywhere
else that would let me set user rights or that even told me what
they were.  I did not search Windows Help and Support.  That sort of
cluelessness was meant to be implicit in the statement, I don't
know how to diagnose this sort of failure, but I suppose I should
have been more clear.

So how does one set that right?


'/usr/share/csih/cygwin-service-installation-helper.sh' has this:

editrights -u ${user} -t SeServiceLogonRight

Try that, substituting the appropriate user for your situation and
Windows version.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

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



ps COMMAND column

2009-01-13 Thread Paul McFerrin

Is there a way to get ps to display more on the COMMAND column?

It appears to display only argv[0] and none of the others.  So when 
executing ksh scripts, they all show up as ksh.  Or if you have 
multiple executions of a single command, it makes it hard to identify 
which one you want to kill off.


- Paul

--
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: rm seems to fail

2009-01-13 Thread greenup greenup
On 1/13/09, Mark J. Reed wrote:
 On Tue, Jan 13, 2009 at 2:52 PM, greenup wrote:
   your perl test was a nice try; but it also did not remove the file,
   which is revealing.
 I should have included a return code check:
  perl -e 'unlink(goo/foo) or die $!'

the return code check worked!! (removed the file)
WHAT???

I went back and checked my previous tests.
THEY worked.
ummm.

I really want to know the root cause, so I'm re-upgrading my cygwin
dll and coreutils, seeing if the dll was hiding, or some other cause
of latency... I don't think I did anything else that could have fixed
the problem.   I haven't messed with my path.  I haven't really
deleted anything but goo and foo all day.  I'll let you know.

--
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: setup 2.573.2.3 configure fails libgpg-error/libgcrypt

2009-01-13 Thread Dave Korn
Grant Edwards wrote:
 On 2009-01-13, Grant Edwards wrote:
 I'm tyring to build setup 2.573.2.3, but the configure always
 fails like this:


checking whether padlock support is requested... yes
checking for gpg-error-config... (cached)
 /home/grante/setup-2.573.2.3/gpg-error-config-fake 
 --dir=/home/grante/setup-2.573.2.3
checking for GPG Error - version = 1.4... ./configure: line 23286:
 /home/grante/setup-2.573.2.3/gpg-error-config-fake: No such file or directory
no
configure: error: libgpg-error is needed.
See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ .
configure: error: ./configure failed for libgcrypt

  That's definitely a bit odd:

/tmp/setup-2.573.2.3/setup-2.573.2.3 $ wc -l ./configure
21895 ./configure

The error message appears to come from a couple of thousand lines after the EOF!

 libgcrypt, libgcrypt-devel, libgcrypt11, and libgpg-error are
 all installed.

  Yep, but as you correctly infer later, they aren't used.

 Does anybody understand why the configure is failing?

 It appears that setup.exe includes it's own private copy of
 libgcrypt, and it thinks there's supposed to be a file named
 setup-2.573.2.3/gpg-error-config-fake and it can't find it?

 AFAICT, somebody removed the file gpg-error-config-fake
 claiming it wasn't needed anymore:

 http://www.cygwin.com/ml/cygwin-apps-cvs/2008-q2/msg00038.html

 Except that it was needed.

  That's a red herring; take a closer look at the full history:

http://cygwin.com/cgi-bin/cvsweb.cgi/setup/gpg-error-config-fake?cvsroot=cygwin-apps

  First off, that removal you cited was from mainline rather than the release
branch.  Second, it was done after applying a patch that did indeed obviate
the need for it: see r2.23 of configure.in, applied 5 minutes earlier.

http://cygwin.com/cgi-bin/cvsweb.cgi/setup/configure.in?cvsroot=cygwin-apps

  And third, I reverted both patches a few hours later after it turned out to
cause libgcrypt to get rebuilt every time you did make even when nothing had
changed.

  Looking in the snapshot tarball, it seems that configure.in does indeed
have the original (unpatched or reverted) code, so why doesn't it have the
gpg-error-config-fake script as well?  I went digging in the source directory
where I originally built the tarball that's currently on the cygwin website,
and the file is there in the sources, but it's not in the generated tarball!

  It turns out that adding files to the sources doesn't automatically cause
them to end up in the source tarball; you need to list them explicitly.  That
happens for you if they're C or C++ source or header files, but not for shell
scripts.  Argh, my bad!  Thanks for spotting it.

 Can somebody loan me hint on how to go about building 2.573.2.3?

 (or any other snapshot that is likely to work?)

  You can download a copy from the sourceware CVS repository via the web
interface here:

http://cygwin.com/cgi-bin/cvsweb.cgi/~checkout~/setup/gpg-error-config-fake?cvsroot=cygwin-apps

and drop it in with the rest of the sources.  Or you can hang around a while,
and I'll upload a fixed tarball.  (I'll just manually add the missing stuff
and re-upload it).

cheers,
  DaveK

--
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: rm seems to fail

2009-01-13 Thread Dave Korn
Larry Hall (Cygwin) wrote:
 Mark J. Reed wrote:
 On Tue, Jan 13, 2009 at 2:52 PM, greenup wrote:

 So at this point I'm at a loss.  I'm running the same version of
 Cygwin (though on Vista, not XP) on the same type of filesystem (NTFS)
 and not seeing the issue.  Is there any way this could be
 BLODA-induced?

 Sounds like it.  His cygcheck output names one possible source of conflict:

 Potential app conflicts:

 Sonic Solutions burning software containing DLA component


  That's an unusual one for BLODA.  It generally causes no problems, but if
you disable the startup component (as you might do when tuning your boot
times, for example) then it starts to malfunction very oddly.  I haven't seen
it cause problems other times myself.

cheers,
  DaveK

--
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: How to make setup.exe default to local-install?

2009-01-13 Thread Grant Edwards
On 2009-01-13, Larry Hall (Cygwin) reply-to-list-only...@cygwin.com wrote:

 Are you only interested in knowing where the local directory defaults
 to the first time it is run on a machine without a Cygwin installation?

Yes.

 If so, then yes, it is CWD.

Thanks for confirming that.  That's what my experiments and
examination of setup.exe sources have shown.

-- 
Grant Edwards   grante Yow! !  Now I understand
  at   advanced MICROBIOLOGY and
   visi.comth' new TAX REFORM laws!!


--
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: rm seems to fail

2009-01-13 Thread Dave Korn
greenup greenup wrote:
 On 1/13/09, Mark J. Reed wrote:
 On Tue, Jan 13, 2009 at 2:52 PM, greenup wrote:
   your perl test was a nice try; but it also did not remove the file,
   which is revealing.
 I should have included a return code check:
  perl -e 'unlink(goo/foo) or die $!'

 the return code check worked!! (removed the file)
 WHAT???

 I went back and checked my previous tests.
 THEY worked.
 ummm.

 I really want to know the root cause, so I'm re-upgrading my cygwin
 dll and coreutils, seeing if the dll was hiding, or some other cause
 of latency... I don't think I did anything else that could have fixed
 the problem.   I haven't messed with my path.  I haven't really
 deleted anything but goo and foo all day.  I'll let you know.

  What AV have you got?  Sometimes your AV can keep a handle open to a file
(for scanning) for some time after you've last accessed it.  If you're trying
to delete it in that window (and this could happen every time automatically if
'rm' does a stat() to check the file exists and is readable right before
calling unlink()), then it might fail because it's in use.  Maybe your AV was
doing that for a while and now it's stopped but this is pretty speculative.

cheers,
  DaveK

--
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: setup 2.573.2.3 configure fails libgpg-error/libgcrypt

2009-01-13 Thread Grant Edwards
On 2009-01-13, Dave Korn dave.korn.cyg...@googlemail.com wrote:

   Looking in the snapshot tarball, it seems that configure.in does indeed
 have the original (unpatched or reverted) code, so why doesn't it have the
 gpg-error-config-fake script as well?  I went digging in the source directory
 where I originally built the tarball that's currently on the cygwin website,
 and the file is there in the sources, but it's not in the generated tarball!

I know that feeling...

   It turns out that adding files to the sources doesn't automatically cause
 them to end up in the source tarball; you need to list them explicitly.  That
 happens for you if they're C or C++ source or header files, but not for shell
 scripts.  Argh, my bad!  Thanks for spotting it.

[...]

   You can download a copy from the sourceware CVS repository via the web
 interface here:

 http://cygwin.com/cgi-bin/cvsweb.cgi/~checkout~/setup/gpg-error-config-fake?cvsroot=cygwin-apps

 and drop it in with the rest of the sources.

I grabbed a copy out of CVS, and it built fine and is working.

 Or you can hang around a while, and I'll upload a fixed
 tarball.  (I'll just manually add the missing stuff and
 re-upload it).

Thanks, I'm set.  I guess nobody else builds their own
setup.exe. :)

Now to test the version that defaults to local-install...

-- 
Grant Edwards   grante Yow! I like the way ONLY
  at   their mouths move ...  They
   visi.comlook like DYING OYSTERS


--
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: rm seems to fail

2009-01-13 Thread greenup greenup
On 1/13/09, Dave Korn wrote:
 greenup greenup wrote:
   On 1/13/09, Mark J. Reed wrote:
   On Tue, Jan 13, 2009 at 2:52 PM, greenup wrote:
 your perl test was a nice try; but it also did not remove the file,
 which is revealing.
   I should have included a return code check:
perl -e 'unlink(goo/foo) or die $!'
   I really want to know the root cause, so I'm re-upgrading my cygwin
   dll and coreutils, seeing if the dll was hiding, or some other cause
   What AV have you got?  Sometimes your AV can keep a handle open to a file
  (for scanning) for some time after you've last accessed it.  If you're trying
  to delete it in that window (and this could happen every time automatically 
 if
  'rm' does a stat() to check the file exists and is readable right before
  calling unlink()), then it might fail because it's in use.  Maybe your AV was
  doing that for a while and now it's stopped but this is pretty 
 speculative.

you know, I'm up for speculation right now.  Even before I got to
re-upgrade, it stopped succeeding.  I'm back to rm failing, and other
than opening/closing some terminal windows, I don't think I've done
anything.  In one window recently I nuked my path to only /usr/bin and
tested, just incase something else was being seen.

This machine uses Mcaffee OAS.  And it appears I don't have the power
to disable it even to test.  Mixed feelings about that... there are
some users that would leave it off a lot...

--
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: setup 2.573.2.3 configure fails libgpg-error/libgcrypt

2009-01-13 Thread Grant Edwards
On 2009-01-13, Grant Edwards gra...@visi.com wrote:
 On 2009-01-13, Dave Korn dave.korn.cyg...@googlemail.com wrote:

 Looking in the snapshot tarball, it seems that configure.in
 does indeed have the original (unpatched or reverted) code, so
 why doesn't it have the gpg-error-config-fake script as well?
 I went digging in the source directory where I originally
 built the tarball that's currently on the cygwin website, and
 the file is there in the sources, but it's not in the
 generated tarball!

 I know that feeling...

 It turns out that adding files to the sources doesn't
 automatically cause them to end up in the source tarball; you
 need to list them explicitly.  That happens for you if they're
 C or C++ source or header files, but not for shell scripts.
 Argh, my bad!  Thanks for spotting it.

 [...]

 You can download a copy from the sourceware CVS repository via
 the web interface here:

 http://cygwin.com/cgi-bin/cvsweb.cgi/~checkout~/setup/gpg-error-config-fake?cvsroot=cygwin-apps

 and drop it in with the rest of the sources.

 I grabbed a copy out of CVS, and it built fine and is working.

Just for the sake of documenting what didn't work, I also tried
deleting the usage of the fake config utility from the
configure script, and that failed because it then used the
cygwin system's already-installed gpg-error libraries.  Those
are Cygwin libraries and what's required are Mingw
libraries, so the final linking step failed.  That's pretty
much what I had expected since setup.exe isn't a Cygwin
application.

-- 
Grant Edwards   grante Yow! I'm encased in the
  at   lining of a pure pork
   visi.comsausage!!


--
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: rm seems to fail

2009-01-13 Thread greenup greenup
broken again/still.

On 1/13/09, Mark J. Reed wrote:
 On Tue, Jan 13, 2009 at 2:52 PM, greenup wrote:
   your perl test was a nice try; but it also did not remove the file,
   which is revealing.
 I should have included a return code check:

  perl -e 'unlink(goo/foo) or die $!'

d...@w2 ~
$ perl -e 'unlink(goo/foo) or die $!'

d...@w2 ~
$ echo $?
0

d...@w2 ~
$ ls -la goo
total 0
drwxr-xr-x+  2 dz mkgroup-l-d 0 Jan 13 14:47 .
drwxrwx---+ 25 Administrators SYSTEM  0 Jan 13 14:46 ..
-r   1 dz mkgroup-l-d 0 Jan 13 14:47 foo

--
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: setup.exe 2.592-1.7 built from sources seems buggy

2009-01-13 Thread Grant Edwards
On 2009-01-13, Grant Edwards gra...@visi.com wrote:

 I built setup.exe from the sources in setup-2.592-1.7special.tar.bz2,
 and the resulting program seems a bit buggy.  There have been
 two problems I've noticed so far:

  1) It stopped and complatined that release/gcc/gcc-3.4.4-3.tar.bz2
 wasn't a valid file format.  Yet tar seems quite happy with
 it.  

  2) About 6-8 times during the install, it stopped and
 complained 

Can't open file://D:\cygwin/ for reading: No such file

 The working directory when setup.exe was started was
 d:/cygwin, and the packages are all in d:/cygwin/release   

[...]

I switched to 2.573.2.3, and all of those problems went away.

-- 
Grant Edwards   grante Yow! Why is everything made
  at   of Lycra Spandex?
   visi.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: setup 2.573.2.3 configure fails libgpg-error/libgcrypt

2009-01-13 Thread Dave Korn
Grant Edwards wrote:
 On 2009-01-13, Dave Korn wrote:

 Or you can hang around a while, and I'll upload a fixed
 tarball.  (I'll just manually add the missing stuff and
 re-upload it).

  Now done.

http://cygwin.com/setup/snapshots/setup-2.573.2.3.tar.bz2

(I also updated the ../current/ directory while I was at it, which was
another thing I forgot at the time.)

 Thanks, I'm set.  I guess nobody else builds their own
 setup.exe. :)

  I'm a little surprised it took this long for anyone to notice!

cheers,
  DaveK

--
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: fetchmail pops up console windows

2009-01-13 Thread Gary Johnson
On 2009-01-13, Dr. Volker Zell wrote:
  Gary Johnson writes:
 
  On 2008-02-22, Dr. Volker Zell wrote:
  Hi
  
  This still bugs me. fetchmail pops up console windows when delivering
  mails to procmail.
  It doesn't matter if I run fetchmail directly from the commandline (in
  my case in a rxvt window under X) or as a service.
 
  Any hint what could cause this popup windows is appreciated. I'm 
 running
  under XP SP2 with the latest packages installed.
 
  I'm having the same problem running fetchmail as a daemon from the
  command line.  Were you able to find a solution?
 
 Yes, cockpit error, I didn't follow the cygwin fetchmail README:
 
 fetchmail --nodetach is your friend
   ^^

Thank you!  That worked, at the expense of having to keep a terminal
open.  I then tried this,

fetchmail --nodetach  fetchmail.log 21 

which leaves the terminal free, doesn't have the pop-up console
windows, and can be killed with fetchmail -q.

Regards,
Gary



--
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: rm seems to fail

2009-01-13 Thread Ian Puleston
 -Original Message-
 From: greenup greenup
 Sent: Tuesday, January 13, 2009 3:03 PM
 
 This machine uses Mcaffee OAS.  And it appears I don't have the power
 to disable it even to test.  Mixed feelings about that... there are
 some users that would leave it off a lot...

You can temporarily disable McAfee AV via the Administrative Tools Services
control panel. Just locate and stop the McAfee service, then restart it when
you're done.



--
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: fetchmail pops up console windows

2009-01-13 Thread Gary Johnson
On 2009-01-13, Larry Hall (Cygwin) wrote:
 Gary Johnson wrote:
 On 2009-01-13, Jason Tishler wrote:
 Gary,
 
 On Tue, Jan 13, 2009 at 09:55:36AM -0800, Gary Johnson wrote:
 On 2009-01-13, Jason Tishler wrote:
 FWIW, I don't have this problem when running fetchmail as a service.
 I saw that in an earlier post and tried to follow the instructions in
 /usr/share/doc/Cygwin/fetchmail-6.3.9.README, but I get this result:
 
 [snip]
 
 $ cygrunsrv -S fetchmail
 cygrunsrv: Error starting a service: StartService:  Win32 error 1069:
 The service did not start due to a logon failure.
 
 I have both cron and sshd running as services, so that much works,
 but they may be running as the system user (whatever it's called).
 I don't know how to diagnose this sort of failure.
 Did you heed the following from the README?
 
 o the $USERDOMAIN\\$USERNAME account must have the Log on as a
   service user right for Cygwin fetchmail to start as a NT service
 
 I heeded it in the sense that I read it and understood that it might
 be the problem.  I did go searching in the Control Panel for likely
 utilities, but I couldn't find anything in User Accounts or anywhere
 else that would let me set user rights or that even told me what
 they were.  I did not search Windows Help and Support.  That sort of
 cluelessness was meant to be implicit in the statement, I don't
 know how to diagnose this sort of failure, but I suppose I should
 have been more clear.
 
 So how does one set that right?
 
 '/usr/share/csih/cygwin-service-installation-helper.sh' has this:
 
 editrights -u ${user} -t SeServiceLogonRight
 
 Try that, substituting the appropriate user for your situation and
 Windows version.

I tried this:

$ editrights -u $USER -l
SeServiceLogonRight
SeBatchLogonRight

as well as this:

$ editrights -u $USER -t SeServiceLogonRight
$ echo $?
0

After executing those tests, I again ran the same cygrunsrv
--install fetchmail ... and cygrunsrv -S fetchmail commands and
again got the same Win32 error 1069.

FWIW, my $USER name has a space in it, which occasionally causes
problems with some programs.  This PC was set up a number of years
ago and at the time I didn't understand the implications of giving
Windows my full name as a user name.

Also, as I wrote elsewhere in this thread, I do have a solution to
the pop-up console window problem, so while it would be nice to
have a solution to this fetchmail-as-a-service problem as well, it's
not all that important.

If desired, I can send the output of cygcheck -srv to the list,
but I didn't want to impose a 32K message on everyone otherwise.

Regards,
Gary



--
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: setup 2.573.2.3 configure fails libgpg-error/libgcrypt

2009-01-13 Thread Grant Edwards
On 2009-01-13, Dave Korn dave.korn.cyg...@googlemail.com wrote:

 Thanks, I'm set.  I guess nobody else builds their own
 setup.exe. :)

   I'm a little surprised it took this long for anyone to notice!

You can take that as a compliment: the program evidently works
so well that only the rare oddballs like me feel the need to
mess with it.

FWIW, I changed source.cc to default to CWD as the source so
that my CD-based install will just work without the user
having to click anything other than next/finish.  I've found
that requiring anything else of users will cause problems.

-- 
Grant Edwards   grante Yow! Eisenhower!!  Your
  at   mimeograph machine upsets
   visi.commy stomach!!


--
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: rm seems to fail

2009-01-13 Thread Larry Hall (Cygwin)

greenup greenup wrote:

broken again/still.

On 1/13/09, Mark J. Reed wrote:

On Tue, Jan 13, 2009 at 2:52 PM, greenup wrote:
  your perl test was a nice try; but it also did not remove the file,
  which is revealing.
I should have included a return code check:

 perl -e 'unlink(goo/foo) or die $!'


d...@w2 ~
$ perl -e 'unlink(goo/foo) or die $!'

d...@w2 ~
$ echo $?
0

d...@w2 ~
$ ls -la goo
total 0
drwxr-xr-x+  2 dz mkgroup-l-d 0 Jan 13 14:47 .
drwxrwx---+ 25 Administrators SYSTEM  0 Jan 13 14:46 ..
-r   1 dz mkgroup-l-d 0 Jan 13 14:47 foo


Any luck on the BLODA front?

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

--
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: rm seems to fail

2009-01-13 Thread greenup greenup
On Tue, Jan 13, 2009 at 5:34 PM, Larry Hall (Cygwin) wrote:
 greenup greenup wrote:

 broken again/still.

 On 1/13/09, Mark J. Reed wrote:

 Any luck on the BLODA front?

Afraid I don't know BLODA, but disabling the virus scanner for a few
minutes didn't work.

--
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: rm seems to fail

2009-01-13 Thread Larry Hall (Cygwin)

greenup greenup wrote:

On Tue, Jan 13, 2009 at 5:34 PM, Larry Hall (Cygwin) wrote:

greenup greenup wrote:

broken again/still.

On 1/13/09, Mark J. Reed wrote:

Any luck on the BLODA front?


Afraid I don't know BLODA, but disabling the virus scanner for a few
minutes didn't work.


http://cygwin.com/acronyms/#BLODA

Certainly sounds like something is locking that file.  Perhaps Process
Explorer http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx
or Handle http://technet.microsoft.com/en-us/sysinternals/bb896655.aspx
can help you figure out who might be doing this.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

--
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: file mirroring

2009-01-13 Thread jedalaurin



Thorsten Kampe wrote:
 
 * jedalaurin (Mon, 12 Jan 2009 23:48:51 -0800 (PST))
 rsync: connection unexpectedly closed (0 bytes received so far) 
 [receiver]
 rsync error: error in rsync protocol data stream (code 12) at
 /home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/io.c(632)
 [receiver=3.0.4]
 
 after running 
 
 rsync -avz --delete --exclude=**/stats --exclude=**/error
 --exclude=**/files/pictures -e ssh -i /root/rsync/mirror-rsync-key
 someu...@server1.example.com:/var/www/ /var/www/
 
 Keep it simple, stupid: try without the excludes; if this doesn't work, 
 try with ssh.
  
 our mirror server is using windows 2003 r3 on cygwin 2.573.2.3 and out
 main
 server is on Red Hat.
 
 Another question is there another way(s) to do the file synchronization
 on
 this setup?
 
 sitecopy
 
 Thorsten
 
 
 --
 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/
 
 
 

I after few hours of tracing the file mirroring is already working. 
I found out that the error occurs when rsync encounters a unpermitted
folders, files etc. that it can't be transferred. All the options are still
needed [rsync -avz --delete --exclude=**/stats --exclude=**/error
--exclude=**/files/pictures -e ssh -v -i /root/rsync/mirror-rsync-key
someu...@server1.example.com:/var/www/ /var/www/] and adding a -v on ssh. 
that is why you have to assign a particular folder your files to be
mirrored.

Thank you guys and more power!
-- 
View this message in context: 
http://www.nabble.com/file-mirroring-tp21430068p21449672.html
Sent from the Cygwin list mailing list archive at Nabble.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: file mirroring

2009-01-13 Thread jedalaurin



Thorsten Kampe wrote:
 
 * Thorsten Kampe (Tue, 13 Jan 2009 19:44:22 +0100)
 * jedalaurin (Mon, 12 Jan 2009 23:48:51 -0800 (PST))
  rsync: connection unexpectedly closed (0 bytes received so far) 
 [receiver]
  rsync error: error in rsync protocol data stream (code 12) at
  /home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/io.c(632)
  [receiver=3.0.4]
  
  after running 
  
  rsync -avz --delete --exclude=**/stats --exclude=**/error
  --exclude=**/files/pictures -e ssh -i /root/rsync/mirror-rsync-key
  someu...@server1.example.com:/var/www/ /var/www/
 
 Keep it simple, stupid: try without the excludes; if this doesn't work, 
 try with ssh.
 
 /without/, of course
 
 T.
 
 
 --
 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/
 
 
 

Hi T. ,

Can you tell us more about some other way 'round. for another method that
you have.
We are please to have the other options in benifit to other users. 
who want to expand thing in there way.

Thanks,

Jed

-- 
View this message in context: 
http://www.nabble.com/file-mirroring-tp21430068p21450227.html
Sent from the Cygwin list mailing list archive at Nabble.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/