Re: Semaphore handle leaks in WindowMaker with latest Xorg distribution

2009-01-12 Thread Jon TURNEY

Dr. Volker Zell wrote:

Hi

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:

winShadowUpdateDDNL - IDirectDrawSurface4_Blt () failed: 887601c2
winShadowUpdateDDNL - IDirectDrawSurface4_Blt () failed: 887601c2
winShadowUpdateDDNL - IDirectDrawSurface4_Blt () failed: 887601c2
winShadowUpdateDDNL - IDirectDrawSurface4_Blt () failed: 887601c2
winShadowUpdateDDNL - IDirectDrawSurface4_Blt () failed: 887601c2
winShadowUpdateDDNL - IDirectDrawSurface4_Blt () failed: 887601c2
winShadowUpdateDDNL - IDirectDrawSurface4_Blt () failed: 887601c2
winShadowUpdateDDNL - IDirectDrawSurface4_Blt () failed: 887601c2
winShadowUpdateDDNL - IDirectDrawSurface4_Blt () failed: 887601c2
winShadowUpdateDDNL - IDirectDrawSurface4_Blt () failed: 887601c2
winShadowUpdateDDNL - IDirectDrawSurface4_Blt failure message maximum (10) 
reached.  No more failure messages will be printed.
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the 
primary surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the 
primary surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the 
primary surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the 
primary surface was lost, trying to restore, retry: 1
XIO:  fatal IO error 105 (No buffer space available) on X server 
127.0.0.1:0.0
  after 264481 requests (264320 known processed) with 0 events 
remaining.
  7 [main] wmaker 2548 sig_send: wait for sig_complete event failed, 
signal -34, rc -1, Win32 error 6
200 [main] wmaker 2548 sig_send: wait for sig_complete event failed, 
signal -34, rc -1, Win32 error 6
  7 [main] wmaker 2548 sig_send: wait for sig_complete event failed, 
signal -34, rc -1, Win32 error 6
200 [main] wmaker 2548 sig_send: wait for sig_complete event failed, 
signal -34, rc -1, Win32 error 6



XIO:  fatal IO error 104 (Connection reset by peer) on X server :0.0
  after 113314 requests (113269 known processed) with 0 events 
remaining.
xinit:  connection to X server lost.


When using Task Manager I see that one of the two wmaker processes
(the one started with wmaker --for-real) leaks handles with a rate of 30/sec
right after stating up.

When using process explorer from sysinternals I have to switch on
Show unnamed handles and mappings under View to identify these handles
as Semaphore types.

Recompiling the latest version of WindowMaker-0.92.0 against the latest Xorg
distribution has the same effect.

I also checked running original WindowMaker-0.90.0-2 against cygwin-1.7 with
all the latest packages installed and also recompiled WindowMaker-0.92.0 under
cygwin-1.7 with the same effects.


Can anybody confirm (at least the handle leaks in Task Manager) ?


Yes, I can see the same handle leak in task manager with windowmaker.


WindowManager-0.90.0-2 runs absolutely stable with no leaks under cygwin 1.5
before upgrading to latest Xorg.


So I guess suspicion first falls that this leak is somewhere in one of the 
updated X DLLs...


--
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-12 Thread Dr. Volker Zell
 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

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: Using xfs but still get Missing charsets warnings.

2009-01-12 Thread Jon TURNEY

joel.mo...@l-3com.com wrote:

I am starting Cygwin/X via the startxdmcp.bat file with the command:
XWin -query %REMOTE_HOST% -nodecoration -lesspointer -fp
tcp/%REMOTE_HOST%:7000 -once -clipboard
going to HP-UX 11.11 with dtlogin. Everything seems fine until I go to
launch various apps, at which point I get errors like:

Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string -dt-interface
user-medium-r-normal-m*-*-*-*-*-*-*-*-* to type FontSet
Warning: Cannot convert string 6x13 to type FontStruct


These are only warnings, not errors.

Do the applications not work, or do they just not use the fonts you are 
expecting?

