Re: Setting process command name in forked process

2024-01-29 Thread Steve Beck via Cygwin
Thank you, Corinna and Anton for your replies.  I downloaded procps, and it 
worked exactly as you described.  I understand this approach is a non-portable 
hack and to the extent that it matters at all, I'd like to +1 the 
suggestion/request of picking up support for setproctitle(3) in the next 
available release.

Thanks again!

Best,
Steve


From: Corinna Vinschen 
Sent: Monday, January 29, 2024 1:58 AM
To: cygwin@cygwin.com 
Cc: Steve Beck 
Subject: Re: Setting process command name in forked process

On Jan 26 18:35, Steve Beck via Cygwin wrote:
> Thanks so much for the reply, Anton!  Really appreciate it.
>
> I tried what you proposed.  Here is the code trying both ways
> (overwriting what is referenced by __argv[0] and then reassigning the
> reference).  I compile this code (foo.c) simply as follows: gcc -o foo
> foo.c (with no errors or warnings):
>
> [...]
> if (fork() == 0)
> {
> extern  char**__argv;
>
> strcpy(__argv[0], "bar");

Don't do that.  It's much too dangerous.

> __argv[0] = "bar";

That's ok, but see below.

> printf("Retry in Child '%s' (argv[0]) with pid %d setting 
> __argv[0] = 'bar': ps ...\n", argv[0], getpid());
> system("ps");

Make sure to install the procps-ng package, and then call

  system("procps -f");

> Here is the output when running foo.exe:
> [...]
> Retry in Child 'bar' (argv[0]) with pid 498 setting __argv[0] = 'bar': ps ...
>   PIDPPIDPGID WINPID   TTY UIDSTIME COMMAND
>   446 445 446 108276  pty0 1207519 10:19:37 /usr/bin/bash
>   445   1 445 126652  ?1207519 10:19:36 
> /usr/bin/mintty
>   498 497 497 128424  pty0 1207519 10:26:41 
> /home/sbeck/foo
>   497 446 497 123772  pty0 1207519 10:26:41 
> /home/sbeck/foo
>   500 498 497 128948  pty0 1207519 10:26:41 /usr/bin/ps
>
> As you can see, in neither case does the ps command seem to accurately
> reflect the change in __argv[0] (although within the program, the
> change occurs to argv[0]).
>
> Can you see what I'm doing wrong?

Actually, that's not your fault.  ps(1) from the cygwin base package
does not support this kind of faking the process name, because it does
not even get the command line of a process.  The information given to
ps(1) is pretty minimal and doesn't allow for stuff like that.  The
process name is always the real executable path the process has been
started through.

However, there's the ps(1) from the procps-ng package, which is called
procps.exe so as not to collide with the basic Cygwin ps.  This ps
fetches process information from /proc, which *is* updated when you
change __argv[0], because the info is fetched in realtime from the
process itself.

So with `procps -f', the output looks like this:

Retry in Child './foo' (argv[0]) with pid 570 setting __argv[0] = 'bar': ps ...
UIDPID  PPID  C STIME TTY  TIME CMD
corinna569   496 15 10:49 pty0 00:00:00 ./foo
corinna570   569 19 10:49 pty0 00:00:00 bar
corinna571   570 99 10:49 pty0 00:00:00 procps -f
corinna496   495  0 10:18 pty0 00:00:00 -tcsh

Bottom line:

Cygwin does not support this officially.  Changing the global __argv[0]
is a bad hack.  It works, but is non-portable.  In fact, there is no
portable way to do this.  SOme systems have prctl, some have
setproctitle, and some have nothing like this at all, stock Windows for
example.

It's also too late to add something along these lines to Cygwin 3.5,
which is due this week.

What we can do is to support this in the next major version of Cygwin,
in which case I'd prefer to implement this via setproctitle(3), given
this API exists on BSD and Linux.  Whether that implies changing
Cygwin's very simple ps(1) as well, I can't say yet.


HTH,
Corinna

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


Re: Setting process command name in forked process

2024-01-26 Thread Steve Beck via Cygwin
Thanks so much for the reply, Anton!  Really appreciate it.

I tried what you proposed.  Here is the code trying both ways (overwriting what 
is referenced by __argv[0] and then reassigning the reference).  I compile this 
code (foo.c) simply as follows: gcc -o foo foo.c (with no errors or warnings):

#include
#include
#include
#include

extern  pid_t   getpid(void), fork(void);
extern  int sleep(int);

int
main (int argc, char *argv[])
{
printf("%s with pid %d: Entered.  About to fork child ...\n",
argv[0], getpid());

if (fork() == 0)
{
extern  char**__argv;

strcpy(__argv[0], "bar");

printf("Child '%s' (argv[0]) with pid %d: ps ...\n",
argv[0], getpid());
system("ps");

__argv[0] = "bar";

printf("Retry in Child '%s' (argv[0]) with pid %d setting 
__argv[0] = 'bar': ps ...\n", argv[0], getpid());
system("ps");

exit(0);
}

printf("%s parent with pid %d: sleep(5) ...\n", argv[0], getpid());
sleep(5);

exit(0);
}

Here is the output when running foo.exe:

foo with pid 497: Entered.  About to fork child ...
foo parent with pid 497: sleep(5) ...
Child 'bar' (argv[0]) with pid 498: ps ...
  PIDPPIDPGID WINPID   TTY UIDSTIME COMMAND
  446 445 446 108276  pty0 1207519 10:19:37 /usr/bin/bash
  445   1 445 126652  ?1207519 10:19:36 /usr/bin/mintty
  499 498 497 125904  pty0 1207519 10:26:41 /usr/bin/ps
  498 497 497 128424  pty0 1207519 10:26:41 /home/sbeck/foo
  497 446 497 123772  pty0 1207519 10:26:41 /home/sbeck/foo
Retry in Child 'bar' (argv[0]) with pid 498 setting __argv[0] = 'bar': ps ...
  PIDPPIDPGID WINPID   TTY UIDSTIME COMMAND
  446 445 446 108276  pty0 1207519 10:19:37 /usr/bin/bash
  445   1 445 126652  ?1207519 10:19:36 /usr/bin/mintty
  498 497 497 128424  pty0 1207519 10:26:41 /home/sbeck/foo
  497 446 497 123772  pty0 1207519 10:26:41 /home/sbeck/foo
  500 498 497 128948  pty0 1207519 10:26:41 /usr/bin/ps

As you can see, in neither case does the ps command seem to accurately reflect 
the change in __argv[0] (although within the program, the change occurs to 
argv[0]).

Can you see what I'm doing wrong?

Many thanks,
Steve


From: Lavrentiev, Anton (NIH/NLM/NCBI) [C] 
Sent: Friday, January 26, 2024 7:47 AM
To: Steve Beck ; cygwin@cygwin.com 
Subject: RE: Setting process command name in forked process

> (I'm assuming it's too late by the time the /proc entry has been set up).

Actually, it's not.  But beware, the suggested solution is absolutely NOT 
portable:

These are the externals that /proc is referring to...  (Not argc, argv passed 
to main().)

extern char** __argv;
extern int__argc;

So you can change everything that it shows by reassigning __argv(and/or __argc) 
with a totally
different set of arguments, or just modify __argv[0], provided that it fits 
into the space
occupied by the original argument [0].

HTH,

Anton Lavrentiev
Contractor NIH/NLM/NCBI


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


Editing with vim clears Windows 10 file system archive bit.

2021-11-14 Thread Steve Ward via Cygwin
Description of problem:
While using vim 8.2 on cygwin 3.3 (x86_64) on Windows 10,
when editing an existing file with vim and saving it, the Window’s
file system archive bit is always left cleared (not modified state).
This happens, whether the archive bit was set (is modified) or
clear (not modified) initially.  Window’s backup tools rely on this
archive bit for making incremental backups.

The following scenarios DO work:
1. Using vim to create a new file,
   leaves the new file’s archive bit set (is modified).
2. “cp” and redirect with append (“>>”),
   leave the target file’s archive bit set (is modified).
3. “emacs” (emacs-w32) (ver. 27.2) worked for both editing and creating!
4. Editing with vim sets the “last modified date” correctly
   for Linux and Windows.

Tools used to confirm the problem:
The cygwin tool, “cygcheck –c” listed “OK” as the status of every package.
The archive bit settings were confirmed with Window’s “File Explorer” and
cygwin’s “attrib”.
The cygwin tool, “chattr,” could be used as a crude workaround,
but I rather have vim do it.

My search for solutions:
I have perused 8 years of “The Cygwin Archives” for this issue,
but could find nothing relevant.
Google Web searches, and stackoverflow.com, vim.org and
vi.stackexchange.com searches turned up nothing relevant.
On my local machine, a search of /usr/share/vim/vim82/doc/*.txt
turned up nothing relevant.

My update history:
10/2013 Cygwin-1.7.25 Windows  8 vim-7.3.1314 No problem with archive bit.
09/2021 Cygwin-3.2.0  Windows 10 vim-8.2.0486 Problem with archive bit.
11/2021 Cygwin-3.3.2  Windows 10 vim-8.2.0486 Problem with archive bit.

Can anyone shed some light on this issue?

Thanks,
Steve

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows


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


Requesting upload privileges

2021-01-25 Thread Steve He via Cygwin-apps
Name: Steve He
 BEGIN SSH2 PUBLIC KEY 
Comment: "3072-bit RSA, converted by Administrator@DESKTOP-ENTJJOK fro"
B3NzaC1yc2EDAQABAAABgQClIrCpBwmZrdjLV+kxnMSD+u8CAXjeJKlweiSoAr
+hEn0KPwVSNKRMd4JLoibk7/jJq3TjJAmRjld16Ru0l2QeEqZJKe47heSTbC8gqrVZttKP
p7sgM1OxINgmV09hs5ew4YR0ScyD2alZMons3KiCHYZEIxpqIBqY9JZK6SD8ONnb9/KTjT
73VIxywwpD9C5vI0EhVIry0rUtB6WByOGPDxerXuYxamoJKAjtnzbzzAg+4j6aGHV+QYkO
BWCm3Yjx+S2LyLrAX7y0IOSNvrp9ZUYIvTYnNOq3aAlonQvy3AHS9mrE55cFpStrhaB0nn
XociqIi2ASM98OVwTS99O1+DNYPeFMgpcmEXLbqhdiOggvuvyQrAToIUZvwFymn6xi97ly
bDaMW+vMDy4u8jWJ7qXWvpMHoYt50iiyiCYL+GtNKSuXQp5DiNIyDAXj2tdlqau93lF2N6
Ije4DVUj9SgME4P9c7NPlwcSivAb7Lk+1qpD+FZU3vn3fQFtSpktM=
 END SSH2 PUBLIC KEY 


Re: Sudden loss of "e" key in cygwin only - Fixed

2019-08-06 Thread steve shepard
Here's a fix to squirrel away; using the alt key and pressing the number pad 
keys (while holding the alt key) you can enter a ascii character
for example:
ALT 101
https://www.alt-codes.net/



From: cygwin-ow...@cygwin.com  on behalf of Dominic 
Bragge 
Sent: Tuesday, August 6, 2019 4:27 AM
To: cygwin@cygwin.com 
Subject: RE: Sudden loss of "e" key in cygwin only - Fixed

FYI
It seems a minor change (two Echo statements) in my .inputrc caused the problems
I'm not sure why.

All ok now

(Using minty problem was still there when I tried bash)

Dom



-Original Message-
From: cygwin-ow...@cygwin.com  On Behalf Of Dominic 
Bragge
Sent: Tuesday, 6 August 2019 12:32 PM
To: cygwin@cygwin.com
Subject: Sudden loss of "e" key in cygwin only

I'm new on the list today
I use generally use Cygwin for minimalist trawling through ascii dumps of 
databases using combos of grep awk printf etc


I cannot type "grep" on cmd line in cygwin anymore as of this morning!


It seems I have lost the lowercase "e" key. Uppercase works. All other keys 
seems to work.
All keys work in windows (on same computer).

Any clues anyone?


Thanking you kindly
Dom
Sydney, Australia


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


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


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



Re: Couldn't compute FAST_CWD pointer. Please report this problem to

2019-02-07 Thread steve shepard
The problem, as I have experienced it, is that not installed projects using 
cygwin have the same installation directory; you need to (from the cygwin) 
shell determine the install directory first.
Steve

From: cygwin-ow...@cygwin.com  on behalf of Andrey 
Repin 
Sent: Tuesday, February 5, 2019 5:38 PM
To: Sierk, Dietmar; cygwin@cygwin.com
Subject: Re: Couldn't compute FAST_CWD pointer. Please report this problem to

Greetings, Sierk, Dietmar!

> 1 [main] sh 19920 find_fast_cwd: WARNING: Couldn't compute FAST_CWD
> pointer.  Please report this problem to
> the public mailing list cygwin@cygwin.com

This indicates that you are using a very old Cygwin installation.
The issue leading to this warning was fixed over a decade ago.
Please upgrade your Cygwin as explained in
https://cygwin.com/faq/faq.html#faq.using.fixing-find_fast_cwd-warnings


--
With best regards,
Andrey Repin
Tuesday, February 5, 2019 20:35:32

Sorry for my terrible english...


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


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



Re: Error

2018-08-02 Thread steve shepard
Thank you, Andrey, for your helpful update.
My only two cents: Not every distribution uses the same installation directory 
for your product; I'd suggest those with this problem check the environment 
variables your project configuration uses.

Steve

From: cygwin-ow...@cygwin.com  on behalf of Andrey 
Repin 
Sent: Tuesday, July 31, 2018 1:11 PM
To: Medina, Adela; cygwin@cygwin.com
Subject: Re: Error

Greetings, Medina, Adela!

> 1 [main] make 1972 find_fast_cwd: WARNING: Couldn't compute FAST_CWD
> pointer.  Please report this problem to
> the public mailing list cygwin@cygwin.com
> cd submodules && make all
> make: /bin/sh: Command not found
> Makefile:2: recipe for target `all' failed
> make: *** [all] Error 127

This is a WARNING, not an error. And the wording of it indicates that you are
using a very, very, very old Cygwin version. The probem was fixed over a
decade ago.
See http://cygwin.com/faq/faq.html#faq.using.fixing-find_fast_cwd-warnings
for details.


--
With best regards,
Andrey Repin
Tuesday, July 31, 2018 16:09:58

Sorry for my terrible english...


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


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



Re: Altera Quartus Tool

2018-05-21 Thread steve shepard
For what it's worth, I finally figured out how to check my version of Cygwin: 
CYGWIN_NT-10.0-WOW6 DESKTOP-7SLUGID 1.7.31(0.272/5/3) 2014-07-21 18:40 i686
i686 refers to the 32 bit version

Steve

From: cygwin-ow...@cygwin.com <cygwin-ow...@cygwin.com> on behalf of Mandl, 
Christian <christian.ma...@meon-medical.com>
Sent: Thursday, May 17, 2018 1:22 PM
To: cygwin@cygwin.com
Subject: Altera Quartus Tool

Dear Sir,

with the Altera Quartus Tool i get on Windows 10 with cygwin (cygwin version 
1.7.15 Build Version 3.82) always

1 [main] sh 8820 find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer.  
Please report this problem to
the public mailing list cygwin@cygwin.com<mailto:cygwin@cygwin.com>

King regards
Christian Mandl

% what can i do?



MEON Medical Solutions® GmbH & CoKG
Neue Stiftingtalstrasse 2
8010 Graz, Austria
Tel.: +43-316-337 007-57, Fax: +43-316-337 007-4
E-Mail: 
christian.ma...@meon-medical.com<mailto:christian.ma...@meon-medical.com>
VAT NO: ATU 6723 1658
EORI: ATEOS145566
Commercial Register No.: FN380593x
Regional Court: Landesgericht für ZRS Graz
Controlling institution: Magistrat der Stadt Graz
General Manager: Dr. Horst Rüther


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


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



RE: Defective "portable executables" distributed/created by Cygwin

2018-05-10 Thread Steve Carroll (VISUAL STUDIO) via cygwin
@Ten Tzen can you take a look?

-Original Message-
From: Stefan Kanthak  
Sent: Thursday, May 10, 2018 11:30 AM
To: cygwin@cygwin.com
Cc: Compiler Crash 
Subject: Defective "portable executables" distributed/created by Cygwin

Hi @ll,

the "portable executables" distributed by Cygwin (and of course those created 
with Cygwin's GCC toolchain too) have INVALID/ILLEGAL headers:

0. Microsoft's DUMPBIN.EXE alias LINK.EXE /DUMP aborts with
   "access violation" (see below) on almost all Cygwin binaries!

1. they use INVALID/ILLEGAL section names like "/4" or "/14", upon
   which Microsoft's DUMPBIN.EXE alias LINK.EXE /DUMP stops enumerating
   the section headers (see below)!

   From the PE format specification
   
:

| Offset  Size  Field  Description
|  0 8  Name   An 8-byte, null-padded UTF-8 encoded string.
|  If the string is exactly 8 characters long,
|  there is no terminating null. For longer names,
|  this field contains a slash (/) that is followed
|  by an ASCII representation of a decimal number
|  that is an offset into the string table.
|  Executable images do not use a string table and 
| do
   ~~
|  not support section names longer than 8 characters.
   ~~~
|  Long names in object files are truncated if they
   
|  are emitted to an executable file.
   ~~

2. despite no COFF symbol table and a symbol count of 0 (in words: ZERO!)
   they specify the "PointerToSymbolTable" (see below)!

   From the PE format specification
   
:

| Offset  Size  Field Description
|  8 4  PointerToSymbolTable  The file offset of the COFF symbol
| table, or zero if no COFF symbol
| table is present. This value should
| be zero for an image because COFF
| debugging information is deprecated.

Please fix your tools!

regards
Stefan Kanthak

=== output from LINK.EXE /DUMP bash.exe ===

Microsoft (R) COFF/PE Dumper Version 10.00.40219.386 Copyright (C) Microsoft 
Corporation.  All rights reserved.


Dump of file bash.exe

File Type: EXECUTABLE IMAGE

LINK : fatal error LNK1000: Internal error during DumpSections

  Version 10.00.40219.386

  ExceptionCode= C005
  ExceptionFlags   = 
  ExceptionAddress = 00427FE0 (0040) "C:\Program Files\Microsoft 
Visual Studio 2010\VC\bin\link.exe"
  NumberParameters = 0002
  ExceptionInformation[ 0] = 
  ExceptionInformation[ 1] = 0004

CONTEXT:
  Eax= 4040  Esp= 0012E740
  Ebx= 014B53C0  Ebp= 0012E768
  Ecx= 0004  Esi= 0004
  Edx= 00404164  Edi= 014C
  Eip= 00427FE0  EFlags = 00010246
  SegCs  = 001B  SegDs  = 0023
  SegSs  = 0023  SegEs  = 0023
  SegFs  = 003B  SegGs  = 
  Dr0=   Dr3= 
  Dr1=   Dr6= 
  Dr2=   Dr7= 

=== output from LINK.EXE /DUMP /HEADERS bash.exe ===

Microsoft (R) COFF/PE Dumper Version 10.00.40219.386 Copyright (C) Microsoft 
Corporation.  All rights reserved.


Dump of file bash.exe

PE signature found

File Type: EXECUTABLE IMAGE

FILE HEADER VALUES
 14C machine (x86)
   B number of sections
3000 time date stamp Thu Jan 01 04:24:48 1970
   C2600 file pointer to symbol table
   0 number of symbols
  E0 size of optional header
 32E characteristics
   Executable
   Line numbers stripped
   Symbols stripped
   Application can handle large (>2GB) addresses
   32 bit word machine
   Debug information stripped

OPTIONAL HEADER VALUES

Re: Warning (Couldn't compute FAST_CWD pointer)

2018-04-28 Thread steve shepard
Hi, jumping in mid-stream, which is also dangerous.
One issue: it is possible to have multiple versions of cygwin installed on your 
computer; perhaps checking the path for the module that gives the error might 
help. I have a similar using using Altera FPGA build software that used a 
different version in a different source path. Good luck!
Steve

From: cygwin-ow...@cygwin.com <cygwin-ow...@cygwin.com> on behalf of Rabii 
Mejdoule Semlali via cygwin <cygwin@cygwin.com>
Sent: Saturday, April 28, 2018 9:06 PM
To: cygwin@cygwin.com
Subject: Warning (Couldn't compute FAST_CWD pointer)

Dear Sir or Madam,

i can not compile my Project at Eclipse, i becom ale Warning below , What can i 
do to emprove that?
Info.: I have :
Quartus II 64Bit V13.0DE2 Cyclone 2 (EP2C35F672C6N)



 Build of configuration Nios II for project cpu_TimerCnt 

make all
  2 [main] sh 14912 find_fast_cwd: WARNING: Couldn't compute FAST_CWD 
pointer.  Please report this problem to
the public mailing list cygwin@cygwin.com
  1 [main] sh 8272 find_fast_cwd: WARNING: Couldn't compute FAST_CWD 
pointer.  Please report this problem to
the public mailing list cygwin@cygwin.com
404 [main] echo 14560 find_fast_cwd: WARNING: Couldn't compute FAST_CWD 
pointer.  Please report this problem to
the public mailing list cygwin@cygwin.com
Info: Building ../cpu_TimerCnt_bsp/
make --no-print-directory -C ../cpu_TimerCnt_bsp/
  1 [main] pwd 6980 find_fast_cwd: WARNING: Couldn't compute FAST_CWD 
pointer.  Please report this problem to
the public mailing list cygwin@cygwin.com
  1 [main] sh 2504 find_fast_cwd: WARNING: Couldn't compute FAST_CWD 
pointer.  Please report this problem to
the public mailing list cygwin@cygwin.com
  1 [main] sh 9376 find_fast_cwd: WARNING: Couldn't compute FAST_CWD 
pointer.  Please report this problem to
the public mailing list cygwin@cygwin.com
[BSP build complete]
  2 [main] true 7792 find_fast_cwd: WARNING: Couldn't compute FAST_CWD 
pointer.  Please report this problem to
the public mailing list cygwin@cygwin.com
  1 [main] sh 12964 find_fast_cwd: WARNING: Couldn't compute FAST_CWD 
pointer.  Please report this problem to
the public mailing list cygwin@cygwin.com
[cpu_TimerCnt build complete]

 Build Finished 


Best regards

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


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



Re: rsync error | Couldn't compute FAST_CWD pointer.

2018-04-20 Thread steve shepard
For what it's worth, I ran into this problem with support on a FPGA project; 
the update info along with the link for the CygWin error:
http://terasic.yubacollegecompsci.com/
[http://yubacollegecompsci.com/images/Steve.jpg1zA]<http://terasic.yubacollegecompsci.com/>

Spring 2016 Terasic De1-soc<http://terasic.yubacollegecompsci.com/>
Supplemental Material for De1-Soc. Email contact: sshep...@yccd.edu Product 
Support WebSite. dc934a demo Support WebSite. DE1-SoC GPIO
terasic.yubacollegecompsci.com


Search for the section "CygWin" and see if that fixes the error. Good luck!
Steve

From: cygwin-ow...@cygwin.com <cygwin-ow...@cygwin.com> on behalf of Amod Raje 
<raje.a...@gmail.com>
Sent: Friday, April 20, 2018 12:44 PM
To: cygwin@cygwin.com
Subject: rsync error | Couldn't compute FAST_CWD pointer.

Hello,



I am trying to deploy DeltaCopy
<http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp> which uses rsync on
windows for backup.

I am facing below issue when client tries to connect to server.



Executing: rsync.exe  -v -rlt -z --chmod=a=rw,Da+x --delete
"/cygdrive/C/Testing/Defects_Report/All_Projects_Defect_Summary.xlsx"
"::0/Defects_Report/All_Projects_Defect_Summary.xlsx"

  0 [main] rsync 20156 find_fast_cwd: WARNING: Couldn't compute
FAST_CWD pointer.  Please report this problem to

the public mailing list cygwin@cygwin.com


If you could help in resolving this issue would be helpful.



Thanks,

Amod

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


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



Trouble running ssh-host-config

2018-02-28 Thread Steve Kelem
When I right-click cygwin.bat and run as Administrator, ssh-host-config -y
gets the following errors:

% ssh-host-config -y

*** Warning: Running this script typically requires administrator
privileges!
*** Warning: However, it seems your account does not have these privileges.
*** Warning: Here's the list of groups in your user token:

None
Users
INTERACTIVE
CONSOLE LOGON
Authenticated Users
This Organization
Local account
LOCAL
NTLM Authentication
Medium Mandatory Level

*** Warning: This usually means you're running this script from a non-admin
*** Warning: desktop session, or in a non-elevated shell under UAC control.

*** Warning: Make sure you have the appropriate privileges right now,
*** Warning: otherwise parts of this script will probably fail!

*** Query: Are you sure you want to continue?  (Say "no" if you're not sure
*** Query: you have the required privileges) (yes/no) yes

*** Warning: Can't set permissions on /var/empty!
*** Info: Generating missing SSH host keys
*** Warning: Can't create /etc/ssh/ssh_config because default version could
not be found.
*** Warning: Check '/etc/ssh/defaults'
*** Warning: Can't create /etc/ssh/sshd_config because default version
could not be found.
*** Warning: Check '/etc/ssh/defaults'
*** Info: Updating /etc/ssh/sshd_config file

*** Query: Do you want to install sshd as a service?
*** Query: (Say "no" if it is already installed as a service) (yes/no) yes
*** Query: Enter the value of CYGWIN for the daemon: []
*** Info: On Windows Server 2003, Windows Vista, and above, the
*** Info: SYSTEM account cannot setuid to other users -- a capability
*** Info: sshd requires.  You need to have or to create a privileged
*** Info: account.  This script will help you do so.

*** Info: It's not possible to use the LocalSystem account for services
*** Info: that can change the user id without an explicit password
*** Info: (such as passwordless logins [e.g. public key authentication]
*** Info: via sshd) when having to create the user token from scratch.
*** Info: For more information on this requirement, see
*** Info: https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-nopasswd1

*** Info: If you want to enable that functionality, it's required to create
*** Info: a new account with special privileges (unless such an account
*** Info: already exists). This account is then used to run these special
*** Info: servers.

*** Info: Note that creating a new user requires that the current account
*** Info: have Administrator privileges itself.

*** Info: The following privileged accounts were found: 'cyg_server' .

*** Info: This script plans to use 'cyg_server'.
*** Info: 'cyg_server' will only be used by registered services.
*** Query: Please enter the password for user 'cyg_server':
*** Query: Reenter:

/usr/bin/cygrunsrv: Error installing a service: OpenSCManager:  Win32 error
5:
Access is denied.

*** ERROR: Installing sshd as a service failed!

*** Warning: Host configuration exited with 4 errors or warnings!
*** Warning: Make sure that all problems reported are fixed,
*** Warning: then re-run ssh-host-config.

What am I doing wrong?
Thanks for any help you can give.
Steve

Cygwin 2.10.0-1
Windows 10 x64
Openssh 7.6p1-1
cyg_server exists as an account with admin privileges, as does my account.
Windows accounts as workgroup, not domain.

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



sed match DOS end of line

2018-01-06 Thread Steve Harlow


Greetings,

With 'sed' (GNU sed) version 4.4 I am seeing that '$' doesn't match end 
of line with windows type text files.

It looks like something like this happened and was fixed on version 4.2.2.
https://cygwin.com/ml/cygwin/2013-06/msg00685.html

Here is the original complaint at the time.  I'm seeing the same thing 
with version 4.4.

https://cygwin.com/ml/cygwin/2013-06/msg00673.html

Do I not have some environment variable set correctly? Is this a bug in sed?

I see that I can install the older version, 4.2.2.3.  Looks like that 
might take a step backwards on some libraries too. compiler-rt(5.0.1-1), 
libc++devel (5.0.1-1), libc++1 (5.0.1-1), etc.  Is that the right way to go?


Regards,
Steve


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



Re: update trouble 1.7.35

2015-03-25 Thread Steve Johnson
Corinna Vinschen corinna-cygwin at cygwin.com writes:
 After exiting all Cygwin processes, including any running cygserver
 service and starting a fresh, new shell?

Indeed, I do not have any cygwin processes running, nor any cygserver (from 
processes from all users + service, with admin rights)

 If so, this is an strace output from getent or id I'm interested in!

Added both to the mail

 Also, can I see your nsswitch.conf file, just to be sure it doesn't
 have a layout problem (i.e. the colons)?  Do you still have your
 /etc/passwd and /etc/group files and are they still in /etc?

I added the nsswitch.conf file. However, as mentioned previously, no 
/etc/passwd or /etc/group files were ever created

 Can you resend or generate a new one as excitedly outlined above?  Your
 mail somehow didn't make it (Typo in my name?  You wouldn't be the first
 one...)

I have just resent it, copy-pasted from the key, so hopefully all should be 
good. It was the first time I used Mailvelope and I think I forgot one step. 
Please let me know if you haven't received it.

Thanks!




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



Re: update trouble 1.7.35

2015-03-24 Thread Steve Johnson
Hi Corinna,

I am having the same issue, but from a fresh install of cygwin64.

I also tried you recommendation, but it did not work. I tried with
just files instead of db as well, with the same results. There are no
passwd or group files in the etc folder, so I don't know if this is
any relevant information either.

I would rather not post the results of the 'id' command publicly, so if 
possible, I would gladly provide them if you contact me directly or give me 
another mean to provide them.

Thanks,
Steve Johnson




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



Re: update trouble 1.7.35

2015-03-24 Thread Steve Johnson
Corinna Vinschen corinna-cygwin at cygwin.com writes:

 
 
 from the keyserver hkp://keys.gnupg.net.  However, what about my
 questions about setting db only in nsswitch.conf?  Does it help?
 Do you have a SID history, too, by any chance?
 

The last test that I did was with db only in nsswitch.conf and unfortunately 
no, it did not help. I have also checked and I do not have an SID history. I 
hightly doubted as this is a new account, but double checked and all OK.

I have sent trace file and cygcheck -srv to your other specified email address.

Thanks again,
Steve Johnson





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



Re: update trouble 1.7.35

2015-03-24 Thread Steve Johnson
Unfortunately, that is one piece of information that I forgot to mention
after I had removed stripped out the output of the commands. I get no output
whatsoever from getent. Here is the output of the commands, when I had run
them this morning:

C:\cygwin64\bingetent passwd %USERNAME%

C:\cygwin64\binid
uid=4294967295(Unknown+User) gid=4294967295(Unknown+Group)
groups=545(Users),544(Admins),4(A1),66049(A2),11(Auth users),15(This
org),4095(CurrentSession),66048(LOCAL),1056170(A3),1057070(A4),1051115(A5),1
051005(A6),1056095(A7),1056192(A8),1051509(A9),1054768(A10),1057114(A11),104
9887(A12),1068445(A13),1051461(A14),1057115(A15),1056098(A16),1068744(A17),1
050912(A18),1068708(A19),1052088(A20),1053844(A21),1057175(A22),1053843(A23)
,1051713(A24),1054212(A25),1057536(A26),1050984(A28),1054460(A29),1057071(A3
0),1055832(A31),1055117(A32),1051006(A33),1057060(A34),1068699(A35),1054464(
A36),1054462(A37),1054195(A38),1053997(A39),1054461(A40),1051464(A41),105172
5(A42),1057094(A43),1049914(A44),1050873(A44),1051719(A45),1055144(A46),1051
617(A47),1056091(A48),1055831(A49),1051093(A50),1068698(A51),1050648(A52),10
51842(A53),1051159(A54),1051187(A55),405504(A56)

I ran id again, before writing this reply, and only got the following:

C:\cygwin64\binid
uid=4294967295(Unknown+User) gid=4294967295(Unknown+Group)


Below is the output from strace of getent command:
2   2 [main] getent (4532)
**
  182 184 [main] getent (4532) Program name: C:\cygwin64\bin\getent.exe
(windows pid 4532)
   57 241 [main] getent (4532) OS version:   Windows NT-6.1
   28 269 [main] getent (4532)
**
  163 432 [main] getent (4532) sigprocmask: 0 = sigprocmask (0, 0x0,
0x1802D1CA8)
  395 827 [main] getent 4532 open_shared: name shared.5, n 5, shared
0x18003 (wanted 0x18003), h 0x60, *m 6
   55 882 [main] getent 4532 user_heap_info::init: heap base
0x6, heap top 0x6, heap size 0x2000 (536870912)
  112 994 [main] getent 4532 open_shared: name S-1-5-21-1155469006-
580272788-1541874228-59418.1, n 1, shared 0x18002 (wanted 0x18002),
h 0x5C, *m 6
   581052 [main] getent 4532 user_info::create: opening user shared for
'S-1-5-21-1155469006-580272788-1541874228-59418' at 0x18002
   871139 [main] getent 4532 user_info::create: user shared version
AB1FCCE8
  1141253 [main] getent 4532 fhandler_pipe::create: name
\\.\pipe\cygwin-e022582115c10879-4532-sigwait, size 11440, mode
PIPE_TYPE_MESSAGE
   841337 [main] getent 4532 fhandler_pipe::create: pipe read handle
0x78
   301367 [main] getent 4532 fhandler_pipe::create: CreateFile: name
\\.\pipe\cygwin-e022582115c10879-4532-sigwait
   551422 [main] getent 4532 fhandler_pipe::create: pipe write handle
0x7C
   821504 [main] getent 4532 dll_crt0_0: finished dll_crt0_0
initialization
 12872791 [sig] getent 4532 wait_sig: entering ReadFile loop, my_readsig
0x78, my_sendsig 0x7C
  2753066 [main] getent 4532 time: 1427207219 = time(0x0)
  1043170 [main] getent 4532 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin64\bin, no-keep-rel, no-add-slash)
   483218 [main] getent 4532 normalize_win32_path: C:\cygwin64\bin =
normalize_win32_path (C:\cygwin64\bin)
   333251 [main] getent 4532 mount_info::conv_to_posix_path: /usr/bin =
conv_to_posix_path (C:\cygwin64\bin)
   543305 [main] getent 4532 sigprocmask: 0 = sigprocmask (0, 0x0,
0x600018128)
  2113516 [main] getent 4532 _cygwin_istext_for_stdio: fd 0: not open
   393555 [main] getent 4532 _cygwin_istext_for_stdio: fd 1: not open
   253580 [main] getent 4532 _cygwin_istext_for_stdio: fd 2: not open
   943674 [main] getent (4532) open_shared: name cygpid.4532, n 4532,
shared 0x18001 (wanted 0x18001), h 0xB8, *m 2
   363710 [main] ? (4532) time: 1427207219 = time(0x0)
   283738 [main] getent 4532 pinfo::thisproc: myself dwProcessId 4532
  1103848 [main] getent 4532 environ_init: GetEnvironmentStrings
returned 0x408020
   773925 [main] getent 4532 environ_init: 0x6000284F0:
!C:=C:\cygwin64\bin
   523977 [main] getent 4532 environ_init: 0x600028510:
!ExitCode=0002
   724049 [main] getent 4532 environ_init: 0x600028530:
ALLUSERSPROFILE=C:\ProgramData
   594108 [main] getent 4532 environ_init: 0x600028560:
APPDATA=C:\Users\johndoe\AppData\Roaming
   654173 [main] getent 4532 environ_init: 0x600028590:
CLASSPATH=.;C:\Program Files (x86)\Java\jre1.8.0_31\lib\ext\QTJava.zip
   454218 [main] getent 4532 environ_init: 0x6000285E0:
COMMONPROGRAMFILES=C:\Program Files\Common Files
   424260 [main] getent 4532 environ_init: 0x600028620:
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
   424302 [main] getent 4532 environ_init: 0x600028670:
CommonProgramW6432=C:\Program Files\Common Files
   534355 [main] getent 4532 environ_init: 0x6000286B0:
COMPUTERNAME=LAPTOPA
   55

Re: update trouble 1.7.35

2015-03-24 Thread Steve Johnson
Corinna Vinschen corinna-cygwin at cygwin.com writes:

 
 This uid=4294967295(Unknown+User) gid=4294967295(Unknown+Group)
 should only happen if you have /etc/nsswitch.conf is set to files
 only, and there's no entry in /etc/passwd with a matching SID.
 That's the only way I can reproduce this behaviour.
 
 Corinna
 


Hi Corinna,

Where could I get the gpg key to send, as you had suggested earlier? I've tried 
posting replies with the requested information many times, but they all have 
seemed to fail...

Sorry for the added complexity.

Thanks,
Steve Johnson


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



Unattended setup mode

2014-10-21 Thread Steve Lee
I have found that the first time setup unattended mode (-q) is run it
needs more user interaction tan might be expected.

I can understand the request for a download site but not the showing
the Manager or the action summary. These require the user to select
Next twice and does not happen if the setup is run again. Not quite
unattended ;)

To reproduce simply delete the cycgwin installation folder - leaving
the registry pointing at a non-existing folder.
The run setup-x86*.exe -q -C Base -P unzip

For more details of my specific usage see this Cmd script -
https://github.com/SteveALee/B2G-flash-tool/blob/shallowflashbat/shallow_flash.bat

I'm happy to create a bug but your process requests emails first.

Steve Lee
OpenDirective http://opendirective.com

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



Perl Term/ReadKey module

2014-06-03 Thread Steve Campbell
Hi,

The perl Term/ReadKey.pm module is present in perl 5.10.1-5, but is
missing from 5.14.2-3 and 5.18.2-1

Would it be possible to re-include it please?

Thanks,
Steve

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



Re: cygwin64 1.7.25 locate core dumps

2013-10-25 Thread Steve
On Mon, Sep 16, 2013 at 6:45 PM,  jeff.newmil...@dnvkema.com wrote:
 Could not find reports on core dumps in system programs recently, or problems
 with the locate tool.

 What I do:

 --
 JNEWM@FSEL7800 ~
 $ locate junk
 /home/JNEWM/.cpan/build/Email-Simple-2.102-AftJAF/t/header-junk.t
 /home/JNEWM/.cpan/build/Email-Simple-2.102-AftJAF/t/test-mails/junk-in-header
 /home/JNEWM/.cpan/build/MIME-tools-5.503-wxTSaY/testmsgs/uu-junk-extracted.ref
 /home/JNEWM/.cpan/build/MIME-tools-5.503-wxTSaY/testmsgs/uu-junk-target.msg
 /home/JNEWM/.cpan/build/MIME-tools-5.503-wxTSaY/testmsgs/uu-junk.msg
 /home/JNEWM/.cpan/build/MIME-tools-5.503-wxTSaY/testmsgs/uu-junk.ref
 Segmentation fault (core dumped)

 JNEWM@FSEL7800 ~
 $
 --

 The tool works, except that it core dumps so it doesn't seem to feed a pipe
 very well.

 I tried running strace, and the end of the trace looks like the following.
 It looks to me like the problem happened during or just after the file close.

 --
19 84479661 [main] locate 9720 read: 65536 = read(3, 0x60003B2D0, 65536)
 748393 85228054 [main] locate 9720 read: read(3, 0x60003B2D0, 65536) blocking
42 85228096 [main] locate 9720 fhandler_base::read: returning 65536, 
 binary mode
13 85228109 [main] locate 9720 read: 65536 = read(3, 0x60003B2D0, 65536)
 767492 85995601 [main] locate 9720 read: read(3, 0x60003B2D0, 65536) blocking
41 85995642 [main] locate 9720 fhandler_base::read: returning 65536, 
 binary mode
13 85995655 [main] locate 9720 read: 65536 = read(3, 0x60003B2D0, 65536)
 1058095 87053750 [main] locate 9720 read: read(3, 0x60003B2D0, 65536) blocking
41 87053791 [main] locate 9720 fhandler_base::read: returning 57882, 
 binary mode
13 87053804 [main] locate 9720 read: 57882 = read(3, 0x60003B2D0, 65536)
 1025302 88079106 [main] locate 9720 read: read(3, 0x60003B2D0, 65536) blocking
25 88079131 [main] locate 9720 fhandler_base::read: returning 0, binary 
 mode
13 88079144 [main] locate 9720 read: 0 = read(3, 0x60003B2D0, 65536)
   177 88079321 [main] locate 9720 close: close(3)
18 88079339 [main] locate 9720 fhandler_base::close: closing 
 '/var/locatedb' handle 0x1DC
37 88079376 [main] locate 9720 close: 0 = close(3)
 --- Process 9720, exception c005 at 00010040368B
   176 88079552 [main] locate 9720 exception::handle: In cygwin_except_handler 
 exception 0xC005 at 0x10040368B sp 0x22A800
14 88079566 [main] locate 9720 exception::handle: In cygwin_except_handler 
 signal 11 at 0x10040368B
12 88079578 [main] locate 9720 try_to_debug: debugger_command ''
16 88079594 [main] locate 9720 _cygtls::inside_kernel: pc 0x10040368B, h 
 0x10040, inside_kernel 0
19 88079613 [main] locate 9720 normalize_posix_path: src /dev/kmsg
13 88079626 [main] locate 9720 normalize_posix_path: /dev/kmsg = 
 normalize_posix_path (/dev/kmsg)
12 88079638 [main] locate 9720 mount_info::conv_to_win32_path: 
 conv_to_win32_path (/dev/kmsg)
15 88079653 [main] locate 9720 mount_info::conv_to_win32_path: src_path 
 /dev/kmsg, dst \Device\MailSlot\cygwin\dev\kmsg, flags 0x2, rc 0
24 88079677 [main] locate 9720 build_fh_pc: fh 0x1802DFC70, dev 0001000B
62 88079739 [main] locate 9720 seterrno_from_nt_status: 
 /home/corinna/src/cygwin/cygwin-1.7.25/64/cygwin-1.7.25-1/src/src/winsup/cygwin/fhandler_mailslot.cc:134
  status 0xC034 - windows error 2
15 88079754 [main] locate 9720 geterrno_from_win_error: windows error 2 == 
 errno 2
13 88079767 [main] locate 9720 sig_send: sendsig 0x88, pid 9720, signal 
 11, its_me 1
13 88079780 [main] locate 9720 sig_send: wakeup 0xF0
16 88079796 [main] locate 9720 sig_send: Waiting for pack.wakeup 0xF0
21 88079817 [sig] locate 9720 sigpacket::process: signal 11 processing
26 88079843 [sig] locate 9720 sigpacket::process: signal 11, signal 
 handler 0x18006F710
14 88079857 [sig] locate 9720 sigpacket::setup_handler: controlled 
 interrupt. stackptr 0x22E028, stack 0x22E028, stackptr[-1] 0x22E028
15 88079872 [sig] locate 9720 proc_subproc: args: 5, 1
17 88079889 [sig] locate 9720 proc_subproc: clear waiting threads
12 88079901 [sig] locate 9720 proc_subproc: finished clearing
11 88079912 [sig] locate 9720 proc_subproc: returning 1
12 88079924 [sig] locate 9720 _cygtls::interrupt_setup: armed 
 signal_arrived 0xF4, signal 11
12 88079936 [sig] locate 9720 sigpacket::setup_handler: signal 11 delivered
12 88079948 [sig] locate 9720 sigpacket::process: returning 1
12 88079960 [sig] locate 9720 wait_sig: signalling pack.wakeup 0xF0
15 88079975 [main] locate 9720 set_process_mask_delta: oldmask 0, newmask 
 0, deltamask 0
16 88079991 [main] locate 9720 signal_exit: exiting due to signal 11
13 88080004 [main] locate 

Re: Confused about several issues with setting up cron

2013-09-24 Thread Steve
I would try the following methods:

First make sure you are launching your local terminal with Runas
Administrator checked, even if you are the Administrator user. I am
also asuming you have done the normal stuff like cygcheck -c, and make
sure you have not loaded duplicate dlls during your troubleshooting.
If you ever get resource fork issues with parent != child error
messages right in the term, that needs to be fixed by removing the
duplicate dll file. And run /bin/rebaseall from dash or ash terminals
(disable Anti-viri).
Always manually right click and Run mintty as Administrator, also try
changing the path in the mintty shortcut to
c:\cygwin\bin\mintty.exe -
% cygrunsrv -R cron
reboot to be on the safe side
After bootup use cygwin setup to uninstall cron, then run setup again
and install it.
% cron-config
You shouldn't need todo anything custom here, yes and defaults to
everything. It should be using your current user account, and that is
hopefully the full fledged Administrator account, and not some other
user with admin privs. Which also means you are currently logged into
windows as the full Administrator account.
% net start cron
% EDITOR=vi
or whatev
% crontab -e
create an entry that just fires of something basic very frequently for instance
*/1  * * * * echo this  /cygdrive/c/Users/
Administrator/Desktop/test.file.txt
You many also want to throw in the PATH into the crontab itself for example:
PATH=/bin:/usr/bin:/usr/local/bin
As alternative to or in addition to the mentioned test.file.txt
creation cron entry, you could use something like this:
@reboot echo this  /cygdrive/c/Users/Administrator/Desktop/test.file.txt
So that instead of something fireing off every minute for testing, it
would fire it off each time you stop/start the cron service with net
stop cron and net start cron

Sorry for the messy response, i have no time right now. Good luck
reading this email and getting it working.  :)

On Sat, Sep 21, 2013 at 6:00 PM, KARR, DAVID dk0...@att.com wrote:
 CYGWIN_NT-6.1 1.7.25(0.270/5/3) 2013-08-31 20:39 i686 Cygwin

 I want to set up a cron job, so I have to get cron configured.  I'm trying to 
 follow the instructions I can find, but I'm seeing several issues.

 I'm surprised that there's nothing in the user guide or the FAQ about setting 
 up cron.  I had to settle for the various questions about this on 
 StackOverflow and others.

 I must have done something at least half correct, because I believe this 
 tells me that cron is running:

 % cygrunsrv -L
 cron

 % cronevents
 2013/09/20 21:14:06 [dk068x] crontab: PID 5924: (dk068x) LIST (dk068x)
 2013/09/21 11:28:15 [dk068x] /usr/sbin/cron: PID 4980: (CRON) STARTUP (V5.0)
 2013/09/21 11:28:16 [dk068x] cron: PID 8424: `cron' service started

 However, I then do crontab pathtomycrontabfile, where 
 pathtomycrontabfile is the path to my crontab file with the job I want to 
 run.  I then do crontab -l and it prints nothing.  There is nothing in 
 /var/log/cron*.

 I did get some errors when I ran cron-config, but I unfortunately lost that 
 output.


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


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



Re: 64-bit Cygwin installation is missing /usr/bin/lockfile

2013-08-15 Thread Steve Rowley
On Aug 14 16:34, Corinna Vinschen wrote:
On Aug 14 16:04, Corinna Vinschen wrote:
On 8/13/2013 5:01 PM, Steve Rowley wrote:
I just installed 64-bit Cygwin on Win7, and noticed that /usr/bin/lockfile 
is missing in my installation. [...]

It's just a packaging bug.  Somehow I tripped over the order of variable
evaluation.  I'm looking into it and provide a new 64 bit procmail later
today.

I just uploaded procmail-3.22-13.  Please give it a try.

I waited for the mirrors to update and then installed
procmail-3.22-13.  The result: /usr/bin/lockfile is once again
present, and my backup script now runs and completes properly, much to
my relief.

So: thanks very much.

And just in case nobody says this often enough: you have a difficult
job maintaining a beast as complex as Cygwin, and we all appreciate it
very much.

___
Steve Rowley s...@alum.mit.edu http://alum.mit.edu/www/sgr/ Skype: sgr000
It is very dark  after 2000.  If you continue, you are likely to be
eaten by a bleen.

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



64-bit Cygwin installation is missing /usr/bin/lockfile

2013-08-14 Thread Steve Rowley
 On 8/13/2013 6:49 PM, Christopher Faylor wrote:
 On Tue, Aug 13, 2013 at 05:29:46PM -0400, Larry Hall (Cygwin) wrote:
 On 8/13/2013 5:01 PM, Steve Rowley wrote:
 I just installed 64-bit Cygwin on Win7, and noticed that
 /usr/bin/lockfile is missing in my installation.

 As always, you can find what package something is in by searching for it
 here: http://cygwin.com/packages/

 In the case of lockfile, you can see the results here:
 http://cygwin.com/cgi-bin2/package-grep.cgi?grep=usr%2Fbin%2Flockfile

 However note that, currently, this only searches the 32-bit version of
 Cygwin.  Some packages are still missing from the 64-bit version.

 The fact that some packages don't exist yet for 64-bit is something
 that does deserve highlighting.  Of course, whether or not the package
 actually exists for 64-bit, the package search will tell you if it
 exists in the 32-bit world, so at least one knows what to look for.
 In this particular case, I did go looking to see if 'procmail' was
 already available for 64-bit.  As it turns out, it is.

Thank you for for the pointer to how to find the Cygwin package
containing a file; that is indeed a useful thing to know.  Since
procmail is the home of /usr/bin/lockfile, I reinstalled procmail.

However, /usr/bin/lockfile is still missing.  Unpacking the procmail
3.22-12 tarball reveals that it contains only the
/usr/share/doc/procmail/ directory, and 4 small documentation files.
The rest of procmail is missing.

If this is something that will take a while, then perhaps I should go
back to the 32-bit installation so my scripts will work while waiting
for a fix.  But as uninstalling and reinstalling a rather large Cygwin
installation is painful, I'd rather not do this if lockfile will be
available in a week or so.

Does anyone have advice as to whether it's worth waiting vs going back
to 32 bit?

Tnx.
___
Steve Rowley s...@alum.mit.edu http://alum.mit.edu/www/sgr/ Skype: sgr000
It is very dark  after 2000.  If you continue, you are likely to be
eaten by a bleen.

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



64-bit Cygwin installation is missing /usr/bin/lockfile

2013-08-13 Thread Steve Rowley
I just installed 64-bit Cygwin on Win7, and noticed that
/usr/bin/lockfile is missing in my installation.

Does anyone else have this problem, or is it a problem with my
installation? If the latter, what package should I reinstall in an
attempt to get lockfile installed?

Tnx.

___
Steve Rowley s...@alum.mit.edu http://alum.mit.edu/www/sgr/ Skype: sgr000
It is very dark  after 2000.  If you continue, you are likely to be
eaten by a bleen.

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



Add a new entry in setup.ini file

2013-07-15 Thread Lord Flaubert Steve Ataucuri Cruz
Hello,

I want to add a license entry into setup.ini file because I want to
ask by a license agreement in setup.exe  for example:

@ agg-devel
sdesc: AGG rendering library (development)
ldesc: AGG rendering library (development)
category: Libs
requires: shell
version: 2.4-1
install: ./release/agg/agg-devel/agg-devel-2.4-1.tar.bz2 379815
8ef010bafbb234ed1f9372e9b50767f6
license: ./release/agg/agg-devel/agg-devel-2.4-1.txt

I changed next files:
- I added a token in iniparse.yy :
 %token SETUP_TIMESTAMP SETUP_VERSION PACKAGEVERSION INSTALL SOURCE
SDESC LDESC LICENSE

singleitem /* non-empty */
 : PACKAGEVERSION STRING NL { iniBuilder-buildPackageVersion ($2); }
 | SDESC STRING NL  { iniBuilder-buildPackageSDesc($2); }
 | LDESC STRING NL  { iniBuilder-buildPackageLDesc($2); }
 | LICENSE STRING NL{ iniBuilder-buildPackageLicense($2); }
 | T_PREV NL{ iniBuilder-buildPackageTrust (TRUST_PREV); }


 and added a grammar in inilex.ll file:
  license:return LICENSE;

 after I did in order to rebuild the source:
bison.exe -d --output-file=iniparse.cc iniparse.yy


I also changed the abstract class _packageversion.cc and derivated
classes like packageversion.cc adding license field.

class _packageversion
{
public:
  _packageversion();
  virtual ~_packageversion();
  /* for list inserts/mgmt. */
  std::string key;
  /* name is needed here, because if we are querying a file, the data
may be embedded in
 the file */
  virtual const std::string Name () = 0;
  virtual const std::string Vendor_version () = 0;
  virtual const std::string Package_version () = 0;
  virtual const std::string Canonical_version () = 0;
  virtual void setCanonicalVersion (const std::string ) = 0;
  virtual package_status_t Status () = 0;
//  virtual package_stability_t Stability () = 0;
  virtual package_type_t Type () = 0;
  /* TODO: we should probably return a metaclass - file name  path 
size  type
 - ie doc/script/binary
   */
  virtual const std::string getfirstfile () = 0;
  virtual const std::string getnextfile () = 0;
  virtual const std::string SDesc () = 0;
  virtual const std::string LDesc () = 0;
  virtual const std::string License ()= 0;

  virtual void set_sdesc (const std::string ) = 0;
  virtual void set_ldesc (const std::string ) = 0;
  virtual void set_license (const std::string ) = 0;


I also added to IniDBBuilderPackage.cc file:

IniDBBuilderPackage::buildPackageLicense (const std::string lic)
{
cbpv.set_license(lic);

}

But when I try to build the setup.exe can't scan the new entry. Do you
have some advice to me? What is the procedure to add more entries into
setup.ini?

thanks

steve
..


-- 
Steve Ataucuri Cruz
School of Computer Science,
San Pablo Catholic University - Arequipa, Peru (http://www.ucsp.edu.pe),
Screen Names :
 stonescen...@hotmail.com (Windows Live Messenger)
 stonescen...@gmail.com (Google talk)
 stonescen...@yahoo.com (Yahoo Messenger)
 stonescenter (Skype)
+51.972529201 (Mobile)


Re: Do the runtime support the large file 2GB with fstati64 (error: undefined reference to __fstati64 )?

2013-06-12 Thread Lord Flaubert Steve Ataucuri Cruz
2013/6/10 JonY 10wa...@gmail.com:
 On 6/10/2013 09:11, Lord Flaubert Steve Ataucuri Cruz wrote:
 Folks,

 I did some research at mailing list, faq and I didn't seek any
 information about this error . I am trying to build an installer of
 some great tools of linux to windows, but I wanna use and Cygwin
 runtime and Mingw(please don't redirect to another list). I am going
 to explain what I did:


 I don't think you can use the original 3.4.x gcc to build setup anymore,
 try using the i686 mingw-w64 cross compilers, they can be found in
 Cygwin setup.


Jon Y thanks I will try with mingw-w64

Steve






-- 
Steve Ataucuri Cruz
School of Computer Science,
San Pablo Catholic University - Arequipa, Peru (http://www.ucsp.edu.pe),
Screen Names :
 stonescen...@hotmail.com (Windows Live Messenger)
 stonescen...@gmail.com (Google talk)
 stonescen...@yahoo.com (Yahoo Messenger)
 stonescenter (Skype)
+51.972529201 (Mobile)

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



Do the runtime support the large file 2GB with fstati64 (error: undefined reference to __fstati64 )?

2013-06-09 Thread Lord Flaubert Steve Ataucuri Cruz
/version_compare.o libmd5-rfc/md5.o res.o  -L/usr/lib/w32api
libinilex.a libgetopt++/.libs/libgetopt++.a -lbz2 -lz -lcomctl32
-lole32 -lwsock32 -lnetapi32 -luuid -lstdc++ -lmingw32 -lws2_32
/usr/lib/gcc/i686-pc-mingw32/3.4.4/libstdc++.a(basic_file.o):basic_file.cc:(.text+0x4ed):
undefined reference to `__fstati64'
collect2: ld returned 1 exit status
Makefile:721: recipe for target `setup.exe' failed
make[2]: *** [setup.exe] Error 1
make[2]: Leaving directory `/cygdrive/c/build/setup'
Makefile:898: recipe for target `all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/build/setup'
Makefile:640: recipe for target `all' failed
make: *** [all] Error 2

I don't know why it has undefined reference to __fstati64.  I am a
little confused because, I think the reason could be:

 * Install a newer version of runtime libraries but probably might
need a newer version of the compiler and linker as well( I have heard
newer versions of GCC do not understand the -mno-cygwin option), the
version of my GCC 3.4.4

* Replace the functions in stat and _stat in sys/stat.h with fstat64
(which has the Large File Support Issue with MinGW) or using
_FILE_OFFSET_BITS. I found some clues to the large file support issue
in this thread http://sourceware.org/ml/binutils/2011-01/msg00076.html


Could you give me some help please? I want to use _fstati64.


Best regards,


Steve


-- 
Steve Ataucuri Cruz
School of Computer Science,
San Pablo Catholic University - Arequipa, Peru (http://www.ucsp.edu.pe),
Screen Names :
 stonescen...@hotmail.com (Windows Live Messenger)
 stonescen...@gmail.com (Google talk)
 stonescen...@yahoo.com (Yahoo Messenger)
 stonescenter (Skype)
+51.972529201 (Mobile)

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



Re: Cygwin with clock_gettime and CLOCK_MONOTONIC - gives always 0

2013-04-11 Thread Steve Kargl
On Thu, Apr 11, 2013 at 10:35:54PM +0200, Tobias Burnus wrote:
 
 * gfortran's example for random_see should be change to not use 
 system_clock for the random seed.
 

I disagree.  The example is just that a short example
that demonstrates how to use random_seed.  Anyone using
that example in his/her code without testing the results
in his/her potentially broken environment should not be
programming.

-- 
Steve

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



Re: Cygwin with clock_gettime and CLOCK_MONOTONIC - gives always 0

2013-04-11 Thread Steve Kargl
On Thu, Apr 11, 2013 at 11:23:42PM +0100, N.M. Maclaren wrote:
 On Apr 11 2013, Steve Kargl wrote:
 On Thu, Apr 11, 2013 at 10:35:54PM +0200, Tobias Burnus wrote:
  
  * gfortran's example for random_see should be change to not use 
  system_clock for the random seed.
 
 I disagree.  The example is just that a short example
 that demonstrates how to use random_seed.  Anyone using
 that example in his/her code without testing the results
 in his/her potentially broken environment should not be
 programming.
 
 That is unfair.  Few scientists will know that system clocks are
 an iffy aspect of a programming language, especially as there are
 no fundamental reasons that should be the case.

This has nothing to do with the iffy-ness of system clocks.  My
disagreemnet is predicated on the stupidity of using a 10 line
example subroutine without actually inspecting what it does on 
whatever OS that one chooses to use.  Perhaps, my expectations
for the IQ of scientists is too high.  Are you suggesting that
every code snippet in the manual should contain a cautionary
comment of the form:

! 
! This is only an example.  Use with extreme caution.
!

-- 
Steve

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



Re: Cygwin with clock_gettime and CLOCK_MONOTONIC - gives always 0

2013-04-11 Thread Steve Kargl
On Fri, Apr 12, 2013 at 01:17:07AM +0200, Angelo Graziosi wrote:
 Steve Kargl wrote
 
  My
  disagreemnet is predicated on the stupidity of using a 10 line
  example subroutine without actually inspecting what it does on
  whatever OS that one chooses to use.
 
 It is just because one has tested that code that these problems came to 
 light... :-)
 

When testing, it would help if the results were properly
represented as your initial subject line was Random seed
initialization.  It seems clear to at least me your testing
did not include actually inspecting what these two lines do:

   CALL SYSTEM_CLOCK(COUNT=clock)
   seed = clock + 37 * (/ (i-1), 1=1, n) /)

because your subject would have been SYSTEM_CLOCK is broken
on cygwin.

If you want to see an actual issue with Random seed initialization
go read PR 52879.

-- 
Steve

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



Re: Installer Progress Reporting

2013-02-22 Thread Steve Thompson

On Fri, 22 Feb 2013, da...@daryllee.com wrote:

Okay, one update, then I'm getting on with my life.  Somewhere around 300% 
the sign changed, the gui progress bar cleared (no doubt related to the 
-300%), the magnitude peaked around 360 and is now working its way back down.


I see exactly the same effect (1.7.17) on both W2003 and W7.

Steve

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



Term/ReadKey.pm missing from perl 5.14.2-3

2012-07-29 Thread Steve Campbell
Hi,

The Perl Term::ReadKey module has gone missing from the perl 5.14.2-3 
package (reverting to 5.10.1-5 restores it).

Could it be put back please? Unless there's a good reason for removing it 
of course!

Thanks,
Steve Campbell.

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



Re: tar deletes .exe files on extraction (again)

2011-09-23 Thread Steve Atkins

On Sep 23, 2011, at 8:34 AM, Andrew DeFaria wrote:

 On 09/23/11 07:55, Ryan Johnson wrote:
 
 Wild speculation here...
 
 A quick test shows that ./a indeed works fine inside cygwin whether the 
 '.exe' is present or not, though it would be a little challenging invoke 
 such binaries directly from Windows.
 
 So... how hard would it be to provide 
 CYGWIN=(no)disabletransparent_exe?*** There could a very simple utility, 
 similar to rebaseall, which strips the .exe extension from cygwin 
 executables (identifiable from cygcheck or their presence in standard 
 paths), and which accepts additional paths to clean up. People needing the 
 functionality would be responsible run the utility properly (after 
 installing new packages, don't mess with Windows paths, etc.).
 
 That would require no changes to any package to give the desired behavior, 
 and as packages change they would just fit right in (no .exe in the package 
 == no fuss).
 
 Of course, SHTDI...
 
 Ryan
 
 *** The old, removed transparent_exe has the wrong boolean sense to work 
 the correct way by default
 
 What do you do about say, Foo.c and foo.c?

The same as you do now on cygwin and on other case-preserving but 
case-insensitive filesystems - treat them as identical. That's still a little 
annoying, but not uncommon on unix-ish environments (OS X as one common 
example) so people already are aware of it and work around it.

Cheers,
  Steve


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



Re: tar deletes .exe files on extraction (again)

2011-09-23 Thread Steve Atkins

On Sep 23, 2011, at 10:41 AM, Andrew DeFaria wrote:

 On 9/23/2011 9:14 AM, Steve Atkins wrote:
 On Sep 23, 2011, at 8:34 AM, Andrew DeFaria wrote:
 
 On 09/23/11 07:55, Ryan Johnson wrote:
 Wild speculation here...
 
 A quick test shows that ./a indeed works fine inside cygwin whether the 
 '.exe' is present or not, though it would be a little challenging invoke 
 such binaries directly from Windows.
 
 So... how hard would it be to provide 
 CYGWIN=(no)disabletransparent_exe?*** There could a very simple utility, 
 similar to rebaseall, which strips the .exe extension from cygwin 
 executables (identifiable from cygcheck or their presence in standard 
 paths), and which accepts additional paths to clean up. People needing the 
 functionality would be responsible run the utility properly (after 
 installing new packages, don't mess with Windows paths, etc.).
 
 That would require no changes to any package to give the desired behavior, 
 and as packages change they would just fit right in (no .exe in the 
 package ==  no fuss).
 
 Of course, SHTDI...
 
 Ryan
 
 *** The old, removed transparent_exe has the wrong boolean sense to work 
 the correct way by default
 
 What do you do about say, Foo.c and foo.c?
 The same as you do now on cygwin and on other case-preserving but 
 case-insensitive filesystems - treat them as identical. That's still a 
 little annoying, but not uncommon on unix-ish environments (OS X as one 
 common example) so people already are aware of it and work around it.
 
 Cheers,
   Steve
 My point, obviously missed, was that I thought that the issue here was that 
 if you untar a tar which contains say a.exe and a as two different files the 
 later one will overwrite the former due to the way that Cygwin treats files 
 that end in .exe. Wouldn't you have a similar problem if you had Foo.c and 
 foo.c in the tar image? (Note I didn't know about that registry setting which 
 is interesting and which I'd venture to guess nobody runs with).
 
 If people work around the Foo.c/foo.c issue, presumably by renaming one of 
 the files, couldn't they likewise work around the a.exe/a issue?

I'm talking about developers of applications, not cygwin-using end users. The 
developers could work around it (by not including .exe bootstrap files in 
cross-platform packages or being careful with naming), but they don't because 
it's not an issue that would ever occur to them, unlike case-insensitivity. 

Many systems are case-insensitive - and, more importantly, at least one system 
that's commonly used by developers is - so most software is developed and 
packaged with that in mind. Case insensitivity is a well understood issue. Only 
one system, cygwin, considers foo and foo.exe to be identical. It's a niche 
environment, and not used by many developers who target a unix-style 
environment, so most developers packaging software will not be aware of the 
issue and won't work around it. 

Treating foo and foo.exe as equivalent is a very non-unixy thing to do 
(everything is a file, and the name of the file isn't important to the 
kernel) so it's particularly surprising behaviour on a system that otherwise 
looks quite like a unix environment.

(I'd assumed that cygwin worked by intercepting execve(), and it hadn't even 
occurred to me that it would modify filesystem access at a coarser level than 
that until I started diagnosing apparent bugs in tar).

It's not a serious problem, of course - but it does mean that the most widely 
used cross-platform GUI library cannot be unpacked on cygwin and built from 
source without jumping through hoops. Given that the cygwin environment is very 
attractive to cross-platform developers I'm betting I'm not the first person 
who has been burned by this, and won't be the last.

I'm not sure what the best thing to do about it is - but even a user level 
patch to tar and unzip to warn when it's done something unexpected would have 
saved me quite a lot of grief.

Cheers,
  Steve


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



Re: tar deletes .exe files on extraction (again)

2011-09-23 Thread Steve Atkins

On Sep 23, 2011, at 11:46 AM, Andrew DeFaria wrote:

 On 9/23/2011 11:26 AM, Steve Atkins wrote:
 I'm talking about developers of applications, not cygwin-using end users. 
 The developers could work around it (by not including .exe bootstrap files 
 in cross-platform packages or being careful with naming), but they don't 
 because it's not an issue that would ever occur to them, unlike 
 case-insensitivity.
 
 Many systems are case-insensitive
 Really? Aside from Windows what other systems are case insensitive?

The default HFS+ on OS X is the big one for unixy developers (but there's also 
OS/2 HPFS, ISO9660, most of the Amiga filesystems, VMS and I think RT-11 :) ). 

  - and, more importantly, at least one system that's commonly used by 
 developers is - so most software is developed and packaged with that in 
 mind. Case insensitivity is a well understood issue. Only one system, 
 cygwin, considers foo and foo.exe to be identical.
 And as far as I can tell, only one system Windows, is case insensitive WRT 
 filenames. Coincidence? I don't think so! ;-)

  It's a niche environment, and not used by many developers who target a 
 unix-style environment, so most developers packaging software will not be 
 aware of the issue and won't work around it.
 I don't think I've met many developers who target a Unix-style environment 
 who did not know about Cygwin and, if forced to use Windows, use Cygwin. 
 Granted the foo vs. foo.exe thing is a bit obscure, but I'd say that a Unix 
 developer actually naming something .exe is also pretty rare.

For a pure unix developer, sure. For a cross-platform developer maybe less so. 

 Treating foo and foo.exe as equivalent is a very non-unixy thing to do
 Neither is naming some thing with a .exe at the end!

Sure it is. I can use any string I like to name a file! :)

(And I have seen it done with some CAD apps in the dim and distant past where 
the actual executable was /opt/foo/bin/bar.exe which was called from a wrapper 
script shell /opt/foo/bin/bar. Slightly odd, sure, but not entirely silly.)

 (everything is a file, and the name of the file isn't important to the 
 kernel) so it's particularly surprising behaviour on a system that 
 otherwise looks quite like a unix environment.
 
 (I'd assumed that cygwin worked by intercepting execve(), and it hadn't even 
 occurred to me that it would modify filesystem access at a coarser level 
 than that until I started diagnosing apparent bugs in tar).
 
 It's not a serious problem, of course - but it does mean that the most 
 widely used cross-platform GUI library cannot be unpacked on cygwin and 
 built from source without jumping through hoops. Given that the cygwin 
 environment is very attractive to cross-platform developers I'm betting I'm 
 not the first person who has been burned by this, and won't be the last.
 So why don't you ask them to fix it?

Because it's not their bug, and it's something that'll pop up elsewhere too. 
(Note that I'm not asking anyone working on cygwin to fix it either, just 
reporting the issue, asking if my understanding of the bug is correct and 
current, then sticking around for the conversation.)

 I mean what do they need a foo and a  foo.exe for anyway?

configure is a shell script that does what configure always does. configure.exe 
is a windows binary that does much the same thing for a windows platform.

Cheers,
  Steve


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



tar deletes .exe files on extraction (again)

2011-09-22 Thread Steve Atkins
In the process of trying to build Qt on Windows in a cygwin shell, I've 
discovered that neither tar nor unzip will work reliably under Cygwin - 
untaring an archive will not correctly create the files that the archive 
contains. The configure.exe that's required to build Qt is never extracted 
from the tarball.

The problem is that the cygwin filesystem shims consider configure and 
configure.exe to be almost the same, despite their having different 
filenames, so when tar extracts an archive containing both it ends up deleting 
the existing configure.exe when it creates configure.

This was discussed a couple of years ago - 
http://cygwin.com/ml/cygwin/2009-08/msg00293.html - and the conclusion seemed 
to be that cygwin was working as designed, and the user just shouldn't ever be 
doing anything that requires both foo and foo.exe under cygwin, and that if 
they do want to do that, they probably shouldn't be using cygwin.

That seems like a fairly nasty limitation / bug, and makes use of the cygwin 
shell a bit too brittle to rely on for build automation - I'm wondering if 
anyone knows if there's been any change in the situation since then?

Cheers,
  Steve


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



Cygwin ssh vs NIPS

2011-06-15 Thread steve
I have been using Cygwin for several years to remotely manage my servers via 
ssh.  In the last month our SiteProtector start killing my ssh connections.  It 
is flagging it as a DOS.  The specific NIPS rule is ssh_ChallengeResponse_BO. 
 

This signature looks at 32768 bytes of SSH connection traffic beginning 1024 
bytes after the software version information has been exchanged.  The signature 
fires when if finds 48 consecutive characters of ASCII data.  The number of 
bytes is examine (pan.ssh.search.charcount) and the number of consecutive ASCII 
bytes to trigger the signature (pan.ssh.search.threshold) are user 
configurable.

Anyone have any suggestions.  This is driving me F'n crazy...had to start to 
use Puttyscp with Putty sux.

Any help is appreciated!
Thanks
Paj

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



Re: localtime

2011-06-15 Thread Steve Thompson

On Wed, 15 Jun 2011, Tod wrote:

I'm passing a 128 byte char array.  I allocated it to provide enough room for 
the date/time stamp this function is returning.  strlen(tout) will resolve to 
the length of the tout string.


You said above that I shouldn't be using strlen(tout) and instead I should be 
passing 128.  Would I be better off using sizeof(tout) instead?


Also, the code has always worked.  I just recompiled it recently.  Now the 
date works but the time isn't appearing.  What could be causing that?


tout is a char *, so sizeof(tout) in getTime() will be 4 or 8. You will 
need to change the calling sequence of getTime() to pass the length of 
tout, which will depend on how you allocated it:


char tout[128];
getTime(tout,sizeof(tout));

or
char *tout = malloc(128);
getTime(tout,128);

etc.

Steve

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



Windows 7 and file ownership

2011-01-01 Thread Steve Thompson

Please forgive the cross-post; I'm not sure where this issue lies.

Samba 3.5.1, CentOS 5.5 x86_64 PDC with Win2K, WinXP, Win2003 and Win7 
32-bit domain members, tdbsam backend. Cygwin 1.7.7. All basic 
functionality seems to be fine, except...


On Win2K, WinXP and Win2003, a DIR /Q on a mapped share always displays 
the owner as BUILTIN\Administrators, but a stat or a ls -ln in a 
cygwin bash shell always shows the proper uid and gid. The ownership 
displayed by DIR appears to have no operational effects. So, this is all 
shiny.


On Win7, a DIR /Q on a mapped share similarly shows an owner of 
BUILTIN\Administrators, but a stat or a ls -ln in a cygwin bash 
shell always shows a uid of 544 and a gid of 545, _no matter who_ the 
logged-in user or the actual file ownership.


Cygwin /etc/passwd and /etc/group files are correct. Machine SID is good.

I am sure this is telling me something fundamental, but I am at a loss as 
to what. I've checked everything I can think of, and all looks good. 
Please someone give me a clue.


-s

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



Re: Windows 7 and file ownership

2011-01-01 Thread Steve Thompson

On Sat, 1 Jan 2011, Steve Thompson wrote:

On Win7, a DIR /Q on a mapped share similarly shows an owner of 
BUILTIN\Administrators, but a stat or a ls -ln in a cygwin bash shell 
always shows a uid of 544 and a gid of 545, _no matter who_ the logged-in 
user or the actual file ownership.


Ah, as always, I worked for two days on this and then found the solution
five minutes after posting. Using noacl in /etc/fstab was the answer.

-s

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



Re: Win7 64bit, why so slow?

2010-10-19 Thread Steve Thompson

On Tue, 19 Oct 2010, Gerrit P. Haase wrote:


anyone can tell me how long it lasts to build xmlroff on Linux?


On my CentOS 5.5 system, x86_64 dual quad cores at 2.33 GHz, SATA, it 
takes:


configure   11 seconds elapsed
make -j488 seconds elapsed (248 sec CPU)

for xmlroff-0.6.2.

On a 9-yr old Pentium III 866 MHz system, IDE:

configure   25 seconds elapsed
make -j2486 seconds elapsed (871 sec CPU)

-Steve

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



Shared folsers under Vista

2010-08-22 Thread Steve Holden
Folders that I create with Cygwin using mkdir appear to be shared - sort
of. They are denoted with the shared folder icon, and when I use Windows
Explorer to delete them I get the warning about the folder being shared.

When I look at the folder's properties, however, Explorer insists the
the folder is not shared.

Can someone explain how to avoid the sharing in the first place? It
doesn't seem to happen to everyone.

regards
 Steve
-- 
Steve Holden   +1 571 484 6266   +1 800 494 3119
DjangoCon US September 7-9, 2010http://djangocon.us/
See Python Video!   http://python.mirocommunity.org/
Holden Web LLC http://www.holdenweb.com/


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



Re: Cygwin: texi2dvi stumbles over texinfo.tex

2010-08-20 Thread Steve Holden
On 8/20/2010 5:29 AM, Reuben Thomas wrote:
 On Thu 25 May 2006, Karl Berry wrote:
 
 This line in fmtutil.cnf indicates the problem:

 etex pdfetex language.def-translate-file=cp227.tcx 
 *etex.ini

 Either (1) the second word should be changed to etex, or
 (2) it should be arranged for etex in invoke pdfetex instead of etex.
 E.g., make etex a link to pdfetex, instead of its own binary.

 We do (2) for TeX Live.
 
 Please could this fix be applied? I just ran into the same problem,
 four years later, and I'm not the only one since then (I notice
 another thread from 2007).
 
We don't need no stinkin' issue tracker.

regards
 Steve
-- 
Steve Holden   +1 571 484 6266   +1 800 494 3119
DjangoCon US September 7-9, 2010http://djangocon.us/
See Python Video!   http://python.mirocommunity.org/
Holden Web LLC http://www.holdenweb.com/


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



Re: Cygwin: texi2dvi stumbles over texinfo.tex

2010-08-20 Thread Steve Holden
On 8/20/2010 7:53 AM, Steve Holden wrote:
 On 8/20/2010 5:29 AM, Reuben Thomas wrote:
 On Thu 25 May 2006, Karl Berry wrote:

 This line in fmtutil.cnf indicates the problem:

 etexpdfetex language.def
 -translate-file=cp227.tcx *etex.ini

 Either (1) the second word should be changed to etex, or
 (2) it should be arranged for etex in invoke pdfetex instead of etex.
 E.g., make etex a link to pdfetex, instead of its own binary.

 We do (2) for TeX Live.

 Please could this fix be applied? I just ran into the same problem,
 four years later, and I'm not the only one since then (I notice
 another thread from 2007).

 We don't need no stinkin' issue tracker.
 
