/usr/include path issue

2011-05-18 Thread Gabor Alsecz
Hi All, I am using the latest cygwin installation and I have an issue with my /usr/include directory under cygwin bash. my .c file snippet looks like this: #include #include #include #include #include And when running gcc from bash with the followin command: gcc getip.c i receive the foll

Re: Process Execution from Cygwin Shells

2011-05-18 Thread Charles Wilson
On 5/19/2011 12:58 AM, Sravan Bhamidipati wrote: > Steps to reproduce: > 1. Open "Process Monitor" and filter for events of type "Operation" > and value "Process Create". > 2. Open a Cygwin shell (using cygwin.bat or mintty or rxvt): bash or ksh, e.g. > 3. Type any command that is not a shell built

Re: Process Execution from Cygwin Shells

2011-05-18 Thread Andy Koppe
On 19 May 2011 05:58, Sravan Bhamidipati wrote: > Steps to reproduce: > 1. Open "Process Monitor" and filter for events of type "Operation" > and value "Process Create". > 2. Open a Cygwin shell (using cygwin.bat or mintty or rxvt): bash or ksh, e.g. > 3. Type any command that is not a shell built-

[ANNOUNCEMENT] Updated: {xz/liblzma-devel}-5.0.2_20110517-1; New: liblzma5-5.0.2_20110517-1

2011-05-18 Thread Charles Wilson
The xz package is the successor to lzma. Its command-line tools support both .lzma files and the new .xz format, and it ships with compatibility links so you don't even need to retrain your fingers: 'lzma', 'lzcat', etc, are all still present. However, you probably should: .xz files are already be

Process Execution from Cygwin Shells

2011-05-18 Thread Sravan Bhamidipati
Steps to reproduce: 1. Open "Process Monitor" and filter for events of type "Operation" and value "Process Create". 2. Open a Cygwin shell (using cygwin.bat or mintty or rxvt): bash or ksh, e.g. 3. Type any command that is not a shell built-in, say "clear" or "cmd". 4. Notice that "Process Monitor"

Re: High Activity of setprogname

2011-05-18 Thread Sravan Bhamidipati
Terminals like mintty and rxvt are doing an unusual amount of context switching and consuming a lot of CPU cycles even in idle time. Process Explorer suggests that this activity is largely attributable to "cygwin1.dll!setprogname". Could this be something that should not or need not be done? (Runni

Windows 7: stat /cygdrive/D/nosuchfile yields garbage

2011-05-18 Thread Keith Thompson
I'm using Cygwin (version 1.7.9-1 of cygwin1.dll) on Windows 7 on a Dell laptop. Cygwin is installed in C:\cygwin. I should mention that I have a second Cygwin installation on the same laptop; it's in C:\apps\cygwin, and has version 1.7.5-1 of cygwin1.dll. I understand that having more than one

Re: How does one make a bash "builtin" (shared loadable module) on cygwin

2011-05-18 Thread Larry Hall (Cygwin)
On 5/18/2011 6:47 PM, Rocky Bernstein wrote: I am trying to build a bash "builtin" (a dynamically loadable bash module) on cygwin. Here's the error message I get via automake/make: $ make gcc -g -O2 -o set0.exe -shared set0-set0.o set0-set0.o: In function `set0_builtin': /tmp/bashdb/builtin/

How does one make a bash "builtin" (shared loadable module) on cygwin

2011-05-18 Thread Rocky Bernstein
 I am trying to build a bash "builtin" (a dynamically loadable bash module) on cygwin. Here's the error message I get via automake/make: $ make gcc  -g -O2   -o set0.exe -shared set0-set0.o set0-set0.o: In function `set0_builtin': /tmp/bashdb/builtin/set0.c:46: undefined reference to `_builtin_erro

Re: trying to get the process id for a spawned process to wait for it

2011-05-18 Thread C . Woody Butler
Ryan Johnson ece.cmu.edu> writes: > > What shell are you using? In bash, at least, the above won't work -- you > want Jobs=((Jobs+1)) > > Just to be sure, you've confirmed that the problem arises because the > if-then body runs with an empty $PID? Do the two echo commands fire? > > Ryan > >

Re: trying to get the process id for a spawned process to wait for it

2011-05-18 Thread Ryan Johnson
On 2:59 PM, C. Woody Butler wrote: Hi - I'm trying to launch a set number of threads, wait for them to finish, launch another set of threads, wait and repeat until there's no more input. so - I've got this (this is in the middle of a loop reading a file): Jobs=$Jobs + 1 What shell are you using

Building a vendor perl module with gcc under cygwin

2011-05-18 Thread Philip Kime
Greetings, I am having a hell of time trying to build a vendor-supplied perl module under gcc in cygwin. I know it compiles with gcc under Linux and Unix, as well as with VC under windows. I'm using cygwin 1.7.9 and gcc 4.3.4. This is 64-bit windows. The module creates a .dll which needs to link