Missing charsets in String to FontSet conversion is a bit of a poor message 
as it doesn't say which charsets are missing, despite the fact the bit of code 
emitting it knows exactly :-(


This very likely is a locale issue, so can you say what the setting of LANG in 
both your cygwin environment and the HP-UX one is?



So, I'm at a loss. The funny thing is that if I use an old (XFree86)
version of Cygwin/X, it works fine, without any font warnings.

Any suggestions would be greatly appreciated,



--
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: Using xfs but still get Missing charsets warnings.

2009-01-12 Thread JOEL . MOOTS
 -Original Message-
 From: Jon TURNEY [mailto:jon.tur...@dronecode.org.uk] 
 Sent: Monday, January 12, 2009 10:07 AM
 To: cygwin-xfree@cygwin.com
 Cc: Moots, Joel A. @ EOS
 Subject: Re: Using xfs but still get Missing charsets warnings.
 
 joel.mo...@l-3com.com wrote:
  I am starting Cygwin/X via the startxdmcp.bat file with the command:
  XWin -query %REMOTE_HOST% -nodecoration -lesspointer -fp
  tcp/%REMOTE_HOST%:7000 -once -clipboard
  going to HP-UX 11.11 with dtlogin. Everything seems fine 
 until I go to
  launch various apps, at which point I get errors like:
  
  Warning: Missing charsets in String to FontSet conversion
  Warning: Cannot convert string -dt-interface
  user-medium-r-normal-m*-*-*-*-*-*-*-*-* to type FontSet
  Warning: Cannot convert string 6x13 to type FontStruct
 
 These are only warnings, not errors.
 
 Do the applications not work, or do they just not use the 
 fonts you are expecting?
 

They work but are sometimes difficult to use without the proper fonts
(plus many people complain about the messages).

 Missing charsets in String to FontSet conversion is a bit 
 of a poor message 
 as it doesn't say which charsets are missing, despite the 
 fact the bit of code 
 emitting it knows exactly :-(
 
 This very likely is a locale issue, so can you say what the 
 setting of LANG in 
 both your cygwin environment and the HP-UX one is?

I had wondered if it was a locale issue and had checked that LANG was C
and even set LC_ALL to C as well, but only on the HP-UX side. I just
tried setting them in the startxdmcp.bat file as suggested, but it
didn't change anything.
 
  So, I'm at a loss. The funny thing is that if I use an old (XFree86)
  version of Cygwin/X, it works fine, without any font warnings.
  
  Any suggestions would be greatly appreciated,
 
 

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



Organizasyon Hizmetleri

2009-01-12 Thread muni organizasyon
muni organizasyon ekibi olarak yapacağınız her türlü organizasyonlarınızda 
sizlere hizmet vermekten onur duyarız
 
www.muniorganizasyon.net

 Düğün, Davet, Açılış, Piknik, Animasyon, Süsleme Organizasyonları



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



Organizasyon Hizmetleri

2009-01-12 Thread muni organizasyon
muni organizasyon ekibi olarak yapacağınız her türlü organizasyonlarınızda 
sizlere hizmet vermekten onur duyarız
 
www.muniorganizasyon.net

 Düğün, Davet, Açılış, Piknik, Animasyon, Süsleme Organizasyonları



--
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: cursor warp [+PATCH]

2009-01-12 Thread Jon TURNEY

Jon TURNEY wrote:

Tom George wrote:
Cursor warping does not work with the -multiwindow option. It works 
fine in the single window mode. I saw some vague references to this 
but nothing to indicate it will be fixed. Are there any plans to fix 
this?


The first step towards fixing this is a description of the problem that 
can be understood by someone who isn't in front of your computer :-)



Otherwise, Cygwin/X work great!


 Tom George wrote:

I have an application that uses XWarpPointer to relocate the cursor on the 
screen. I recognize that this is not recommended protocol but it is very useful 
for this application.

If cygwin X is started without the -multiwindow option, cursor warping works as 
expected. However, if the -multiwindow option is included, it seems that all 
calls to XWarpPointer are ignored. Maybe I am doing something wrong on startup 
or there is an alternate way to warp the cursor.

I saw that there was some early references to this problem related to 
positioning the cursor on startup
(http://sourceware.org/ml/cygwin-xfree/2003-05/msg00443.html) but no apparent 
resolution. If possible, I would like to see the XWarpPointer function work as 
documented for any windowing configuration.


Much better :-) Even I can understand what the problem is now.
(but for some reason your 2nd mail didn't appear on gmane, so I almost missed 
it)

The 'cursor positioning on startup' issue is subtly different: the X server 
internally generates a pointer warp at startup to move the pointer to the 
centre of the screen.  XWin takes special steps to ignore this warp, so that 
merely launching the X server doesn't disrupt what the user was doing.


Attached patch enables XWarpCursor to do something in -multiwindow and 
-rootless modes.


Also attached is a small application which functions as testcase for this.

Cygwin/X: Allow pointer warping to work in rootless modes

Mouse pointer warping in multiwindow/rootless mode was never implemented,
due to concerns that moving the  mouse pointer without asking might be rude

This patch allows X applications to move the mouse pointer in rootless modes,
Let's hope they don't abuse this privilege ;-)

---
 xserver/hw/xwin/wincursor.c |   12 ++--
 1 file changed, 10 insertions(+), 2 deletions(-)

Index: xorg-server-1.5.3/xserver/hw/xwin/wincursor.c
===
--- xorg-server-1.5.3.orig/xserver/hw/xwin/wincursor.c  2008-11-05 
16:52:16.0 +
+++ xorg-server-1.5.3/xserver/hw/xwin/wincursor.c   2009-01-12 
19:42:54.0 +
@@ -99,8 +99,16 @@
   return;
 }
 