It struck me that this remark might be ambiguous, or even be regarded as
offensive by some.

My intention was to highlight the fact that issues will (eventually) be
re-raised thanks to the phenomenal group memory of this list. But of
course the issue might have had attention (or at least been resolved as
wontfix with appropriate discussion) in an issue tracker.

regards
 Steve
-- 
Steve Holden   +1 571 484 6266   +1 800 494 3119
DjangoCon US September 7-9, 2010http://djangocon.us/
See Python Video!   http://python.mirocommunity.org/
Holden Web LLC http://www.holdenweb.com/


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



Re: [ANNOUNCEMENT] Updated: vim-7.3.003-1

2010-08-20 Thread Steve Holden
On 8/20/2010 9:38 AM, Thorsten Kampe wrote:
 * Corinna Vinschen (Fri, 20 Aug 2010 14:37:08 +0200)
 I just created a FAT32 partition on W7 and did a base install
 including vim. Then I started setup again and reinstalled just the vim
 package. That worked fine as well. So it has nothing to do with the
 FS, nor with the OS.
 
 I reinstalled vim and got the exact same message again (Unable to 
 extract /usr/bin/vi -- the file is use.). A simultaneous process 
 monitor log shows that CreateFile operations result in DELETE PENDING 
 (Desired Access: Read Control, Disposition: Open, Options: Open Reparse 
 Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: 
 n/a). Clicking two times on Retry (without changing anything else) 
 let's the installation continue.
 
 I ran Process Explorer and it looks like zsh has handles open to vi, 
 vim, view and vimdiff - although these executables are definitely not 
 running.
 