-  /* Only update the Windows cursor position if we are active */
-  if (pScreenPriv-hwndScreen == GetForegroundWindow ())
+  /*
+ Only update the Windows cursor position if root window is active,
+ or we are in a rootless mode
+  */
+  if ((pScreenPriv-hwndScreen == GetForegroundWindow ())
+  || pScreenPriv-pScreenInfo-fRootless
+#ifdef XWIN_MULTIWINDOW
+  || pScreenPriv-pScreenInfo-fMultiWindow
+#endif
+  )
 {
   /* Get the client area coordinates */
   GetClientRect (pScreenPriv-hwndScreen, rcClient);
/* 
   Testcase for: Cursor warping

  To compile: 
  gcc -Wall -o test-warp test-warp.c `pkg-config --cflags --libs gtk+-2.0 
glib-2.0`

  To use:
  
  X -multiwindow 
  export DISPLAY=:0
  ./test-warp
  
  Press 'Warp' button, cursor should move elsewhere

*/

#include glib/gprintf.h
#include gtk/gtk.h
#include gdk/gdkx.h

GtkWidget *main_window;

static void warp_cursor( GtkWidget *widget,
 gpointer   data )
{
  Display *dpy = GDK_DISPLAY();
  XWarpPointer(dpy, None, None, 0,0,0,0, +100,+100);
}

static void destroy( GtkWidget *widget,
 gpointer   data )
{
  gtk_main_quit ();
}

int main( int   argc,
  char *argv[] )
{
GtkWidget *button;
gtk_init (argc, argv);

main_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_decorated (GTK_WINDOW(main_window), TRUE);

g_signal_connect (G_OBJECT (main_window), destroy,
  G_CALLBACK (destroy), NULL);
gtk_container_set_border_width (GTK_CONTAINER (main_window), 10);

button = gtk_button_new_with_label (Warp);
g_signal_connect (G_OBJECT (button), clicked,
  G_CALLBACK (warp_cursor), NULL);

gtk_container_add (GTK_CONTAINER (main_window), button);
gtk_widget_show (button);
gtk_widget_show (main_window);

gtk_main ();
return 0;
}

--
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 syscalls.cc

2009-01-12 Thread corinna
CVSROOT:/cvs/src
Module name:src
Changes by: cori...@sourceware.org  2009-01-12 15:51:23

Modified files:
winsup/cygwin  : ChangeLog syscalls.cc 

Log message:
* syscalls.cc (enum bin_status): New type.
(try_to_bin): Return bin_status.  Rename win32_path to pc.  Rename h
to fh.  Rename fh to tmp_fh.  Add code to set delete dispostion and
more code to replace file moved to bin by another, temporary file.
Add comments to explain why.
(unlink_nt): Replace move_to_bin with bin_stat.  Only set bin_stat
to move_to_bin for non-remote files.  As a last resort, call try_to_bin
if setting delete-on-close failed.  Only re-set R/O DOS attribute
and only close handle if it's still valid.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.4350r2=1.4351
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/syscalls.cc.diff?cvsroot=srcr1=1.511r2=1.512



Reliably check if we're running under cygwin inside Makefile

2009-01-12 Thread Eric Lilja
Hello, I have a program that will built both under fedora and under 
cygwin. The program is written in C and the Makefile is slightly 
different between the two systems. Is it possible to check some 
environment variable in the makefile to determine what to do?


The source code itself have constructs like these for parts that differ 
between cygwin and fedora:

#if defined __CYGWIN__
   /* Turn on vsync, this works on Cygwin. */
   SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1);
#elif defined __linux
   /* Fedora doesn't support SDL_GL_SWAP_CONTROL, but we use this 
extension instead. */

   SDL_putenv(__GL_SYNC_TO_VBLANK=1);
#endif

and I'm looking for something similiar to use with the Makefiles so I 
can turn the two Makefiles into one.


I hope this is considered on-topic, if not, I apologise.

- EL


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



Wait for cygstart finish

2009-01-12 Thread Jeenu V
Hi,

Is there a way to make cygstart wait until the application it launched
closed? I see a thread here
(http://cygwin.com/ml/cygwin/2008-08/msg00812.html), providing patch
for the same (-w switch) but I couldn't see the official one having
the same. Is the a way around?

-- 
:J

--
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-12 Thread Alexey Eremenko
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
*** Query: Overwrite existing /etc/ssh_config file? (yes/no) yes
*** Info: Creating default /etc/ssh_config file
*** Query: Overwrite existing /etc/sshd_config file? (yes/no) yes
*** Info: Creating default /etc/sshd_config file
*** Info: Privilege separation is set to yes by default since OpenSSH 3.3.
*** Info: However, this requires a non-privileged account called 'sshd'.
*** Info: For more info on privilege separation read /usr/share/doc/openssh/RE
ME.privsep.
*** Query: Should privilege separation be used? (yes/no) ye
*** Query: Should privilege separation be used? (yes/no) yes
*** Warning: The file /etc/passwd is not readable by all.
*** Warning: Please run 'chmod +r /etc/passwd'.
*** Warning: The file /etc/group is not readable by all.
*** Warning: Please run 'chmod +r /etc/group'.
*** ERROR: Problem with LocalSystem or Adminstrator IDs

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



Help me please install OpenSSH Server on Windows Vista

2009-01-12 Thread Alexey Eremenko
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.

-- 
-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: Reliably check if we're running under cygwin inside Makefile

2009-01-12 Thread Greg Chicares
On 2009-01-12 12:19Z, Eric Lilja wrote:
 Hello, I have a program that will built both under fedora and under 
 cygwin. The program is written in C and the Makefile is slightly 
 different between the two systems. Is it possible to check some 
 environment variable in the makefile to determine what to do?

Not really Cygwin specific, but here's a common method:
  http://lists.gnu.org/archive/html/help-make/2006-12/msg00065.html


--
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 vs rxvt (was Re: MinTTY 0.3.3)

2009-01-12 Thread cgf
On Sun, Jan 11, 2009 at 11:00:28PM -0500, Paul McFerrin wrote:
 On Sun, Jan 11, 2009 at 03:22:14PM -0500, Charles Wilson wrote:
 Christopher Faylor wrote:

Not sure what I'm doing here.

 Well, it's my main terminal. I tried MinTTY and I'm not sure yet whether
 it will supplant rxvt for my personal use, but it shows promise.

 I've been using rxvt for years as my main terminal and just tried using 
 minTTY and really prefer not to use it.  You see I'm and old man with poor 
 eye sight.  The visual attributes of minTTY aren't the same that I use with 
 rxvt.  The Lucida Console (white foreground on black) has less contrast as 
 the same font on rxvt.  If I make it bold, it approaches nearly the same 
 brightness as rxvt but a little more blurry.  These featurea don't go with 
 poor vision.

 I made the mistake of updating rxvt before and I learned no more updates, 
 please.  Maybe it will help someone what options I use to make my 
 statements more clearer:
rxvt --backspacekey ^H -sbt 15 -fg white -bg black -geometry +75+80 -sr
  -title TTY$tty$label -tn ansi -sl 3000 -fn 'Lucida Console-12' -e ksh 
 My 2 cents worth, no more.

You obviously have customized rxvt.  I don't see why MinTTY would be any
different.

And, if you are not going to be updating rxvt it doesn't really matter what
happens with the distribution since you wouldn't see it anyway.

cgf

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



Re: Questions about missing DLLs and program behvior, and symlinks to DLLs (also, a small setup recommendation)

2009-01-12 Thread Christopher Faylor
On Sun, Jan 11, 2009 at 08:28:25PM -0800, rhs.cyg...@sylvan-glade.com wrote:
Hello!  I haven't been able to find anything about this in the archives.

I recently decided to replace my old Cygwin installation with a new,
fresh one, so everything should be up-to-date here.  [That's my
recommendation: perhaps a way to make it easier to install fresh; it was
necessary to rename both the old Cywin installation and the location of
the downloaded installation packages to keep setup from finding them.]

The DLL questions are regarding programs compiled within Cygwin: when a
program can't find a DLL, one expects some sort of error message to that
effect, and which would indicate the DLL in question. As my demo below
shows, programs simply exit silently and unceremoniously when that happens.

That is fixed in Cygwin 1.7.x.

Second, symlinking to DLLs doesn't enable programs to find them, as is
also shown below.

Right.  Symlinks are a Cygwin invention.  Cygwin doesn't start running
until after DLLs are loaded.  So, since Windows does not know about Cygwin
symlinks there is no way that they can be used to symlink DLLs.

cgf

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



Re: Help me please install OpenSSH Server on Windows Vista

2009-01-12 Thread Larry Hall (Cygwin)

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?

--
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: Wait for cygstart finish

2009-01-12 Thread Jeenu V
On Mon, Jan 12, 2009 at 9:58 PM, Larry Hall (Cygwin)
reply-to-list-only...@cygwin.com wrote:
 Just run the app without 'cygstart'?

:) Well this was related to one of my earlier posts, if you recall,
where I had problems with running cmd.exe from screen. I now work that
around by calling cmd.exe with cygstart. Everything works fine - just
that I wanted to know if there's a way to make cystart wait for the
application to finish.