The shell has probably cached them to speed up command lookup and dispatch.

regards
 Steve
-- 
Steve Holden   +1 571 484 6266   +1 800 494 3119
DjangoCon US September 7-9, 2010http://djangocon.us/
See Python Video!   http://python.mirocommunity.org/
Holden Web LLC http://www.holdenweb.com/


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



Re: Cygwin: texi2dvi stumbles over texinfo.tex

2010-08-20 Thread Steve Holden
On 8/20/2010 9:22 AM, Eric Blake wrote:
 On 08/20/2010 06:00 AM, Steve Holden wrote:

 My intention was to highlight the fact that issues will (eventually) be
 re-raised thanks to the phenomenal group memory of this list. But of
 course the issue might have had attention (or at least been resolved as
 wontfix with appropriate discussion) in an issue tracker.
 
 Or, more likely, sat for four years with no change in status, because
 the same person who hasn't had time to fix the tex package also hasn't
 had time to visit a tracker web page.
 
Yes, ultimately it's all down to the availability of effort. We have
similar problems in the Python world (where we use roundup). Though a
small team has recently started to address the question of stalled
issues, there just isn't enough effort to get to everything that comes
in and still keep the language moving forward.

I'd like to take this opportunity to say how much I personally
appreciate the availability of Cygwin - I use it daily, and it makes the
computing experience on Windows far more bearable and productive than it
otherwise would be. I'll happily overlook the occasional crabby reply to
a thoughtless comment, given the amazing work that the team collectively
produces.