-- 
:J

--
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: First Pass at mintty documentation; etc.

2009-01-12 Thread Lee D. Rothstein

Andy Koppe wrote:

 Lee D.Rothstein wrote:

 Hi, I've taken a first pass at distilling my experience with
 'mintty' and the [ahem] discussion, here, about it into a text
 file (see attachment mintty.{h})

 Thanks, that's a nice surprise!

Okay, since you at least didn't hate it, I'll plug it into a 'man'
template. I'll add additional stuff, as it becomes clear (such as
the '.inputrc' stuff, here).

 Speed

 It's quite funny, I didn't realise that until people here
 pointed it out, probably because I didn't have to do anything to
 achieve it. :)

Actually, it's surprising that I could notice it, at all. My new
computer is a Gateway, running Vista 64b, and it's much ()
faster than the old one (less than a year old) that got zapped by
lightning static (an HP [slow disk!!!], running Vista 32b, Intel
Dual Core and 2/3 the RAM). Xterm was pretty much intolerably
slow with the HP, but is quite peppy on the GW (AMD Quad Core).

(The other nice things about Vista 64b are a practically
unlimited command line, and much longer tolerated path names,
ANAICT [as near as I can tell].)

Actually, the only thing wrong with MinTTY, ANAICT, is the name.
I would have preferred: CFFTTW (Cygwin's Fast F-ing Terminal That
Works! ;-) CFFT, for short? The name would be in the tradition,
for example, of MIT's node for documentation --
ftp://RTFM.mit.edu !)

   Best conformance to my personal expectation of what various
directional keys (HOME, END, -, -, etc.) should do!
(However, still bummed that CTRL--  CTRL-- do not
move, respectively forward and back a word on the command
line!)

 These two lines in .inputrc should do the trick:

 \e[1;5D: backward-word
 \e[1;5C: forward-word

Thank you!

 And here's my favourite bash feature, mapped to Ctrl-Up/Down:

 \e[1;5A: history-search-backward
 \e[1;5B: history-search-forward

Perhaps I don't understand this 'bash' feature, but it doesn't
seem to work for me.

   * Futures expectation: My number one goal would be for it to
 replace the Cygwin console for everything, although I
 understand there are great difficulties with that goal.

 Hmm, yep, unfortunately the only path I can see towards that
 goal is to take Console2's approach of capturing a Windows
 console, and to try and make the cygwin terminal running inside
 it more standards-compliant, but that would still leave the
 slowness of the console and the lag caused by  capturing its
 contents.

 Perhaps it would be possible to override and reimplement
 the Win32 console functions as listed at
 http://msdn.microsoft.com/en-us/library/ms682073(VS.85).aspx ?
 Do DOS software interrupts still work too? It would certainly
 be a huge amount of work though, which would include having to
 reimplement the console's ANSI emulation.

I do lots of bash scripting including Windows/DOS commands, and I
can think of only one character cell app that ever gave me any
trouble from rxvt or xterm (whatever that app is -- I think a
Resource Kit app), I found a work-around and never needed it
again.

Isn't ANSI implementation required of virtual terminals? I know
that later DEC VTs, and HP terminals (bless their expensive
little scroll-back buffer hearts) had an ANSI mode. Does Curses
make this issue go away?

 Because of the nature of various discussion elements in wading
 through this stuff, I am referring to my documentation project as:
 *Diuretics*!

 *grin*

BTW, that's why the signature was: L Dave Rothstein (as in L Ron
Hubbard -- Dianetics! ;-)).

 @@ What alternate screen? @@

 Good question. It's vt100 lingo for a second logical screen
 that wholescreen apps such as editors normally use, often through
 the (n)curses library. (I'm taking wholescreen to mean an app
 controlling the whole terminal screen, as opposed to the terminal
 window being in fullscreen mode.)

 = Is there an alternate screen toggle in 'mintty' as there is
   in 'xterm'?

 I didn't know xterm actually had a UI for this. Do people find
 this useful?

I've used it on occasion when I needed to scroll back through two
debugging runs of a text-mode (character cell) app (or debugging
statements).

What would be better for this and other problems, however, is a
feature that I would love: The ability to interactively, on the
fly change, the Title Bar/Task Bar Title to be clear on what each
Window is doing. (I already know how to change the title from the
command line, e.g.:

 echo -ne \033]2;*** $* ***\007

but that doesn't fill the need with an omnibus app/tool like
virtual terminal.)

The older I get the more I need this. I could actually use this
on every Windows app, and perhaps on real life objects and
conversations, as well! ;-)

 = How do you invoke it?

 You shouldn't need to really. Apps such as 'less' or 'vi'
 switch to it using the releavant vt100 incantation.

Okay, I'll fix that.

  [about mousewheel scrolling in less]
  the feature doesn't work in Vista when the
  scrollbar is shown. Looks like the inactive scrollbar is
  swallowing 

Re: Reliably check if we're running under cygwin inside Makefile

2009-01-12 Thread Fergus

 osname := $(shell uname -s)
 osver := $(shell uname -r)
 cpuarch := $(shell uname -m)

Probably the fault is mine but I can't get this to do anything useful in 
Cygwin. You could try (something like):


  case `uname` in
  *CYGWIN*)
OS=Cygwin
;;
  *Darwin*)
OS=Darwin
;;
  *)
OS=Linux
;;
  esac

and then try things like

  if [ ${OS} == Linux ]
  then
  ..
  fi

Fergus



--
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: Did anyone download the Windows 7 beta?

2009-01-12 Thread Corinna Vinschen
On Jan 11 17:03, Corinna Vinschen wrote:
 On Jan 10 23:56, Christopher Faylor wrote:
  I know that we don't claim to support beta versions of Windows but I did
  manage to grab a copy of the beta iso and install it in a virtualbox
  (http://virtualbox.org/) virtual machine for playing.  The system
  installed smoothly and boots quickly.  It is fairly snappy except that I
  swear that, after it first boots, I notice a pause running any program.
  That disappears eventually but it still seems odd.
  
  Cygwin seems to run as I'd expect with one exception - I couldn't edit
  the /etc/ssh_config file without first changing the ownership to myself
  even when running in a privileged shell.
 
 Confirmed.  Weird effect, though.  I'll debug that in the next couple of
 days.  This might be just a bug in the Beta, but who knows...

I just updated to the latest Cygwin from CVS and the problem disappeared :)


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/



Organizasyon Hizmetleri

2009-01-12 Thread muni organizasyon
muni organizasyon ekibi olarak yapacağınız her türlü organizasyonlarınızda 
sizlere hizmet vermekten onur duyarız
 
www.muniorganizasyon.net

 Düğün, Davet, Açılış, Piknik, Animasyon, Süsleme Organizasyonları



--
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: Reliably check if we're running under cygwin inside Makefile

2009-01-12 Thread Dave Korn
Fergus wrote:
   osname := $(shell uname -s)
   osver := $(shell uname -r)
   cpuarch := $(shell uname -m)

 Probably the fault is mine but I can't get this to do anything useful in
 Cygwin. You could try (something like):

   case `uname` in

  Hmm, did you try those first examples in bash before deciding they didn't
work?  Because your alternative proposal looks a lot like shell script...

  Perhaps you need to read the subject line again!

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/



Organizasyon Hizmetleri

2009-01-12 Thread muni organizasyon
muni organizasyon ekibi olarak yapacağınız her türlü organizasyonlarınızda 
sizlere hizmet vermekten onur duyarız
 
www.muniorganizasyon.net

 Düğün, Davet, Açılış, Piknik, Animasyon, Süsleme Organizasyonları



--
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: Reliably check if we're running under cygwin inside Makefile

2009-01-12 Thread Grant Edwards
On 2009-01-12, Fergus fer...@bonhard.uklinux.net wrote:
  osname := $(shell uname -s)
  osver := $(shell uname -r)
  cpuarch := $(shell uname -m)

 Probably the fault is mine but I can't get this to do anything useful in 
 Cygwin. You could try (something like):

case `uname` in
*CYGWIN*)
  OS=Cygwin
  ;;
*Darwin*)
  OS=Darwin
  ;;
*)
  OS=Linux
  ;;
esac

 and then try things like

if [ ${OS} == Linux ]
then
..
fi

That looks like shell to me.  I thought the OP was asking for
something to use in a Makefile.

-- 
Grant Edwards   grante Yow! MERYL STREEP is my
  at   obstetrician!
   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: python 2.6

2009-01-12 Thread Jason Tishler
On Sat, Jan 10, 2009 at 01:58:37PM +0200, George Ciobanu wrote:
 Is there a plan to move a newer version of python, such as 2.6?
 
 Has anyone tried to incorporate it so far?

Yes, I started to package Python 2.6.1 and 3.0 before the holidays.
Unfortunately, I ran into problems with Python 2.6.1 during the testing
phase.  When I executed the regression test, every threading related
test caused python.exe to core dump.  FWIW, the threading related tests
for Python 2.5.2 or 3.0 do not core dump under the same Cygwin 1.5.25
installation.  See attached for the cygcheck output.