regards
 Steve
-- 
Steve HoldenChairman, Python Software Foundation
The Python Community Conference   http://python.org/psf/
Watch PyCon on video now!  http://pycon.blip.tv/


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



Re: Cygwin 1.7 problems on Windows XP SP2

2010-08-20 Thread Steve Holden
On 8/20/2010 11:34 AM, Larry Hall (Cygwin) wrote:
 On 8/20/2010 11:28 AM, Baldur Gislason wrote:
 Hi, I recently installed the latest version of cygwin after using
 previous
 (1.5) versions without problems. Almost nothing works on 1.7 and even
 after
 reinstalling my machine
 I still have the same problem. My machine runs Windows XP SP2.
 My install.log.full has a lot of errors like this one:
 3879146 [main] bash 3716 fork: child -1 - died waiting for longjmp before
 initialization, retry 0, exit code 0x100, errno 11
 4 [main] bash 3872 C:\cygwin\bin\bash.exe: *** fatal error - couldn't
 allocate heap, Win32 error 487, base 0x6D, top 0x74, reserve_size
 454656, allocsize 458752, page_const 4096
 This doesn't only happen with bash, it was also happening with other apps
 such as rsync before I reinstalled the operating system. Any ideas or
 hints
 for diagnosing this? Can I acquire an older setup.exe and try
 installing a
 previous version of cygwin? Full log is at
 http://foo.is/~baldur/setup.log.full.gz
 
 If you look in the email archives for messages with similar complaints,
 you'll find that this kind of problem is most commonly the result of one
 of two things:
 
   1. You need to install the rebase package, read its README, and run
  rebaseall as prescribed.
 
   2. http://cygwin.com/acronyms/#BLODA
 