I built a debug-able Cygwin DLL (from the cygwin-1.5.25-15 source
tarball) and Python executable, so I could try to debug the problem.
The following is a sample gdb session:

$ gdb python.exe
...
(gdb) run Lib/test/regrtest.py -l test_asynchat
Starting program: /tmp/Python-2.6.1.threading/python.exe Lib/test/regrtest.py 
-l test_asynchat
[New thread 2232.0xdc0]
[New thread 2232.0x45c]
test_asynchat
[New thread 2232.0xc64]
[New thread 2232.0xf68]
[New thread 2232.0xe54]

Program received signal SIGSEGV, Segmentation fault.
[Switching to thread 2232.0xc64]
0x00666b16 in ?? ()

(gdb) bt
#0  0x00666b16 in ?? ()
#1  0x18c00023 in ?? ()
#2  0x61077b13 in pthread_testcancel ()
at ../../../../winsup/cygwin/pthread.cc:139
#3  0x610b45e2 in semaphore::wait (sem=0x71e540)
at ../../../../winsup/cygwin/thread.cc:3157
#4  0x61093558 in _sigfe () at ../../../../winsup/cygwin/cygerrno.h:31
#5  0x7c96e0f0 in ntdll!RtlpNtMakeTemporaryKey ()
   from /mnt/c/WINDOWS/system32/ntdll.dll
#6  0x6ba9e927 in cygcrypto-0!ERR_set_implementation ()
   from /usr/bin/cygcrypto-0.9.8.dll
#7  0x0001 in ?? ()
#8  0x6bb1b98d in x509_dir_lookup () from /usr/bin/cygcrypto-0.9.8.dll
#9  0x01a3 in ?? ()
#10 0x18c0ca18 in ?? ()
#11 0x188d in ?? ()
#12 0x18c0caa0 in ?? ()
#13 0x6ba9ebf8 in cygcrypto-0!ERR_set_implementation ()
   from /usr/bin/cygcrypto-0.9.8.dll
#14 0x00724288 in ?? ()
#15 0x in ?? ()

(gdb) f 2
#2  0x61077b13 in pthread_testcancel ()
at ../../../../winsup/cygwin/pthread.cc:139
139   pthread::self ()-testcancel ();
Current language:  auto; currently c++

(gdb) list
134 }
135 
136 void
137 pthread_testcancel ()
138 {
139   pthread::self ()-testcancel ();
140 }
141 
142 void
143 _pthread_cleanup_push (__pthread_cleanup_handler *handler)

My WAG is that Cygwin is SEGV-ing in the following (from
winsup/cygwin/thread.cc):

pthread *
pthread::self ()
{
  pthread *thread = get_tls_self_pointer ();
  if (!thread)
{
  thread = pthread_null::get_null_pthread ();
  set_tls_self_pointer (thread);
}
  return thread;
}

Unfortunately, I'm not sure how to debug this further.  Any help will be
greatly appreciated.

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

Cygwin Configuration Diagnostics
Current System Time: Mon Jan 12 15:30:03 2009

Windows XP Professional Ver 5.1 Build 2600 Service Pack 2

Path:   c:\home\jtishler\bin
C:\cygwin\usr\local\bin
C:\cygwin\bin
c:\Program Files\bin
c:\Program Files\vim\vim60
c:\WINDOWS\system32
c:\WINDOWS
c:\Python23
c:\Program Files\Tcl\bin
C:\cygwin\lib\lapack
c:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE
.

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 178097(jtishler)GID: 10513(DomainUsers)
556(Network Configuration Operators) 555(Remote Desktop Users)
545(Users)   1010(Debugger Users)
10513(DomainUsers)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 178097(jtishler)GID: 10513(DomainUsers)
556(Network Configuration Operators) 555(Remote Desktop Users)
545(Users)   1010(Debugger Users)
10513(DomainUsers)

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

USER = 'jtishler'
PWD = '/tmp'
CYGWIN = 'ntsec'
HOME = '/home/jtishler'
MAKE_MODE = 'UNIX'

Use '-r' to scan registry

a:  fd N/AN/A
c:  hd  NTFS 69452Mb  90% CP CS UN PA FC System Disk
d:  cd N/AN/A
q:  hd N/AN/A

C:\cygwin  / system  binmode
c:\home/home system  binmode
C:\misc/misc system  binmode
C:\cygwin/bin  /usr/bin  system  binmode
C:\Program Files\Java\jdk1.5.0_10  /usr/java system  binmode
C:\cygwin/lib  /usr/lib  system  binmode
C:\apache-ant-1.7.0/usr/local/antsystem  binmode
C:\tibco\ems   /usr/local/emssystem  binmode
C:\maven-1.0.2 

How to make setup.exe default to local-install?

2009-01-12 Thread Grant Edwards
I'm creating a Cygwin snapshot for installation from CD, and
I've got everything figured out except for one thing: I need
setup.exe to default to a local install.  I can't use a
shortcut to run setup.exe because shortcuts have absolute paths.

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

I suppose I could build a custom setup.exe that checks the
local install radio button by default instead of the network
install button.  But I was hoping there was somthing a little
easier.

-- 
Grant Edwards   grante Yow! does your DRESSING
  at   ROOM have enough ASPARAGUS?
   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: Wait for cygstart finish