Supplementary: what do you do when rebaseall fails to work? I've tried
to post my cygcheck output a couple of times, but perhaps gmane has
volume limits. Guess I could use e-mail ...

regards
 Steve
-- 
Steve Holden   +1 571 484 6266   +1 800 494 3119
DjangoCon US September 7-9, 2010http://djangocon.us/
See Python Video!   http://python.mirocommunity.org/
Holden Web LLC http://www.holdenweb.com/


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



Re: Cygwin: texi2dvi stumbles over texinfo.tex

2010-08-20 Thread Steve Holden
On 8/20/2010 11:43 AM, Christopher Faylor wrote:
 On Fri, Aug 20, 2010 at 08:00:14AM -0400, Steve Holden wrote:
 On 8/20/2010 7:53 AM, Steve Holden wrote:
 On 8/20/2010 5:29 AM, Reuben Thomas wrote:
 On Thu 25 May 2006, Karl Berry wrote:

 This line in fmtutil.cnf indicates the problem:

 etex  pdfetex language.def
 -translate-file=cp227.tcx *etex.ini

 Either (1) the second word should be changed to etex, or
 (2) it should be arranged for etex in invoke pdfetex instead of etex.
 E.g., make etex a link to pdfetex, instead of its own binary.

 We do (2) for TeX Live.

 Please could this fix be applied? I just ran into the same problem,
 four years later, and I'm not the only one since then (I notice
 another thread from 2007).

 We don't need no stinkin' issue tracker.

 It struck me that this remark might be ambiguous, or even be regarded as
 offensive by some.
 
 I found it tedious actually, and wondered if you were going to now start
 jumping up and down in every message where it seems remotely possible
 that an issue tracker was the solution to a problem.
 
Oh, no. I think the issue has been adequately exercised already, and I
have no skin in that particular game.

regards
 Steve
-- 
Steve Holden   +1 571 484 6266   +1 800 494 3119
DjangoCon US September 7-9, 2010http://djangocon.us/
See Python Video!   http://python.mirocommunity.org/
Holden Web LLC http://www.holdenweb.com/


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



Re: Cygwin 1.7 problems on Windows XP SP2

2010-08-20 Thread Steve Holden
On 8/20/2010 4:04 PM, Larry Hall (Cygwin) wrote:
 On 8/20/2010 3:31 PM, Steve Holden wrote:
[...]
 If rebaseall is failing, then that makes me think that some kind of
 BLODA is your real issue.
 
Hmm, I didn't check hard enough - it was Spybot. Thanks.

regards
 Steve
-- 
Steve Holden   +1 571 484 6266   +1 800 494 3119
DjangoCon US September 7-9, 2010http://djangocon.us/
See Python Video!   http://python.mirocommunity.org/
Holden Web LLC http://www.holdenweb.com/


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



Re: [ANNOUNCEMENT] Updated: vim-7.3.003-1

2010-08-19 Thread Steve Holden
On 8/19/2010 6:17 PM, David Rothenberger wrote:
 On 8/19/2010 11:54 AM, Corinna Vinschen wrote:
 I have updated the version of vim on cygwin.com to 7.3.003-1.

 This is an update to the new upstream version 7.3, including the
 first three patchsets.  Cygwin Vim builds from the vanilla sources.
 
 After updating, /usr/bin/vi no longer exists. Is this intentional? If
 so, I'll figure out how to switch everything over to vim in my
 environment(s).
 
Isn't all you are  missing a link to the vim binary from /usr/bin/vi?
Given that this has been supported in the past I am guessing it's an
oversight.

regards
 Steve
-- 
Steve Holden   +1 571 484 6266   +1 800 494 3119
DjangoCon US September 7-9, 2010http://djangocon.us/
See Python Video!   http://python.mirocommunity.org/
Holden Web LLC http://www.holdenweb.com/


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



Re: last email

2010-08-19 Thread Steve Holden
On 8/19/2010 8:31 PM, Jacob Jacobson wrote:
 On 8/17/2010 6:07 AM, Global International wrote:
 Hi Dear,

 Please confirm if you received my last email and provide me your direct
 phone number for more discussions.

 Yours truly,

 Mr. David Brown
 Global International



 
 Discuss what?
 
 
 
Please do not feed the trolls.
-- 
Steve Holden   +1 571 484 6266   +1 800 494 3119
DjangoCon US September 7-9, 2010http://djangocon.us/
See Python Video!   http://python.mirocommunity.org/
Holden Web LLC http://www.holdenweb.com/

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



Re: Cygwin 1.7.5 segfault during setup

2010-08-18 Thread Steve Marotta
I'm still having this error. Is it possible for the Cygwin folks to
create a setup.exe that includes debugging symbols so I can get more
information out of gdb? It's a long shot, I know, but it's worth a
try.

On Mon, Aug 16, 2010 at 5:32 PM, Steve Marotta smaro...@gmail.com wrote:
 I am using Cygwin 1.7.5, upgraded from 1.5, or so I think. I am trying
 to run setup.exe so I can install new packages. I select Install from
 Internet and Direct Connection, and my network connection itself
 works fine. When setup tries to download the mirrors list, it says,
 This application has requested the Runtime to terminate it in an
 unusual way.

 I tried running it under gdb, but without debug symbols, it didn't do
 much good. Here's the output:

 
 Starting program: c:/Documents and Settings/smarotta.CRA/My
 Documents/downloads/setup-1.7.5.exe
 Loaded symbols for C:\WINDOWS\system32\ntdll.dll
 Loaded symbols for C:\WINDOWS\system32\kernel32.dll
 Loaded symbols for C:\WINDOWS\system32\advapi32.dll
 Loaded symbols for C:\WINDOWS\system32\rpcrt4.dll
 Loaded symbols for C:\WINDOWS\system32\secur32.dll
 Loaded symbols for
 C:\WINDOWS\WinSxS\X86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll
 Loaded symbols for C:\WINDOWS\system32\msvcrt.dll
 Loaded symbols for C:\WINDOWS\system32\gdi32.dll
 Loaded symbols for C:\WINDOWS\system32\user32.dll
 Loaded symbols for C:\WINDOWS\system32\shlwapi.dll
 Loaded symbols for C:\WINDOWS\system32\ole32.dll
 Loaded symbols for C:\WINDOWS\system32\shell32.dll
 Loaded symbols for C:\WINDOWS\system32\wsock32.dll
 Loaded symbols for C:\WINDOWS\system32\ws2_32.dll
 Loaded symbols for C:\WINDOWS\system32\ws2help.dll
 warning: LOG: 2 Starting cygwin install, version 2.697
 warning: LOG: 2 io_stream_cygfile: fopen(/etc/setup/net-proxy-host)
 failed 2 No such file or directory
 warning: LOG: 2 io_stream_cygfile: fopen(/etc/setup/net-proxy-port)
 failed 2 No such file or directory
 warning: LOG: 2 io_stream_cygfile: fopen(/etc/setup/extrakeys) failed
 2 No such file or directory
 warning: LOG: 2 io_stream_cygfile:
 fopen(/etc/setup/chooser_window_settings) failed 2 No such file or
 directory
 warning: LOG: 2 Current Directory: C:\Documents and 
 Settings\smarotta\Home\temp
 warning: LOG: 2 User has backup/restore rights
 warning: LOG: 2 Changing gid to Administrators
 warning: LOG: 2 Could not open service McShield for query, start and
 stop. McAfee may not be installed, or we don't have access.
 warning: LOG: 2 source: network install
 warning: LOG: 2 root: C:\cygwin binary system
 warning: LOG: 2 Selected local directory: C:\Documents and
 Settings\smarotta\Home\temp
 warning: LOG: 2 net: Direct
 warning: LOG: 1 Loaded cached mirror list
 warning: LOG: 1 get_url_to_membuf http://cygwin.com/mirrors.lst
 warning: LOG: 1 getUrlToStream http://cygwin.com/mirrors.lst

 Program exited with code 03.
 

 Is there a problem with the cached mirrors list? Can I clear that
 cache? Can it be the .NET framework I have installed on my machine? I
 would appreciate any and all ideas anyone has on how to resolve this
 issue, as I need to use Cygwin as soon as possible.

 Thanks,
 Steve


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



Re: Cygwin 1.7.5 segfault during setup

2010-08-17 Thread Steve Marotta
I am running the latest and greatest version of setup.exe.

~ Steve

On 8/16/2010 7:37 PM, Steve Holden wrote:
 Your first line of attack should be to replace your current setup.exe
 with a fresh copy downloaded from cygwin.com.

 regards
  Steve

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



Re: Cygwin 1.7.5 segfault during setup

2010-08-17 Thread Steve Marotta
When I say latest, I mean I just tried running a copy of the
installer freshly downloaded from cygwin.com.

Also, as to top-posting, I'm afraid I had no choice since I posted to
the mailing list but didn't sign up to receive any of the messages. So
I had no message to respond to.

On Tue, Aug 17, 2010 at 3:02 PM, Andrey Repin anrdae...@freemail.ru wrote:
 Greetings, Steve Marotta!

 On 8/16/2010 7:37 PM, Steve Holden wrote:
 Your first line of attack should be to replace your current setup.exe
 with a fresh copy downloaded from cygwin.com.

 I am running the latest and greatest version of setup.exe.

 Latest is not a version number.
 Also, please don't top-post, and use Reply option when replying to the list,
 instead of creating a new message.


 --
 WBR,
  Andrey Repin (anrdae...@freemail.ru) 17.08.2010, 23:01

 Sorry for my terrible english...



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



Re: Cygwin 1.7.5 segfault during setup

2010-08-17 Thread Steve Marotta
I just re-ran setup.exe with gdb using the latest version I downloaded
fresh from the website, and it gave me much the same output. I even
specified brand new, empty, unspoiled directories for both the
installation target and the place to store the packages.

*
$ gdb c:/Documents\ and\ Settings/smarotta.CRA/My\ Documents/downloads/setup.ex
e
GNU gdb 6.6 for GNAT GPL 2008 (20080521) [rev:131253]
Copyright 2005-2007 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
See your support agreement for details of warranty and support.
If you do not have a current support agreement, then there is absolutely
no warranty for this version of GDB.  Type show warranty for details.
This GDB was configured as i586-pc-mingw32...
(no debugging symbols found)
(gdb) run
Starting program: c:/Documents and Settings/smarotta.CRA/My Documents/downloads/
setup.exe
Loaded symbols for C:\WINDOWS\system32\ntdll.dll
Loaded symbols for C:\WINDOWS\system32\kernel32.dll
Loaded symbols for C:\WINDOWS\system32\advapi32.dll
Loaded symbols for C:\WINDOWS\system32\rpcrt4.dll
Loaded symbols for C:\WINDOWS\system32\secur32.dll
Loaded symbols for C:\WINDOWS\WinSxS\X86_Microsoft.Windows.Common-Controls_6595b
64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll
Loaded symbols for C:\WINDOWS\system32\msvcrt.dll
Loaded symbols for C:\WINDOWS\system32\gdi32.dll
Loaded symbols for C:\WINDOWS\system32\user32.dll
Loaded symbols for C:\WINDOWS\system32\shlwapi.dll
Loaded symbols for C:\WINDOWS\system32\ole32.dll
Loaded symbols for C:\WINDOWS\system32\shell32.dll
Loaded symbols for C:\WINDOWS\system32\wsock32.dll
Loaded symbols for C:\WINDOWS\system32\ws2_32.dll
Loaded symbols for C:\WINDOWS\system32\ws2help.dll
warning: LOG: 2 Starting cygwin install, version 2.712
warning: LOG: 2 io_stream_cygfile: fopen(/etc/setup/net-proxy-host) failed 2 No
such file or directory
warning: LOG: 2 io_stream_cygfile: fopen(/etc/setup/net-proxy-port) failed 2 No
such file or directory
warning: LOG: 2 io_stream_cygfile: fopen(/etc/setup/extrakeys) failed 2 No such
file or directory
warning: LOG: 2 io_stream_cygfile: fopen(/etc/setup/chooser_window_settings) fai
led 2 No such file or directory
warning: LOG: 2 Current Directory: C:\Documents and Settings\smarotta\Home\temp
warning: LOG: 2 User has backup/restore rights
warning: LOG: 2 Changing gid to Administrators
warning: LOG: 2 Could not open service McShield for query, start and stop. McAfe
e may not be installed, or we don't have access.
warning: LOG: 2 source: network install
warning: LOG: 2 root: C:\bin\cygwin binary system
warning: LOG: 2 Selected local directory: c:\bin\cygwin-packages
warning: LOG: 2 net: Direct
warning: LOG: 1 Loaded cached mirror list
warning: LOG: 1 get_url_to_membuf http://cygwin.com/mirrors.lst
warning: LOG: 1 getUrlToStream http://cygwin.com/mirrors.lst

Program exited with code 03.
(gdb)
*

Could it have anything to do with the existing cygwin.dll on my
machine? I used to have v1.5 and I upgraded when the new version came
out. I'm hesitant to completely uninstall cygwin from my machine
because I use it quite frequently, and I'm not sure I'd be able to get
it back if I removed it.

~ Steve

On Tue, Aug 17, 2010 at 3:02 PM, Andrey Repin anrdae...@freemail.ru wrote:
 Greetings, Steve Marotta!

 On 8/16/2010 7:37 PM, Steve Holden wrote:
 Your first line of attack should be to replace your current setup.exe
 with a fresh copy downloaded from cygwin.com.

 I am running the latest and greatest version of setup.exe.

 Latest is not a version number.
 Also, please don't top-post, and use Reply option when replying to the list,
 instead of creating a new message.


 --
 WBR,
  Andrey Repin (anrdae...@freemail.ru) 17.08.2010, 23:01

 Sorry for my terrible english...



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



Cygwin 1.7.5 segfault during setup

2010-08-16 Thread Steve Marotta
I am using Cygwin 1.7.5, upgraded from 1.5, or so I think. I am trying
to run setup.exe so I can install new packages. I select Install from
Internet and Direct Connection, and my network connection itself
works fine. When setup tries to download the mirrors list, it says,
This application has requested the Runtime to terminate it in an
unusual way.

I tried running it under gdb, but without debug symbols, it didn't do
much good. Here's the output:


Starting program: c:/Documents and Settings/smarotta.CRA/My
Documents/downloads/setup-1.7.5.exe
Loaded symbols for C:\WINDOWS\system32\ntdll.dll
Loaded symbols for C:\WINDOWS\system32\kernel32.dll
Loaded symbols for C:\WINDOWS\system32\advapi32.dll
Loaded symbols for C:\WINDOWS\system32\rpcrt4.dll
Loaded symbols for C:\WINDOWS\system32\secur32.dll
Loaded symbols for
C:\WINDOWS\WinSxS\X86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll
Loaded symbols for C:\WINDOWS\system32\msvcrt.dll
Loaded symbols for C:\WINDOWS\system32\gdi32.dll
Loaded symbols for C:\WINDOWS\system32\user32.dll
Loaded symbols for C:\WINDOWS\system32\shlwapi.dll
Loaded symbols for C:\WINDOWS\system32\ole32.dll
Loaded symbols for C:\WINDOWS\system32\shell32.dll
Loaded symbols for C:\WINDOWS\system32\wsock32.dll
Loaded symbols for C:\WINDOWS\system32\ws2_32.dll
Loaded symbols for C:\WINDOWS\system32\ws2help.dll
warning: LOG: 2 Starting cygwin install, version 2.697
warning: LOG: 2 io_stream_cygfile: fopen(/etc/setup/net-proxy-host)
failed 2 No such file or directory
warning: LOG: 2 io_stream_cygfile: fopen(/etc/setup/net-proxy-port)
failed 2 No such file or directory
warning: LOG: 2 io_stream_cygfile: fopen(/etc/setup/extrakeys) failed
2 No such file or directory
warning: LOG: 2 io_stream_cygfile:
fopen(/etc/setup/chooser_window_settings) failed 2 No such file or
directory
warning: LOG: 2 Current Directory: C:\Documents and Settings\smarotta\Home\temp
warning: LOG: 2 User has backup/restore rights
warning: LOG: 2 Changing gid to Administrators
warning: LOG: 2 Could not open service McShield for query, start and
stop. McAfee may not be installed, or we don't have access.
warning: LOG: 2 source: network install
warning: LOG: 2 root: C:\cygwin binary system
warning: LOG: 2 Selected local directory: C:\Documents and
Settings\smarotta\Home\temp
warning: LOG: 2 net: Direct
warning: LOG: 1 Loaded cached mirror list
warning: LOG: 1 get_url_to_membuf http://cygwin.com/mirrors.lst
warning: LOG: 1 getUrlToStream http://cygwin.com/mirrors.lst

Program exited with code 03.


Is there a problem with the cached mirrors list? Can I clear that
cache? Can it be the .NET framework I have installed on my machine? I
would appreciate any and all ideas anyone has on how to resolve this
issue, as I need to use Cygwin as soon as possible.

Thanks,
Steve

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



Re: Cygwin 1.7.5 segfault during setup

2010-08-16 Thread Steve Holden
On 8/16/2010 5:32 PM, Steve Marotta wrote:
 I am using Cygwin 1.7.5, upgraded from 1.5, or so I think. I am trying
 to run setup.exe so I can install new packages. I select Install from
 Internet and Direct Connection, and my network connection itself
 works fine. When setup tries to download the mirrors list, it says,
 This application has requested the Runtime to terminate it in an
 unusual way.
 
 I tried running it under gdb, but without debug symbols, it didn't do
 much good. Here's the output:
 
 
 Starting program: c:/Documents and Settings/smarotta.CRA/My
 Documents/downloads/setup-1.7.5.exe
 Loaded symbols for C:\WINDOWS\system32\ntdll.dll
 Loaded symbols for C:\WINDOWS\system32\kernel32.dll
 Loaded symbols for C:\WINDOWS\system32\advapi32.dll
 Loaded symbols for C:\WINDOWS\system32\rpcrt4.dll
 Loaded symbols for C:\WINDOWS\system32\secur32.dll
 Loaded symbols for
 C:\WINDOWS\WinSxS\X86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll
 Loaded symbols for C:\WINDOWS\system32\msvcrt.dll
 Loaded symbols for C:\WINDOWS\system32\gdi32.dll
 Loaded symbols for C:\WINDOWS\system32\user32.dll
 Loaded symbols for C:\WINDOWS\system32\shlwapi.dll
 Loaded symbols for C:\WINDOWS\system32\ole32.dll
 Loaded symbols for C:\WINDOWS\system32\shell32.dll
 Loaded symbols for C:\WINDOWS\system32\wsock32.dll
 Loaded symbols for C:\WINDOWS\system32\ws2_32.dll
 Loaded symbols for C:\WINDOWS\system32\ws2help.dll
 warning: LOG: 2 Starting cygwin install, version 2.697
 warning: LOG: 2 io_stream_cygfile: fopen(/etc/setup/net-proxy-host)
 failed 2 No such file or directory
 warning: LOG: 2 io_stream_cygfile: fopen(/etc/setup/net-proxy-port)
 failed 2 No such file or directory
 warning: LOG: 2 io_stream_cygfile: fopen(/etc/setup/extrakeys) failed
 2 No such file or directory
 warning: LOG: 2 io_stream_cygfile:
 fopen(/etc/setup/chooser_window_settings) failed 2 No such file or
 directory
 warning: LOG: 2 Current Directory: C:\Documents and 
 Settings\smarotta\Home\temp
 warning: LOG: 2 User has backup/restore rights
 warning: LOG: 2 Changing gid to Administrators
 warning: LOG: 2 Could not open service McShield for query, start and
 stop. McAfee may not be installed, or we don't have access.
 warning: LOG: 2 source: network install
 warning: LOG: 2 root: C:\cygwin binary system
 warning: LOG: 2 Selected local directory: C:\Documents and
 Settings\smarotta\Home\temp
 warning: LOG: 2 net: Direct
 warning: LOG: 1 Loaded cached mirror list
 warning: LOG: 1 get_url_to_membuf http://cygwin.com/mirrors.lst
 warning: LOG: 1 getUrlToStream http://cygwin.com/mirrors.lst
 
 Program exited with code 03.
 
 
 Is there a problem with the cached mirrors list? Can I clear that
 cache? Can it be the .NET framework I have installed on my machine? I
 would appreciate any and all ideas anyone has on how to resolve this
 issue, as I need to use Cygwin as soon as possible.
 
Your first line of attack should be to replace your current setup.exe
with a fresh copy downloaded from cygwin.com.

regards
 Steve
-- 
Steve Holden   +1 571 484 6266   +1 800 494 3119
DjangoCon US September 7-9, 2010http://djangocon.us/
See Python Video!   http://python.mirocommunity.org/
Holden Web LLC http://www.holdenweb.com/


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



Re: Cannot run psql under Cygwin

2010-08-11 Thread Steve Holden
This is running in a mintty console on a fairly recent (updated four
days ago) Cygwin load and the standard Windows PostgreSQL server:

shol...@lifeboy ~/Projects/PytDj/Pyteach/templates/training
$ psql -h localhost -p 5432 -U django PyTeach
Password for user django:
Welcome to psql 8.2.11 (server 8.3.5), the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
   \h for help with SQL commands
   \? for help with psql commands
   \g or terminate with semicolon to execute query
   \q to quit

WARNING:  You are connected to a server with major version 8.3,
but your psql client is major version 8.2.  Some backslash commands,
such as \d, might not work properly.

PyTeach= select * from city;
 id |  ctyname
+---
  2 | Washington, DC
  6 | New York, NY
  7 | London, England
  8 | Boston, MA
  9 | Chicago, IL
 10 | Atlanta, GA
 11 | Los Angeles, CA
 12 | San Francisco, CA
(8 rows)

PyTeach= \q

shol...@lifeboy ~/Projects/PytDj/Pyteach/templates/training
$ which psql
/usr/bin/psql

Had you considered using the Cygwin psql rather than the Windows one?

regards
 Steve

On 8/11/2010 12:23 PM, Clement, Sebastien wrote:
 Okay, many thanks Larry.
 
 I forgot to mention I was using the MinTTY console.
 It works when I use the regular Cygwin console.
 
 I found that:
 http://cygwin.com/ml/cygwin/2009-10/msg00330.html
 
 
 Sébastien
 --
 
 
 
 On 8/11/2010 11:57 AM, Clement, Sebastien wrote:
 
 When I try to run psql (eg. psql -U myusername -d mydb) from Cygwin, it 
 freezes.
 When I run it from the DOS console, it works fine.
 
 
 In that case, you need to run Cygwin's bash from a console (i.e. use
 'cygwin.bat' as provided by 'setup.exe') and run 'psql' from there.
 See the 'tty' option for the CYGWIN environment variable in the Users
 Guide for more details:
 
 
 http://cygwin.com/cygwin-ug-net/using-cygwinenv.html
 
 --
 Larry Hall  http://www.rfk.com
 RFK Partners, Inc.  (508) 893-9779 - RFK Office
 216 Dalton Rd.  (508) 893-9889 - FAX
 Holliston, MA 01746
 


-- 
Steve Holden   +1 571 484 6266   +1 800 494 3119
DjangoCon US September 7-9, 2010http://djangocon.us/
See Python Video!   http://python.mirocommunity.org/
Holden Web LLC http://www.holdenweb.com/


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



Weird text highlighting / cut paste problems

2010-08-05 Thread Wallace, Steve

Hi,

I have just upgraded my Cygwin/X installation on Windows XP SP3 from the 
pre-release 1.7 to 1.7.5-1 and am now having problems with cut and paste.

I am starting Cygwin using the following commands :

CYGWIN=server XWin -nodecoration -silent-dup-error 
export CYGWIN

# Make sure XWin is ready to accept connections before 
proceeding
while (( $(checkX -d $DISPLAY -t 12) )) ; do
sleep 2
done

# Start the urxvt server
/usr/bin/urxvtd -q -f -o

# Start the Window manager
wmaker 

However when I attempt to highlight text within a urxvt session using a double 
click to select a word or click and hold while dragging the cursor the text 
drops the highlight when I release the mouse button and nothing appears to be 
placed on the clipboard.

This gives the following errors :
winClipboardWindowProc - timed out waiting for WIN_XEVENTS_NOTIFY
winClipboardFlushXEvents - SelectionRequest - GetClipboardData () 
failed: 2733


If I try to cut and paste to a MS application only the last MS clipboard 
contents are pasted.
If I try to paste the contents of the MS clipboard to a urxvt window nothing is 
pasted If I try to paste any text into a gvim editor window it causes the gvim 
to hang which then has to be killed.


Now for the strange bits:

After a period of time, maybe an hour, a selection will stay highlighted for 
about 5 seconds which will allow it to be pasted any number of times using the 
middle mouse button to any application, under Cygwin/X using focus follows 
mouse or MS Windows, while it is highlighted. When the highlighing is dropped 
then the previous problems re-occur, ie nothing will be pasted and it will 
again cause gvim to hang.

When it fails to paste it give the following error :
winClipboardFlushXEvents - SelectionRequest - GetClipboardData () failed: 
058a


After yet more time, about 2 hours after starting Cygwin, the problem appears 
to have vanished completely and text will highlight correctly and paste to any 
application using the middle mouse button under Cygwin or C-v under Windows.
Even when the highlighted text is de-selected by a single mouse click the item 
can still be pasted successfully.


Before upgrading, from the pre-release 1.7 to 1.7.5-1, occasionly text would 
not stay highlighted but this could normally be corrected by shutting down 
Cygwin/X and restarting.  This has not been successful since updating.

Any ideas on what is happening and what I may be able to try to correct the 
issue would be appreciated

Thanks
Stv_T








Company of the Year - Insurance Day London Market Awards 2009Most Client 
Responsive Insurer of the Year - European Risk Management Awards, StrategicRISK 
2010Chartis Insurance UK Limited
Registered in England: company number 1486260
Registered address: The Chartis Building, 58 Fenchurch St, London EC3M 4AB, 
United Kingdom
Authorised and regulated by the UK Financial Services Authority (FSA 
registration number 202628)
This information can be checked by visiting the FSA website - 
www.fsa.gov.uk/register/firmSearchForm.do

Please visit our website - www.chartisinsurance.com/uk

The information contained within this email and any attachment is strictly 
confidential and may be legally privileged. It is intended solely for the 
above-named addressee(s). If you have received this email in error, please 
notify the sender and delete the email from your system immediately - you are 
not entitled to use it, copy it, store it or disclose it to anyone else. 
Chartis Insurance UK Limited and other subsidiaries and affiliates of Chartis 
Inc. (collectively Chartis, We or Us) may monitor and record email 
traffic data and content. Emails are not secure and may contain viruses. We do 
not accept any liability or responsibility for viruses transmitted through this 
email, or any attachment, or for changes made to this email after it was sent. 
Any opinions or other information in this email that do not relate to the 
official business of Chartis shall be understood as neither given nor endorsed 
by us.





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



Weird text highlighting / cut paste problems

2010-08-05 Thread Wallace, Steve

Hi,

Just seen my post in the mailing list - Not easy to read
This should be better

I have just upgraded my Cygwin/X installation on Windows XP SP3 from the 
pre-release
1.7 to 1.7.5-1 and am now having problems with cut and paste.

I am starting Cygwin using the following commands :

CYGWIN=server XWin -nodecoration -silent-dup-error 
export CYGWIN

# Make sure XWin is ready to accept connections before 
proceeding
while (( $(checkX -d $DISPLAY -t 12) )) ; do
sleep 2
done

# Start the urxvt server
/usr/bin/urxvtd -q -f -o

# Start the Window manager
wmaker 

However when I attempt to highlight text within a urxvt session using a double 
click
to select a word or click and hold while dragging the cursor the text drops the
highlight when I release the mouse button and nothing appears to be placed on 
the
clipboard.

This gives the following errors :
winClipboardWindowProc - timed out waiting for WIN_XEVENTS_NOTIFY
winClipboardFlushXEvents - SelectionRequest - GetClipboardData () 
failed: 2733


If I try to cut and paste to a MS application only the last MS clipboard 
contents are
pasted. If I try to paste the contents of the MS clipboard to a urxvt window 
nothing is
pasted If I try to paste any text into a gvim editor window it causes the gvim 
to hang
which then has to be killed.


Now for the strange bits:

After a period of time, maybe an hour, a selection will stay highlighted for 
about
5 seconds which Will allow it to be pasted any number of times using the middle 
mouse
button to any application, under Cygwin/X using focus follows mouse or MS 
Windows,
while it is highlighted. When the highlighing is dropped then the previous 
problems
re-occur, ie nothing will be pasted and it will again cause gvim to hang.

When it fails to paste it give the following error :
winClipboardFlushXEvents - SelectionRequest - GetClipboardData () failed: 
058a


After yet more time, about 2 hours after starting Cygwin, the problem appears to
have vanished completely and text will highlight correctly and paste to any 
application
using the middle mouse button under Cygwin or C-v under Windows.
Even when the highlighted text is de-selected by a single mouse click the item 
can
still be pasted successfully.


Before upgrading, from the pre-release 1.7 to 1.7.5-1, occasionly text would not
stay highlighted but this could normally be corrected by shutting down Cygwin/X
and restarting.  This has not been successful since updating.

Any ideas on what is happening and what I may be able to try to correct the 
issue
would be appreciated

Thanks
Stv_T








Company of the Year - Insurance Day London Market Awards 2009Most Client 
Responsive Insurer of the Year - European Risk Management Awards, StrategicRISK 
2010Chartis Insurance UK Limited
Registered in England: company number 1486260
Registered address: The Chartis Building, 58 Fenchurch St, London EC3M 4AB, 
United Kingdom
Authorised and regulated by the UK Financial Services Authority (FSA 
registration number 202628)
This information can be checked by visiting the FSA website - 
www.fsa.gov.uk/register/firmSearchForm.do

Please visit our website - www.chartisinsurance.com/uk

The information contained within this email and any attachment is strictly 
confidential and may be legally privileged. It is intended solely for the 
above-named addressee(s). If you have received this email in error, please 
notify the sender and delete the email from your system immediately - you are 
not entitled to use it, copy it, store it or disclose it to anyone else. 
Chartis Insurance UK Limited and other subsidiaries and affiliates of Chartis 
Inc. (collectively Chartis, We or Us) may monitor and record email 
traffic data and content. Emails are not secure and may contain viruses. We do 
not accept any liability or responsibility for viruses transmitted through this 
email, or any attachment, or for changes made to this email after it was sent. 
Any opinions or other information in this email that do not relate to the 
official business of Chartis shall be understood as neither given nor endorsed 
by us.





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



The fltk packages seem broken

2010-07-07 Thread Steve Underwood

 Hi all,