2009-01-12 Thread Buchbinder, Barry (NIH/NIAID) [E]
Jeenu V wrote on Monday, January 12, 2009 11:45 AM:
 On Mon, Jan 12, 2009 at 9:58 PM, Larry Hall (Cygwin)
 reply-to-list-only...@cygwin.com wrote:
 Just run the app without 'cygstart'?

 :) Well this was related to one of my earlier posts, if you recall,
 where I had problems with running cmd.exe from screen. I now work
 that around by calling cmd.exe with cygstart. Everything works fine -
 just that I wanted to know if there's a way to make cygstart wait for
 the application to finish.

Currently there isn't; see
$ man cygstart
$ cygstart --help

You could always apply the patch that you mentioned earlier yourself
and re-compile cygstart.

Work-around:  You might try the following.

$ cmd /c start /wait

You also might want to see if start's /b option helps.
BStart application without creating a new window. The
 application has ^C handling ignored. Unless the application
 enables ^C processing, ^Break is the only way to interrupt
 the application
(Please note that I've never even tried /b -- my suggestion comes
from start /?, not any experience.)

- Barry

--
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-12 Thread blazt

I am not sure how to do a except script. I have been looking at what I can
find on the net. Would I pass this command into the except part?




blazt wrote:
 
 How can I automate this process? If I do a ssh-host-config -y it works
 fine all the way up to asking about the privileged account. I want to use
 this account and can add the password to the command line parameter but
 how can I answer yes for the first part but no when it comes to this
 question?
 
 Thanks
 

-- 
View this message in context: 
http://www.nabble.com/automate-SSH-HOST-CONFIG-tp21383170p21427082.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: python 2.6

2009-01-12 Thread George Ciobanu

Hi Jason,

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.


My run blocks at test_httpservers, but I suspect this is because I 
haven't been able to compile it fully. I've traced this problem to 
graminit.o which contains the missing symbol, but I haven't had the time 
to look in depth into this.


$ make
running build
running build_ext
building 'parser' extension
gcc -shared -Wl,--enable-auto-image-base 
build/temp.cygwin-1.5.25-i686-2.6/home/
George/Python-2.6.1/Modules/parsermodule.o -L/usr/local/lib -L. 
-lpython2.6 -o b

uild/lib.cygwin-1.5.25-i686-2.6/parser.dll
build/temp.cygwin-1.5.25-i686-2.6/home/George/Python-2.6.1/Modules/parsermodule.
o: In function `parser_expr':
/home/George/Python-2.6.1/Modules/parsermodule.c:552: undefined 
reference to `__

PyParser_Grammar'
build/temp.cygwin-1.5.25-i686-2.6/home/George/Python-2.6.1/Modules/parsermodule.
o: In function `parser_suite':
/home/George/Python-2.6.1/Modules/parsermodule.c:552: undefined 
reference to `__

PyParser_Grammar'
collect2: ld returned 1 exit status

Failed to find the necessary bits to build these modules:
_bsddb _hashlib   _sqlite3
_ssl   _tkinter   bsddb185
bz2gdbm   linuxaudiodev
nisossaudiodevreadline
spwd   sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the 
module'

s name.


Failed to build these modules:
parser

running build_scripts


Thanks,
George


George Ciobanu wrote:

Hi,

Is there a plan to move a newer version of python, such as 2.6?

Has anyone tried to incorporate it so far?

Thanks,
George



$ cygcheck -s

Cygwin Configuration Diagnostics
Current System Time: Tue Jan 13 03:00:36 2009

Windows XP Professional Ver 5.1 Build 2600 Service Pack 3

Path:   .
c:\programs\bin
C:\cygwin\usr\x11R6\bin
C:\cygwin\bin
C:\cygwin\usr\local\bin
c:\WINDOWS\system32
c:\WINDOWS
c:\Program Files\PsTools

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

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

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

USER = 'George'
PWD = '/home/George'
HOME = '/home/George'
MAKE_MODE = 'unix'

Use '-r' to scan registry

c:  hd  NTFS 20002Mb  89% CP CS UN PA FC
d:  hd  NTFS 29996Mb  58% CP CS UN PA FC New Volume
e:  cd N/AN/A
f:  cd N/AN/A

C:\cygwin  /  system  binmode
C:\cygwin/bin  /usr/bin   system  binmode
C:\cygwin/lib  /usr/lib   system  binmode
.  /cygdrive  system  binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cpp.exe
Not Found: crontab
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\kill.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Not Found: patch
Found: C:\cygwin\bin\perl.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Not Found: ssh
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe
Found: C:\cygwin\bin\test.exe
Not Found: vi
Not Found: vim

   61k 2008/04/01 C:\cygwin\bin\cygbz2-1.dll
7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll
 1064k 2008/09/30 C:\cygwin\bin\cygcrypto-0.9.8.dll
  703k 2007/12/17 C:\cygwin\bin\cygdb-4.2.dll
  943k 2007/12/17 C:\cygwin\bin\cygdb-4.5.dll
 1036k 2007/12/17 C:\cygwin\bin\cygdb_cxx-4.2.dll
 1296k 2007/12/17 C:\cygwin\bin\cygdb_cxx-4.5.dll
  118k 2008/05/09 C:\cygwin\bin\cygexpat-1.dll
   40k 2006/11/15 C:\cygwin\bin\cygform-8.dll
   19k 2006/11/19 C:\cygwin\bin\cyggdbm-4.dll
8k 2006/11/19 C:\cygwin\bin\cyggdbm_compat-4.dll
  135k 2008/07/04 C:\cygwin\bin\cygglib-1-2-0.dll
   11k 2008/07/04 C:\cygwin\bin\cyggmodule-1-2-0.dll