I just did a periodic update of my cygwin installation, and now I can't 
build applications using fltk. The fltk packages seem to have been split 
into a new set for X11 and a set similar to the old packages for native 
windows graphics. However, the X11 set consists of source, library, and 
development packages, while the native set has only the source and 
library. The native graphics development package seems to be missing, so 
I have no native graphics fluid program, and I'm not sure what other 
issues there might be in trying to use the X11 development files in 
developing native graphics programs.


Interestingly, the update seems to have automatically installed both the 
X11 and native versions of fltk, without any notification. That seemed a 
little odd to me.


Steve


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



Re: missing dependency in setup.ini

2010-06-15 Thread Steve Thompson

On Wed, 16 Jun 2010, Angelo Graziosi wrote:


Christopher Faylor wrote:

You weren't, by any chance, experimenting with a cat in a box and some
quantum particles were you?


Still the Schrödinger's cat in action... ;-)


Wanted. Dead or Alive.

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

Re: 1.7.1 : search inside more returns Regular expression botch;

2010-05-05 Thread Steve Casselman
Fabrice PLATEL fplatel at orinux.com writes:

 
 While I am viewing a file with the more utility, if I want to search 
 any expression inside the file by typing / then the expression, it 
 doesn't search and just displays the message Regular expression botch.
 Am I the only one having this behaviour ? What does it mean ?? how to 
 fix it ?
 Fabrice
 
 

I'm having the same problem. Yes I could just use less but I'd like to know why
this is happening...




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



Re: Cygwin 1.7.1 breaks git on netapp shared drives

2010-03-25 Thread Steve Bray

On 03/24/2010 04:15 AM, Corinna Vinschen wrote:

On Mar 23 16:37, Chris Idou wrote:



After a heck of lot of screwing around, I got this mount point stuff working. 
Now when I create files under cygwin they have the same permissions profile as 
they do when I create them under windows.

BUT...

git doesn't work still. It fails with the exact same error of unable to set 
permission. How do the cygwin APIs work under noacl? They shouldn't ever return 
error code should they?


They should.  There's the one case in which you're trying something like
chmod 444.  Under noacl conditions this sets the DOS R/O attribute.  If
that fails, the call fails.


Corinna

In my original post I acknowledged that we can not make NTFS ACLS 
exactly match POSIX behavior.  The best that we can do is consider the 
impact of our choices.


The cygwin 1.5 behaviour often failed to report chmod failures but many 
of us have been happily using cygwin for a long time and never noticed.


With cygwin 1.7 the trade-offs in handling NTFS ACLS were changed. 
chmod failures are now reported but now chmod fails unless the user has 
NTFS ACLS that support changing permissions.  All of the Windows shared 
drives, that are secured, do not give users permission to change 
permissions on the files that they create and own.  This does not occur 
on POSIX.  Application like git and svn will fail.  The following will fail:


$ echo foo stuff  foo
$ chmod 444 foo


In our case we still had permissions on our shared drive to write 
attributes and extended attributes.  In any case, after mounting with 
noacl git can change the RO flag and is functional.


I was not able to test a condition that blocked changing the RO flag.
I removed ACLS for write attibutes, write extended attributes (and 
change permissions) but chmod and git were still able to set the files 
RO.  My permissions might be leaking through in some way.  I have only 
one account and limited permissions to do much investigation.


If Chris is in an organization that removes permission to change either 
ACLS or the RO flag, then how does he use cygwin and git?


Thanks in advance for any help.  Putting a POSIX face on Windows is 
truly a daunting task.





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



Re: svn: Can't change perms of file Permission denied

2010-03-18 Thread Steve Bray

On 03/18/2010 05:06 PM, Jason Pyeron wrote:

It seams that svn needs to be able to write the DAC, and if it cannot then svn
up cannot work. This seems to be not the case in the past (or was there some
magic voodoo on my old system?)

Any suggestions on where to start?

Granting Full on the share and the directory mitigated this issue. I am unable
to keep full control on the share, and previously we had Modify/Change on the
share and svn was working.


This may be the issue that I previously reported

Cygwin 1.7.1 breaks git on netapp shared drives
http://www.cygwin.com/ml/cygwin/2010-01/msg01146.html

A secured share drive has inherited acls without permissions to change 
the permissions.  This will be very common on a Windows shared drive but 
does not occur with POSIX.  In the transition from cygwin 1.5 to 1.7 it 
appears that they try harder to use acls.  If they find them they try to 
use them ... but on these shared drives the users do not have 
permissions to change them.  Any application that attempts to change 
them now fails, git, svn, you name it.  We now need to mount the shared 
drives with the noacls flag so cygwin stops trying to change acls even 
though it does not have permission.


Perhaps at mount, if the top directory has inherited permissions that 
lack permission to change permissions then it could revert to the noacls 
behavior.



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



Re: Cygwin 1.7.1 breaks git on netapp shared drives

2010-03-16 Thread Steve Bray

On 03/15/2010 01:15 AM, Chris Idou wrote:



I'm having the GIT problem with cygwin and network shares mentioned here:

http://www.cygwin.com/ml/cygwin/2010-01/msg01151.html

However, I have my drive mounted noacl and it still fails. At least I assume I 
do. When I type mount it says:
Z: on /cygdrive/z type ntfs (binary,exec,noacl,user).
And I'm trying to push git content to /cygdrive/z/myrepository
How do I solve this?


It took me about a week after my original post to correctly mount with 
noacls.


See:
http://www.cygwin.com/cygwin-ug-net/using.html#mount-table

and add a line like the following to your /etc/fstab:
//server/share/subdir /srv/subdir smbfs binary,noacl 0 0

The mount command often shows incorrect mount information after making 
changes with mount or /etc/fstab entries.


I had not initially tried the // syntax because FAQ 4.2 recommended not 
using the obsolete //c notation in your PATH or startup files.




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



Can't find setup.ini in any mirror

2010-02-04 Thread Steve Denson
Cygwin setup.exe can't find setup.ini in any mirror. I've never had this 
problem before. Thanks for your time.

--Steve

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



Re: Cygwin 1.7.1 breaks git on netapp shared drives

2010-01-28 Thread Steve Bray

On Jan 27 20:33, Steve Bray wrote:
  This looks similar to the December 16 thread Cygwin 1.7 beta breaks
  git on Windows shares
  and may be related to the thread chmod and DOS vs POSIX paths.
  [...]
  With Cygwin 1.71, chmod fails.  For some reason ls -l shows no
  permissions.  I can create, read, write, and remove files.

There's only one reason for chmod to fail.  Apparently your netapp drive
reports to have persistent ACLs but then returns an error when trying to
set an ACL.  It's incredible how many broken filesystems are out in the
wild.

Please run the /usr/share/csih/getVolInfo tool on the drive and
pate the output into your reply.

Did you try to strace chmod to see what happens?

Last but not least, did you try to mount the drive with the noacl
option?http://cygwin.com/cygwin-ug-net/using.html#mount-table


Corinna


git, ls, and chmod  are functional after mounting with the noacl option 
and git correctly sets the R/O bit.


My perspective:

The permissions on the shared drive are not consistent with POSIX but 
appear to be the correct permissions to control a Windows shared drive.


My observation of managed Windows shared drives:

- Users have access as members of a group.
- This group does NOT have NTFS Change Permission so users can NOT 
change ACEs.

- The Windows cacls will fail to make changes.
- Cygwin 1.7 chmod will fail and git will fail (unless explicitly 
mounted as noacl).
- Cygwin 1.5 chmod and git did not fail.  It may have ignored the ACEs 
and assumed FAT/FAT32.


I would not characterize this as a broken filesystem:

- Organizations often have many shared drives and each is restricted to 
a controlled group of users.
- Access would not be controlled if any user in the group could change 
the ACEs.


This may be a typical Windows shared drive but is not a typical POSIX 
filesystem:


- Unlike POSIX, a user of this Windows shared drive can NOT change 
permissions on the files created and owned.


So I can proceed by explicitly mounting shared drives with the noacl option.

However, since acl is the default and these are common permissions on a 
shared drive, I suspect that I and others will continue to have commands 
fail.


I hesitate to propose more complication, but could it automatically 
revert to noacl (FAT/FAT32) and ignore ACEs when the user has no 
permission to change them?


Much thanks.  We now have a way to use Cygwin 1.7.

Steve



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



Cygwin 1.7.1 breaks git on netapp shared drives

2010-01-27 Thread Steve Bray
This looks similar to the December 16 thread Cygwin 1.7 beta breaks git 
on Windows shares

and may be related to the thread chmod and DOS vs POSIX paths.

Note that the Cygwin 1.7 changes in permission handling could break 
other applications that attempt to change permissions on netapp files.


Several teams have been using shared master git repositories on a netapp 
(as shown in mount) shared drive (ntfs) with Cygwin 1.5 and Windows XP.  
With Cygwin 1.7.1, all operations that should create git objects fail 
with the same error reported in the prior thread:


   error: unable to set permission to
'.git/objects/25/7cc5642cb1a054f08cc83f2d943e56fd3ebe99'

The line of code in git has just created the new file and is attempting 
to remove write permission.  The attempt to set mode 0444 fails and the 
operation is aborted.  With 1.7.1 we can no longer add any content to 
these repositories (push, add, etc.).


I compared direct use of chmod on these drives.  Cygwin 1.5 can change 
the r/o flag.  I do not think it changed any ACEs.  It never returned an 
error.  This is not correct but git can function.


With Cygwin 1.71, chmod fails.  For some reason ls -l shows no 
permissions.  I can create, read, write, and remove files.


The git failure is consistent for multiple users and multiple netapp shares.

The Cygwin documentation and FAQ appear consistent with this change in 
permission handling although it is not clear if chmod fails because a 
netapp mount is handled as FAT/FAT32 or it failed in an attempt to 
change the NTFS ACEs.


Note that we do not have permission to change the file permissions.  The 
IT department controls access with a group and does correctly prevents 
users from compromising security.  Cygwin would not be able to change 
ACEs.  We can set the R/O flag and Cygwin could achieve this affect but 
I understand the other considerations.


So with the 1.7 changes, it now correctly reports the failure to change 
permissions but on a POSIX system an application should be able to set 
the permissions on a file that it just created and owns (SELINIX 
ignored).  This change will likely break more that git.  We were forced 
to move back to Cygwin 1.5.  With the strong warning not to stay on 1.5, 
we do not have a Cygwin path.


I greatly appreciate the phenomenal progress toward putting a POSIX face 
on many flavours of Windows.  This appears to be yet another trade-off 
to minimize the effect of differences.


Steve

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



Re: Strange cygdrive problem

2010-01-25 Thread Steve Woolet
  : FALSE
  FILE_SUPPORTS_TRANSACTIONS  : FALSE

I can supply an strace file, if that is needed.

Thanks.

Steve



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



ftp from Win98 in command-only mode?

2009-09-28 Thread Steve Kleene
I need an ftp client that runs on an Intel x86 machine running Win98 SE that
has been booted into mode 5 (Command prompt only).  Can cygwin provide
this?

This is on a lab data-acquisition machine with old D-to-A hardware and
software that will only run from Win98 booted into command-prompt mode.
Upgrading would be too expensive.  At the end of every day, I need to back up
the data.  I can do it now if I boot full Win98.  Since that's pretty slow,
I'd rather just ftp from the Win98 command line.  It's possible that our IT
guy is capable of setting up an ssh/scp server that I could access.

Thanks.


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



Re: ftp from Win98 in command-only mode?

2009-09-28 Thread Steve Kleene
On Mon, 28 Sep 2009 15:11:25 -0400, I wrote:

 I need an ftp client that runs on an Intel x86 machine running Win98 SE that
 has been booted into mode 5 (Command prompt only).  Can cygwin provide
 this?

On Mon, 28 Sep 2009 15:15:45 -0400, Larry Hall replied:

 I expect that the FTP client that comes with the inetutils package from
 Cygwin (1.5 for O/Ss  NT 4.0) would work for you.

Thanks, that might be worth a shot.

 But correct me if I'm wrong, doesn't Win98 have it's own command-line FTP
 client.

If I call Win98's ftp from command-prompt only mode, I get

  This program cannot be run in DOS mode.

When my company had a Novell server, I could load the NIC drivers and connect
from command mode.  Since they've switched to Windows Server 2003, I can't
even connect from full Win98, even after doing all of the mods suggested by
M$.  That's why I'm down to trying ftp or scp.

I can backup via ftp or copying to a flash drive if I want to wait for full
Win98 to boot.


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



Re: ftp from Win98 in command-only mode?

2009-09-28 Thread Steve Kleene
On 09/28/2009 03:33 PM, I wrote:
 If I call Win98's ftp from command-prompt only mode, I get

This program cannot be run in DOS mode.

On Mon, 28 Sep 2009 22:23:50 +0200, r.liebsc...@gmx.de replied:

 Win98 in command-prompt only mode is a pure DOS, so you need a DOS ftp
 client.

 Maybe this one at the FreeDOS webpage might help you.
 https://sourceforge.net/apps/mediawiki/freedos/index.php?title=Networking_FreeDOS_-_mTCP

Thank you, René.  I'll try that out.


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



RE: Cut Paste problem between X windows

2009-09-15 Thread Wallace, Steve
Hi,

I am assuming that you mean the XP control panel however I cannot see any 
option for middle button emulation.
I an using the following command to start X
XWin -nodecoration -clipboard

Some further information:

The mouse is a logitech MX600 laser cordless which has an additional rocker 
switch and button next to the left button, two thumb buttons on the side and 
the wheel also moves side to side for horizontal scrolling

I am using the logitech setpoint utility within XP with the default settings, 
although these were also used on the previous setup.

Cut and paste from a X-window to XP is working correctly but not the other way 
round as does scrolling within a terminal window.

Running 'xev' to capture mouse and keyboard events I see button press and 
release events for buttons -
1 - Left button
3 - Right button
4 - Scroll wheel forward
5 - Scroll wheel backward
6 - Side button 1
7 - Side button 2

I also see key events for the remaining rocker and button normally used for 
zooming in  out and return to 100% from within XP.

I do not see any events when I click the wheel, presumably these would be 
button 2.
There are also no events when I move the wheel sideways but I did not really 
expect any.

It would appear that everything is working correctly except for middle button 
clicks not being recognised by the X server

Thanks
Steve

-Original Message-
From: Mike Ayers [mailto:mike_ay...@tvworks.com]
Sent: 14 September 2009 23:14
To: st...@btinternet.com
Cc: Wallace, Steve; cygwin-xfree@cygwin.com
Subject: RE: Cut  Paste problem between X windows

 From: cygwin-xfree-ow...@cygwin.com [mailto:cygwin-xfree-
 ow...@cygwin.com] On Behalf Of Steve Wallace

 Any text within X-term or urxvt is highlighted correctly but when
 clicking the centre mouse button it is not pasted into either the same
 x-term or any other.

Please check your Control Panel Mouse settings to verify that you do 
not have middle button emulate enabled, which can mess with the second 
button, or anything else that might be re-interpreting the buttons.

As a workaround, try using ctrl-insert to paste.  this works for me 
both from X and Windows apps on XP.


HTH,

Mike

Please visit our website - www.aiguk.co.uk

AIG UK Limited is authorised and regulated by the UK Financial Services 
Authority.


AIG UK Limited is a member company of American International Group Inc. (AIG).

AIG UK Limited
Registered in England: company number 1486260

Registered address: The AIG Building, 58 Fenchurch Street, London EC3M 4AB, 
United Kingdom.

 

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



Cut Paste problem between X windows

2009-09-13 Thread Steve Wallace
Hi,

I have just installed Cygwin and the latest X package onto a new laptop and am 
having problems with cut  paste 
within X.  The problem is NOT between X and MS Windows, which I have not yet 
tried.

Any text within X-term or urxvt is highlighted correctly but when clicking the 
centre mouse button it is not 
pasted into either the same x-term or any other.

Initially I did a fresh install of of Cygwin 1.5 with the latest X server 
packages , but cut and paste did not 
not work, I therefore installed Cygwin 1.7 with the same Xserver packages but 
the problem still persisted. I 
currently have both 1.5 and 1.7 installed but am concentrating on 1.7.
Before changing the laptop cut and paste worked without a problem, 
unfortunately I no longer have the old laptop 
so cannot compare packages etc. 

The problem is not specific to any Window manager as it also happens without 
any window manager running, I am 
currently running WindowMaker but previously ran Openbox, which is my preferred 
window manager.
 
Has anyone experienced a similar problem ?  
The old laptop was a Dell Latitude D410 the new one is a Dell Latitude E4300.

If any further information is required please let me know what is required

Stv T

  



--
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: MVFS results

2009-07-17 Thread Steve Thompson

On Fri, 17 Jul 2009, Dave Korn wrote:


I wanted to save one, I did that by leaving the power on indefinitely ...


You had power? Luxury! I had to keep pedaling the bicycle!

-s

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



git checkout problem

2009-05-14 Thread Whitman, Steve
\flash.cpp),
has_acls(1)
   75 5528285 [main] git 4640 unlink_nt: Opening file for delete failed,
status = 0xC043
   31 5528316 [main] git 4640 seterrno_from_win_error:
/ext/build/netrel/src/cygwin-1.7.0-47/winsup/cygwin/syscalls.cc:639
windows error 32
   34 5528350 [main] git 4640 geterrno_from_win_error: windows error 32
== errno 16
   33 5528383 [main] git 4640 __set_errno: void
seterrno_from_win_error(const char*, int, DWORD):318 val 16
   33 5528416 [main] git 4640 unlink: -1 = unlink
(src/libCpp/services/flash.cpp)
  109 5528525 [main] git 4640 fhandler_console::write: 626EB748, 7
   35 5528560 [main] git 4640 fhandler_console::write: at 101(e) state
is 0
  125 5528685 [main] git 4640 fhandler_console::write: 7 =
fhandler_console::write (,..7)
   86 5528771 [main] git 4640 fhandler_console::write: 22C110, 78
   33 5528804 [main] git 4640 fhandler_console::write: at 117(u) state
is 0
  867 5529671 [main] git 4640 fhandler_console::write: 78 =
fhandler_console::write (,..78)
  316 5529987 [main] git 4640 fhandler_console::write: 626EB73C, 1
   35 5530022 [main] git 4640 fhandler_console::write: at 10(0x20) state
is 0
  720 5530742 [main] git 4640 fhandler_console::write: 1 =
fhandler_console::write (,..1)
  184 5530926 [main] git 4640 normalize_posix_path: src
src/libCpp/services/flashimpl.h
  309 5531235 [main] git 4640 cwdstuff::get: posix /c/repo/cvs/abc-git
   78 5531313 [main] git 4640 cwdstuff::get: (/c/repo/cvs/abc-git) =