8k 2008/07/04 C:\cygwin\bin\cyggthread-1-2-0.dll
   24k 2008/11/29 C:\cygwin\bin\cyghistory6.dll
  271k 2007/08/24 C:\cygwin\bin\cygicons-0.dll
  978k 2008/11/10 C:\cygwin\bin\cygiconv-2.dll
   37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll
   31k 2005/11/20 C:\cygwin\bin\cygintl-3.dll
   31k 2008/11/10 C:\cygwin\bin\cygintl-8.dll
   12k 2008/08/26 C:\cygwin\bin\cyglzmadec-0.dll
   21k 2006/11/15 C:\cygwin\bin\cygmenu-8.dll
   67k 2006/11/15 C:\cygwin\bin\cygncurses++-8.dll
  237k 2006/11/15 C:\cygwin\bin\cygncurses-8.dll
   12k 2006/11/15 C:\cygwin\bin\cygpanel-8.dll
  181k 2008/09/07 C:\cygwin\bin\cygpcre-0.dll
  302k 2008/09/07 C:\cygwin\bin\cygpcrecpp-0.dll
7k 2008/09/07 

IP_PKTINFO in cygwin

2009-01-12 Thread Bill Florac
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 
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?

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/



Became root within cygwin.

2009-01-12 Thread Hongyi Zhao
Hi all,

The cygwin doesn't has the root user by default.  How can I add it and
then login as root only when I require root privilege to do something?

-- 
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.


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



MinTTY Double Click Issue

2009-01-12 Thread ERIC HO
In MinTTY, when I try to highlight a word or the line by double clicking on the 
mouse, sometimes I have to do this  (double click) a few times. I don't have 
this problem using rxvt. Is there a config option to adress this? Any others 
have this expereince?
Thanks.

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: Became root within cygwin.

2009-01-12 Thread Larry Hall (Cygwin)

Hongyi Zhao wrote:

Hi all,

The cygwin doesn't has the root user by default.  How can I add it and
then login as root only when I require root privilege to do something?


Windows doesn't have the concept of 'root' so neither does Cygwin.
Probably the closest thing is to either 'ssh' in as a Windows
privileged user (on XP and lower) or use Windows Run as administrator
to start the Cygwin shell you want to work in.  I know, it's not the
same.  I feel your pain.

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

2009-01-12 Thread Larry Hall (Cygwin)

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.

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



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

2009-01-12 Thread Dan Tsafrir
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.

The bug is triggered when compiling the program with Cygwin's default
gcc/g++ (3.4.4) or with gcc-4/g++-4 (4.3.2). The bug does not occur
when compiling the program with gcc/g++ (ver 3 or 4) on other OSes
(e.g., Linux).

A fix would be appreciated.
Best,
--Dan

// start program:

#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;
}

// end program

--
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-12 Thread Yaakov (Cygwin/X)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

George Ciobanu wrote:
 My run blocks at test_httpservers, but I suspect this is because I
 haven't been able to compile it fully. I've traced this problem to
 graminit.o which contains the missing symbol, but I haven't had the time
 to look in depth into this.

http://bugs.python.org/issue4279

Patch committed to 2.6, 3.0, and trunk.


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

iEYEAREIAAYFAklsLsEACgkQpiWmPGlmQSNBVwCgjGhwoj/jGDzHee9sfYTr1m/S
y6UAn1WoFjxadNRtWFZ75q8XI1iMgN1y
=rx4U
-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/



file mirroring

2009-01-12 Thread jedalaurin

We are on implementation stage for a scalability and we a currently looking
for suggestion on file mirroring real time or near real time?

Thanks,

Jed
-- 
View this message in context: 
http://www.nabble.com/file-mirroring-tp21430068p21430068.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-12 Thread Larry Hall (Cygwin)

jedalaurin wrote:

We are on implementation stage for a scalability and we a currently looking
for suggestion on file mirroring real time or near real time?


Please clarify how the above is a Cygwin-specific question.

--
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-12 Thread Gary Johnson
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?

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: Signal handling in Win32 GUI programs

2009-01-12 Thread Andy Koppe
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.


Here's what I got:

  static const sigset_t term_sigs =
1SIGHUP | 1SIGKILL | 1SIGTERM | 1SIGINT;

  static void *
  signal_thread(void *arg)
  {
int sig;
sigwait(term_sigs, sig);
puts(signalled);
if (pid)
  kill(pid, SIGHUP);
exit(0);
  }

And in the main thread:

pthread_sigmask(SIG_BLOCK, term_sigs, 0);
pthread_t thread;
pthread_create(thread, 0, signal_thread, 0);

Anything obvious missing?

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

2009-01-12 Thread Andy Koppe

ERIC HO wrote:

In MinTTY, when I try to highlight a word or the line by double clicking on the 
mouse,
sometimes I have to do this  (double click) a few times.


What does happen when the double click is unsuccessful?

MinTTY uses the Windows double click time setting to decide whether a
click part of a double (or triple) click. I think the Windows default is
something like 700ms. Presumably you don't see this problem in other
Windows apps, e.g. Notepad?


Is there a config option to adress this?


Nope, there isn't anything directly related to that.

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-12 Thread jedalaurin



Larry Hall (Cygwin) wrote:
 
 jedalaurin wrote:
 We are on implementation stage for a scalability and we a currently
 looking
 for suggestion on file mirroring real time or near real time?
 
 Please clarify how the above is a Cygwin-specific question.
 
 -- 
 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/
 
 
 
Hi Larry,

Thanks! for the fast reply. 

we've tried [http://www.howtoforge.com/mirroring_with_rsync ] 

and i got this error:

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/

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?


Thanks
-- 
View this message in context: 
http://www.nabble.com/file-mirroring-tp21430068p21430861.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/