cwdstuff::get (0x10F0008, 32768, 1, 0), errno 0
   35 5531348 [main] git 4640 normalize_posix_path:
/c/repo/cvs/abc-git/src/libCpp/services/flashimpl.h =
normalize_posix_path (src/libCpp/services/flashimpl.h)
   33 5531381 [main] git 4640 mount_info::conv_to_win32_path:
conv_to_win32_path (/c/repo/cvs/abc-git/src/libCpp/services/flashimpl.h)

 - Steve -


--
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: git checkout problem

2009-05-14 Thread Whitman, Steve
 I've been using git for a few weeks now and recently ran into a
problem
 that I just can't workaround.  I tried updating to the cygwin 1.7
 release hoping that this would fix the issue but it didn't.  I found
 that a checkout of a branch new_file_system from the master branch
(or
 vice versa) would result an error that a file can't be unlinked. Below
 is the sequence of git commands that I run that cause the problem.
This
 is the exact sequence of commands that I run:

I've performed some additional experiments and I'm starting to believe
this is probably not an issue with cygwin (it might be a git on Windows
issue).  I installed the latest version of msysgit (1.6.3.msysgit.0) and
found that I was still having the problem described above.

I'm running Windows Vista w/SP1 with UAC enabled.  I found that if I
turn off UAC the problem went away.  Turn UAC on and the problem
re-appears.  I then tried running bash as an admin and that also seems
to resolve the issue.  Finally I modified the properties of the bash
executable to run in Windows XP w/SP2 compatibility mode and that also
seems to resolve this problem even with UAC enabled and running without
admin privileges.  I'll continue to do some more testing but it appears
that I have a reasonable workaround for this issue.

 - Steve -


--
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: PING: Deprecation of -mno-cygwin.

2009-03-23 Thread Steve Thompson

uOn Mon, 23 Mar 2009, Yaakov (Cygwin/X) wrote:


Please, NO!  -mno-cygwin needs to go away already.


Why?

-Steve

--
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: PING: Deprecation of -mno-cygwin.

2009-03-23 Thread Steve Thompson

On Mon, 23 Mar 2009, Dave Korn wrote:


 It's a bit of a kludge compared to having a real honest-to-god
cross-compiler.  It's never worked entirely right in terms of keeping cygwin
and mingw headers and libs completely separate.  A full-blown mingw
cross-compiler won't cost that much in terms of disk space and the reliability
and correctness improvements will be worth it.


That's very interesting. I've been using -mno-cygwin for several years, 
having done many many thousands of compiles and links using it, and I have 
never had a problem with either headers or libraries! Is there a 
recommended alternative?


Steve

--
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: Unusual environemtal variables

2008-12-21 Thread Steve Rainbird



Ehud Karni e...@unix.mvs.co.il wrote in message 
news:200812211606.mblg6lx2014...@beta.mvs.co.il...

On Fri, 19 Dec 2008 06:45:14 -0700, Eric Blake e...@byu.net wrote:


According to Steve Rainbird on 12/19/2008 2:22 AM:
SR: When i run a Fuijitsu Cobol program it requires environmental 
variables

SR: starting with the @ sign.

That is inherently non-portable.  POSIX states that Other characters may
be permitted by an implementation; applications shall tolerate the
presence of such names, but does not require applications to be able to
create such names.

http://www.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08

SR:
SR: Is there any way around this?

You'll have to set it in Windows, prior to starting bash, as there is no
way to make bash create variables not starting with something from the
portable set [_a-zA-Z].


This behavior (accepting names of only ASCII Alpha and _) is a bash self
imposed limitation. If you use csh (or tcsh) names with other characters
are supported too.

So you can use csh's: setenv @FOO value.
You can also use the env command to bypass bash limitation like this:
   exec env @FOO=bar exec /bin/bash -i
Note the 2 `exec' if you do not want to spawn more processes.

Ehud.


--
Ehud Karni   Tel: +972-3-7966-561  /\
Mivtach - Simon  Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
http://www.mvs.co.il  FAX:  1-815-5509341  / \
GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry




Thanks Eric and Ehud.

--
Steve 




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



Unusual environemtal variables

2008-12-19 Thread Steve Rainbird
When i run a Fuijitsu Cobol program it requires environmental variables 
starting with the @ sign.


SET @CBR_CONSOLE=SYSTEM

When I try and set these in a bash shell I get the following.

$ export @CBR_CONSOLE=SYSTEM
-bash: export: `...@cbr_console=system': not a valid identifier

Is there any way around this?
--
Steve 




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



Windows process id

2008-12-19 Thread Steve Rainbird

If I do the following

xx 
pid=$!

I get the cygwin pid.

Is there a way of getting the real windows pid?

--
Steve 



--
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: Printing to network printers

2008-12-17 Thread Steve Rainbird



Rick Rankin rrankin1424-cyg...@yahoo.com wrote in message 
news:315835.54676...@web65606.mail.ac4.yahoo.com...






From: Steve Rainbird

Rick Rankin wrote in message
news:189950.11753...@web65613.mail.ac4.yahoo.com...
 From: Steve Rainbird


 How can I print to a network printer?

 I know if its attached to a server I can say

 lpr -d //server/printer file


 But what do I do if the printer isn't attached to a server and is just 
 a

printer
 on the network?

 You should be able to add the printer through control panel, which will 
 give
it a local name. You can then use that name as the argument to -d. It's 
usually
simpler if the name doesn't contain any spaces, but that's not a 
requirement.


 Many network printers also provide a UNC-style name (//server/printer), 
 even
though they're not directly connected a server, per se. If you can browse 
to the
printer when you're adding it, you should be able to use that name 
directly. It

all depends on how the provides its networking capability.

 I assume you know that lpr is quite stupid, i.e., it just spools the 
 file,
assuming that it is already correctly formatted for the target printer. 
It was
originally written to spool a postscript file to a postscript printer. It 
didn't

need to do any formatting.

 --Rick



I am actually using enscript which I assume uses lpr for its printing?

-- Steve



Well, by default it does. A couple of (hopefully) obvious questions: Is 
the file you're trying to print (PRINT.BALANCES.20081203083027) a simple 
ASCII file, and is the printer (IAS_HP4PBN_A) a postscript printer?


--Rick




Rick,

Yes its a simple ascii file.

I think its a postscript printer but even if I use lpr directly it does the 
same thing (or doesn't if you see what I mean).


--
Steve 




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



Printing to network printers

2008-12-16 Thread Steve Rainbird

How can I print to a network printer?

I know if its attached to a server I can say

lpr -d //server/printer file


But what do I do if the printer isn't attached to a server and is just a 
printer on the network?


TIA


--
Steve 



--
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: Printing to network printers

2008-12-16 Thread Steve Rainbird



Larry Hall (Cygwin) reply-to-list-only...@cygwin.com wrote in message 
news:4947d2a9.3060...@cygwin.com...

Steve Rainbird wrote:

How can I print to a network printer?

I know if its attached to a server I can say

lpr -d //server/printer file


But what do I do if the printer isn't attached to a server and is just a 
printer on the network?


So it's connected to the network with what, some kind of print server?
If so and assuming the print server allows you to descibe the printer as
a samba share, then the //printer server name/printer share name
syntax may work.  An IP address may be used in place of
printer server name too.  If not, you need to configure the printer
through Windows as a network TCP/IP printer and then access it as you
would a local printer.


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



I have configured the printer in windows and printed the file to it using 
notepad.


In the event viewer it says

Document 13, \cobol\prints\PRINT.BALANCES.20081203083027 owned by 
steve.rainbird was printed on IAS_HP4PBN_A via port IP_10.26.5.11.  Size in 
bytes: 274872; pages printed: 2


When I print the same file using enscript I get

Document 14, stdin owned by steve.rainbird was printed on IAS_HP4PBN_A via 
port IP_10.26.5.11.  Size in bytes: 21499; pages printed: 0


For some reason its not printing anything.



--
Steve 




--
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: Printing to network printers

2008-12-16 Thread Steve Rainbird



Rick Rankin rrankin1424-cyg...@yahoo.com wrote in message 
news:189950.11753...@web65613.mail.ac4.yahoo.com...

From: Steve Rainbird




How can I print to a network printer?

I know if its attached to a server I can say

lpr -d //server/printer file


But what do I do if the printer isn't attached to a server and is just a 
printer

on the network?


You should be able to add the printer through control panel, which will 
give it a local name. You can then use that name as the argument to -d. 
It's usually simpler if the name doesn't contain any spaces, but that's 
not a requirement.


Many network printers also provide a UNC-style name (//server/printer), 
even though they're not directly connected a server, per se. If you can 
browse to the printer when you're adding it, you should be able to use 
that name directly. It all depends on how the provides its networking 
capability.


I assume you know that lpr is quite stupid, i.e., it just spools the file, 
assuming that it is already correctly formatted for the target printer. It 
was originally written to spool a postscript file to a postscript printer. 
It didn't need to do any formatting.


--Rick




I am actually using enscript which I assume uses lpr for its printing?

--
Steve 




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



source for tree command?

2008-12-14 Thread Steve Lefevre

Hello -

I'm desperately looking for a source for the tree command in cygwin. It 
isn't listed separately in any of the package sources that I looked at. 
I tried googling and search the cygwin website, but they just return 
results for source tree or filesystem tree -- nothing about the tree 
command.


Has in been abandoned from cygwin?

--
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: source for tree command?

2008-12-14 Thread Steve Lefevre

Larry Hall (Cygwin) wrote:

Steve Lefevre wrote:

Hello -

I'm desperately looking for a source for the tree command in cygwin. 
It isn't listed separately in any of the package sources that I 
looked at. I tried googling and search the cygwin website, but they 
just return results for source tree or filesystem tree -- nothing 
about the tree command.


Has in been abandoned from cygwin?


I'd suggest you look for the package that the command is in, either
through cygwin.com/packages or via 'cygcheck -p tree'.  Neither of
these narrow things down very well for me to point you more directly
so I can only say that I would recommend that you
'cygcheck -p $(which tree)' to see if that unearths a potential package
for you.  Once you find it, fire up 'setup.exe' and make sure you
choose the 'Src?' box for the package.  The result will go in '/usr/src'.


Looks like my memory made something up -- Thorsten says it was never 
included in cygwin. That would make it difficult to find!


I tried looking in the package search on the website, but of course I 
didn't find it. I thought it was due to ubiquity of the term 'tree', but 
it looks like it's because it just wasn't there.


Thanks for the help!

Steve






--
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: SIGPOLL and named pipes

2008-08-24 Thread Steve Thompson

On Sun, 24 Aug 2008, Christopher Faylor wrote:


On Sun, Aug 24, 2008 at 07:29:59PM +0200, Thomas Maier-Komor wrote:

OK, thanks for the information.  Do you know when 1.7 is planned to be
released?


Yes, but I'm not telling.


CGF,YABM!

-Steve

Steve Thompson E-mail:  smt AT vgersoft DOT com
Voyager Software LLC   Web: http://www DOT vgersoft DOT com
39 Smugglers Path  VSW Support: support AT vgersoft DOT com
Ithaca, NY 14850
  186,300 miles per second: it's not just a good idea, it's the law


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



Re: seg fault produces stackdump with no stack trace

2008-08-04 Thread Steve Waldo
Christopher Faylor writes:

 I just checked in a fix which should keep the stack trace going even
 when it finds a return address of zero.

That'll be great. Thanks much!

--Steve


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



seg fault produces stackdump with no stack trace

2008-08-01 Thread Steve Waldo
Hello,

I've seen other postings that show stackdump examples that include the 
expected list of addresses in the stack trace. I'm not getting that list. When 
my app gets a seg fault it produces the expected stackdump file:

[1]-  Segmentation fault  (core dumped) ./ResourceMgr

but the resulting file contains no stack trace:

$ cat ResourceMgr.exe.stackdump 
Exception: STATUS_ACCESS_VIOLATION at eip=
eax= ebx= ecx= edx= esi=611021A0 edi=004026B4
ebp=0022CC28 esp=0022CC1C program=c:\code\ResourceMgr\ResourceMgr.exe, pid 
3956, thread main
cs=001B ds=0023 es=0023 fs=003B gs= ss=0023
Stack trace:
Frame Function  Args
End of stack trace


Is there a setting I'm missing somewhere? My apologies if this is something 
obvious. I did try searching FAQ's etc.

Thanks much,
--Steve


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



Re: seg fault produces stackdump with no stack trace

2008-08-01 Thread Steve Waldo
Thanks to all for your prompt replies! Much appreciated.

I'm amazed that the stack trace is so wimpy. All I did to trigger the example 
was to add a call to this function to intentionally crash:

int letsCrash()
{
   int (*myfunc)() = 0;
   return myfunc();
}

With the debugger, it produces the following message at crash time:

Program received signal SIGSEGV, Segmentation fault.
0x in ?? ()
(gdb) 

Even the debugger didn't know where it was anymore! It's obvious in this case 
why it went off in the weeds, but I would have thought the stack would still 
be accessible.

The real crash is occurring too intermittently to catch it in the debugger. 
That's why I was hoping for a stack trace, so I could at least know which 
function to set a breakpoint in.

Thanks again,
--Steve


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



Re: seg fault produces stackdump with no stack trace

2008-08-01 Thread Steve Waldo
Brian Dessent brian at dessent.net writes:

 (gdb) bt
 #0  0x in ?? ()
 #1  0x00401052 in letsCrash () at tc.c:4
 #2  0x00401083 in main () at tc.c:9
 (gdb)

Many thanks Brian! 'bt' was what I'd forgotten. Sorry about the newbie 
mistake - I haven't used gdb in ages.  I'm actually using 'ddd' and I still 
couldn't find the backtrace (but now I've found it - under 'Status').

Thanks again for your patient assistance!

--Steve


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



Perl Term/ReadKey.pm missing from perl 5.10.0-4 package

2008-06-26 Thread steve.2.campbell
Hi,

The /usr/lib/perl5/vendor_perl/5.10/i686-cygwin/Term/ReadKey.pm file is
missing from the perl 5.10.0-4 package. It is present in the 5.10.0-3
package. Has it been removed for a reason?

Thanks,
Steve Campbell

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



Apache2 under Cygwin on Vista

2008-06-23 Thread Etchelecu, Steve J
I'm running Cygwin on Vista (32-bit Business) with reasonably good
success.  (why vista? = long, somewhat painful, story)

cygcheck version 1.90.4.1
System Checker for Cygwin

Cygwin Package Information
Package  VersionStatus
apache2  2.2.6-1OK
cygrunsrv1.34-1 OK
cygwin   1.5.25-14  OK


Everything is working well since a recent Cygwin update but now I'd like
to bring up the Apache web server.  Previously under Cygwin on XP I had
done this and found that I needed to:

1.  cygserver-config
2.  start cygserver windows service
3.  export CYGWIN=server
4.  apachectl2 -k start

Under Vista I find that I'm having trouble with the whole cygserver
thing.  In order to run cygserver-config I need to 'Run As
Administrator' and to start the cygserver service I need to 'Run As
Administrator' but then when I start apache2 it can't see the running
cygserver.  If I skip/ignore the whole cygserver thing then apache2
won't start with 'bad system call' message.

This is a bit of a mess.  Does anyone know if there is a way to get
apache2 running under Cygwin on Vista?  I only want to run it for some
light development work and only need it running while I'm actively
developing.  No unattended service operation or anything like that.

Thanks!
Steve


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



gcc 3.4.4-3

2008-05-23 Thread Steve Levy


I have installed gcc 3.4.4-3; cygcheck and status is OK.
but, I attempt to compile gcc sdsinc5.c but do not get any results (no a.out) 
and no warnings.
how can I find out what is happening?  Sorry if this is a badly stated question 
or to the incorrect forum.


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



collect2.exe has stopped working

2007-10-27 Thread Steve Casselman
I have Vista and I'm trying to compile _anything_ with
gcc 3.4.4 All I get is 

collect2.exe has stopped working

Can you help me?

Thanks

Steve

--
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: Cygwin setup on XP/Vista (UNIX/DOS compatibilty question)

2007-10-26 Thread Steve Richmond

Is there a standard (read easy) way to bring over files and run D2U on each 
file?

I just found a tool called RSYNC.  Do you have experience with that?
Why isn't RCP and FTP included in Cygwin?

A cool new network tool would be a RCP that runs D2U as a option.
Does such a tool exist?

Thanks for your help!

 Date: Sat, 22 Sep 2007 06:28:38 -0600
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]; cygwin@cygwin.com
 Subject: Re: Cygwin setup on XP/Vista (UNIX/DOS compatibilty question)

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 http://cygwin.com/acronyms/#PPIOSPE - redirecting to the list.

 According to Steve Richmond on 9/22/2007 12:31 AM:
 However it behaves differently. After I install it using UNIX, bash 
 scripts
 fail with '\r' errors, meaning it can't find the CR. So after I 
 re-installed
 to be DOS compatible for CR/LF, the bash scripts execute successfully, but
 the resulting .CSV file has a '^M' added to each line. Subsequent
 manipulation with paste (as an example) fail because of the extra '^M'.
 In your case, I'd recommend using a binary mount, and bash's igncr option.
 Oh, and reread the announcements:
 http://cygwin.com/ml/cygwin-announce/2007-08/msg00014.html

 After I reinstalled with the UNIX install option, I logged in and set igncr 
 and
 verified with 'set | grep SHELLOPTS'. But grep adds an extra '^M' so
 when I do 'paste -d, a.txt b.txt', paste gets confused.

 The setup.exe UNIX vs. DOS option only affects new installations. My
 guess is that you have an existing text mount, which setup.exe won't
 change; but to confirm that, you need to follow directions:

 Problem reports: http://cygwin.com/problems.html

 and include the output of 'cygcheck -svr' as a text attachment.


 With the UNIX install option, I still can't run the bash scripts. It'll 
 fail with
 those '\r' errors still.

 Again, bash only warns about \r errors on binary mounts if you have not
 turned on the igncr option. Of course, the other alternative is to run
 'd2u' (or the new 'flip') on your scripts so that they no longer have \r.

 - --
 Don't work too hard, make some time for fun as well!

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

 iD8DBQFG9Qp284KuGfSFAYARAorTAJ9EtiET87eZ5k1brfTlKdCucP5lKACfbMJ2
 dGKBWkrkPsxOkrJD7WwdN1c=
 =3Xjv
 -END PGP SIGNATURE-

_
Peek-a-boo FREE Tricks  Treats for You!
http://www.reallivemoms.com?ocid=TXT_TAGHMloc=us

--
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   2   3   4   5   >