[1.7] Admins can write to readonly files

2009-08-28 Thread Christian Franke
For members of Admin group, Cygwin 1.7 allows to overwrite files without write permission, but Cygwin 1.5 does not. Is this a intended change of 1.7 ? I would suggest to add a note to http://cygwin.com/1.7/cygwin-ug-net/ov-new1.7.html Testcase (WinXP SP2 and 3, Cygwin 1.7.0-60): $ touch foo $

Re: [1.7] Admins can write to readonly files

2009-08-28 Thread Dave Korn
Christian Franke wrote: > For members of Admin group, Cygwin 1.7 allows to overwrite files without > write permission, but Cygwin 1.5 does not. You are the root user, this is Unix. Of course you can overwrite files without write permission. > Is this a intended change of 1.7 ? Yep, think so

[ANNOUNCEMENT] [1.7] Updated: {glpk,libglpk0,libglpk-devel}-4.39-1

2009-08-28 Thread Marco Atzeri
Version 4.39-1 of glpk,libglpk0,libglpk-devel have been uploaded for cygwin-1.7. The GLPK (GNU Linear Programming Kit) package is intended for solving large-scale linear programming (LP), mixed integer programming (MIP), and other related problems. It is a set of routines written in ANSI C and o

[ANNOUNCEMENT] [1.7] Updated: {libhdf5_0,libhdf5-devel,hdf5}-1.6.9-1

2009-08-28 Thread Marco Atzeri
Version {libhdf5_0,libhdf5-devel,hdf5}-1.6.9-1 for cygwin-1.7 have been uploaded. DESCRIPTION HDF5 is a suite/library that makes possible the management of extremely large and complex data collections. HOMEPAGE http://www.hdfgroup.org/HDF5/ CHANGES This is a new bugfix upstream relase. For th

[ANNOUNCEMENT] [1.7] Updated: {fftw3,fftw3-doc,libfftw3-devel,libfftw3_3}-3.2.2-1

2009-08-28 Thread Marco Atzeri
Versions 3.2.2-1 of fftw3, fftw3-doc ,libfftw3-devel, libfftw3_3 have been uploaded for cygwin-1.7. DESCRIPTION FFTW is a C subroutine library for computing the discrete Fourier transform (DFT) in one or more dimensions. HOMEPAGE http://www.fftw.org/ CHANGES This is a new bugfix and performance

[ANNOUNCEMENT] [1.7] Updated: GraphicsMagick-1.3.6-1

2009-08-28 Thread Marco Atzeri
Version 1.3.6-1 of GraphicsMagick libGraphicsMagick-devel libGraphicsMagick3 perl-Graphics-Magick have been uploaded for cygwin-1.7 DESCRIPTION GraphicsMagick is the swiss army knife of image processing. It provides a robust and efficient collection of tools and libraries which suppor

[ANNOUNCEMENT] [1.7] Updated: {octave,octave-devel,octave-doc}-3.2.1-0

2009-08-28 Thread Marco Atzeri
New versions of {octave,octave-devel,octave-doc}-3.2.2-1 for cygwin-1.7 are available in the Cygwin distribution: This is a minor bugfix relase versus previous 3.2.0-2 For all the main changes http://www.gnu.org/software/octave/NEWS-3.2.html DESCRIPTION The GNU Octave language for numerical c

Cannot get 'Hello World' to compile

2009-08-28 Thread ken j
Hi, I am a COMPLETE newby at programming but am trying hard to get as far as I can on my own. I have installed Cygwin, with the gcc compiler package, and it all seems to be working OK. I'm using the 'Hello World' sample program used in the tutorial at cplusplus.com - code is as follows: // my fir

Re: Cannot get 'Hello World' to compile

2009-08-28 Thread Mark J. Reed
You named your program with a .c and ran gcc on it. Both of those mean C, which is a different language from C++. A C++ compiler will compile a C program, but not the other way around. Rename your file to end in .cc, .c++, .cpp, or .cxx, your choice (or capital .C if you have case sensitivity tu

Re: Cannot get 'Hello World' to compile

2009-08-28 Thread ken j
That was it - using g++ as the compiler and changing the file name to .cpp The executable file was placed in my cygwin/home/username folder. Do I have to specify that folder in the set path variable for Cygwin to see it? I'm not entirely clear on this issue. I really appreciate the help! Ken Mar

Re: Cannot get 'Hello World' to compile

2009-08-28 Thread Mark J. Reed
On Fri, Aug 28, 2009 at 8:51 AM, ken j wrote: > That was it - using g++ as the compiler and changing the file name to .cpp > The executable file was placed in my cygwin/home/username folder. Do I have > to specify that folder in the set path variable for Cygwin to see it? I'm > not entirely clear

Re: Cannot get 'Hello World' to compile

2009-08-28 Thread Matthias Andree
ken j schrieb: > Hi, I am a COMPLETE newby at programming but am trying hard to get as far as > I can on my own. I have installed Cygwin, with the gcc compiler package, and > it all seems to be working OK. I'm using the 'Hello World' sample program > used in the tutorial at cplusplus.com - code is

Trying to make a proper CYGWIN build for Apache 2.2.13

2009-08-28 Thread Jeffrey C. Jacobs
I've hacked the Apache 2.2.6 source to make it match Apache 2.2.13, updated the patch file and am trying now to build using the template of the 2.2.6 patch. When I build Apache using the updated apache2-2.2.13-1.sh script, I can get through most phases of the build but when I get to the the fi

Re: Cannot get 'Hello World' to compile

2009-08-28 Thread ken j
OK that helps. I'm new to Linux/Unix but I have some experience with DOS and batch files, etc. Some things in Cygwin don't follow the same conventions as DOS (or a DOSBox), obviously, like for example in DOS if an exe file is in the directory you are in, you can just type the file name and it will

Re: Cannot get 'Hello World' to compile

2009-08-28 Thread Mark J. Reed
On Fri, Aug 28, 2009 at 10:34 AM, ken j wrote: >BTW I've found that I do NOT need to type './' but > rather only '/' to get an exe file to run in Cygwin. That's only true if the executable is in the root directory (c:\cygwin in Windows, / in Cygwin). > Also, all of my compiled executables go to c

Re: Changing HOME for PERL

2009-08-28 Thread Mark J. Reed
On Thu, Aug 27, 2009 at 10:05 PM, Larry Hall (Cygwin) wrote: > Have we arrived at the end of the thread yet? You know who else liked Usenet better than mailing lists? HITLER! There. Thread over. :) -- Mark J. Reed -- Problem reports: http://cygwin.com/problems.html FAQ:

1.7: cygrunsrv and google desktop search (was: cygrunsrv will not start services most of the time)

2009-08-28 Thread Jonathan Manning
I've been tearing my hair out for weeks trying to get sshd running again after it stopped working. Came across this old thread on cygwin discuss from 3/26/09 describing the same problem but no resolution. I finally found a fix, so I'm posting it here for the record in case it helps others. (And pe

unlink()/rmdir() on busy file on MVFS

2009-08-28 Thread Eric Blake
I noticed this inconsistency: shell 1: $ df -T /cygdrive/[mu] FilesystemType 1K-blocks Used Available Use% Mounted on M:mvfs 1024000512000512000 50% /cygdrive/m U: smbfs83886080 76761088 7124992 92% /cygdrive/u $ cd /cygdrive/u $ mkdir dir $ to

Re: BitDefender again

2009-08-28 Thread Wilfried
"Michael Kairys" wrote: > > (3) http://www.f-prot.com > > Thanks for the suggestion... Seems some reviews give them low marks on > detection rates: > http://www.virusbtn.com/vb100/RAP/RAP-quadrant-Feb-Aug09.jpg > http://www.virus-centre.com/ > > ... and some low marks on features (19 out of 20

Re: Changing HOME for PERL

2009-08-28 Thread Andrew DeFaria
Mark J. Reed wrote: On Thu, Aug 27, 2009 at 10:05 PM, Larry Hall (Cygwin) wrote: Have we arrived at the end of the thread yet? You know who else liked Usenet better than mailing lists? HITLER! There. Thread over. :) Actually Hitler preferred the Enigma machine! There - *NOW* the thread's ove

Re: 1.7: cygrunsrv and google desktop search (was: cygrunsrv will not start services most of the time)

2009-08-28 Thread Dave Korn
Jonathan Manning wrote: > I've been tearing my hair out for weeks trying to get sshd running > again after it stopped working. Came across this old thread on cygwin > discuss from 3/26/09 describing the same problem but no resolution. > Cause: Google Desktop Search's AppInit_DLL. This injects thei

Re: Cygwin, symlinks, and wine

2009-08-28 Thread Larry Hall (Cygwin)
On 08/28/2009 01:36 AM, Christopher Faylor wrote: On Fri, Aug 28, 2009 at 01:31:11AM -0400, Christopher Faylor wrote: On Thu, Aug 27, 2009 at 09:52:26PM -0700, Dan Kegel wrote: Although it seems strange to run cygwin on top of wine, doing so would make it possible to run a lot of build scripts

Re: Cannot get 'Hello World' to compile

2009-08-28 Thread ken j
Mark J. Reed wrote: > > On Fri, Aug 28, 2009 at 10:34 AM, ken j wrote: >>BTW I've found that I do NOT need to type './' but >> rather only '/' to get an exe file to run in Cygwin. > > That's only true if the executable is in the root directory (c:\cygwin > in Windows, / in Cygwin). OK I see th

Re: Cygwin, symlinks, and wine

2009-08-28 Thread Dan Kegel
On Fri, Aug 28, 2009 at 9:33 AM, Larry Hall (Cygwin) wrote: > This leads me to believe the best course of action is to solve this problem > in Wine and/or through  Unix/Linux means, rather than relying on patches > to the apps running in Wine. I tend to agree. I'm going to have a look at using xa

Re: Cannot get 'Hello World' to compile

2009-08-28 Thread Christopher Faylor
On Fri, Aug 28, 2009 at 09:42:57AM -0700, ken j wrote: > > >Mark J. Reed wrote: >> >> On Fri, Aug 28, 2009 at 10:34 AM, ken j wrote: >>>BTW I've found that I do NOT need to type './' but >>> rather only '/' to get an exe file to run in Cygwin. >> >> That's only true if the executable is in the ro

Re: Cannot get 'Hello World' to compile

2009-08-28 Thread Gary Johnson
On 2009-08-28, Christopher Faylor wrote: > I'm not seeing a whole-lot of cygwin-specific issues here. The cygwin > list is not here to help people get up to speed on how to program or how > to use UNIX. > > I've been hoping that I won't have to step in and be mean but I would > appreciate it if

Re: Cannot get 'Hello World' to compile

2009-08-28 Thread Christopher Faylor
On Fri, Aug 28, 2009 at 10:05:50AM -0700, Gary Johnson wrote: >On 2009-08-28, Christopher Faylor wrote: >>I'm not seeing a whole-lot of cygwin-specific issues here. The cygwin >>list is not here to help people get up to speed on how to program or >>how to use UNIX. >> >>I've been hoping that I won

Re: [1.7] Admins can write to readonly files

2009-08-28 Thread Christian Franke
Dave Korn wrote: Christian Franke wrote: For members of Admin group, Cygwin 1.7 allows to overwrite files without write permission, but Cygwin 1.5 does not. You are the root user, this is Unix. Of course you can overwrite files without write permission. This is not true when '

Re: unlink()/rmdir() on busy file on MVFS

2009-08-28 Thread Corinna Vinschen
On Aug 28 14:59, Eric Blake wrote: > shell 2: > $ ls > ls: cannot open directory .: Permission denied > $ cd .. > > shell 1: > $ ls -d dir > ls: cannot access dir: No such file or directory > > Yes, the file and directory are being closed when the last client closes its > handles, but it leads t

Re: Cannot get 'Hello World' to compile

2009-08-28 Thread ken j
Christopher Faylor-8 wrote: > > > I've been hoping that I won't have to step in and be mean but I would > appreciate it if you would find some other forum for working out your > beginner programming issues. > > Sorry for pursuing a meaningful dialogue with a helpful fellow user in the wrong

Re: [1.7] Admins can write to readonly files

2009-08-28 Thread Corinna Vinschen
On Aug 28 19:57, Christian Franke wrote: > Dave Korn wrote: >> Christian Franke wrote: >> >>> For members of Admin group, Cygwin 1.7 allows to overwrite files without >>> write permission, but Cygwin 1.5 does not. >>> >> >> You are the root user, this is Unix. Of course you can overwrite

Re: Adding packages (was: mkfs.jffs2 support in CYGWIN)

2009-08-28 Thread Andy Koppe
Larry Hall: > Adding a link to shouldn't be allot of work > and may help if the menu was properly named. Good idea. I'll throw a name into the ring: "Cygwin package manager". > Beyond that requires significant changes to 'setup.exe' What would be needed beyond the p

Re: [1.7] Admins can write to readonly files

2009-08-28 Thread Christian Franke
Corinna Vinschen wrote: On Aug 28 19:57, Christian Franke wrote: This is not true when 'chmod -w ...' was done before the upgrade to 1.7. Cygwin 1.5 sets R/O attribute, then open for write fails with permission denied also on 1.7. That's why 1.7 tries not to set the R/O DOS attribute

Re: Adding packages

2009-08-28 Thread Larry Hall (Cygwin)
On 08/28/2009 02:55 PM, Andy Koppe wrote: Larry Hall: Adding a link to shouldn't be allot of work and may help if the menu was properly named. Good idea. I'll throw a name into the ring: "Cygwin package manager". While I personally would think that's fine, I'm n

Automating a Cygwin Script From Windows

2009-08-28 Thread jprice
I need to run a cygwin script directly via windows, probably via dos prompt or some other comparable method. This method needs to be automated and kicked off in Windows at certain times, so executing Cygwin, then manually typing in the script to run in the Cygwin prompt is out of the question. I

Re: Cannot get 'Hello World' to compile

2009-08-28 Thread Dave Korn
ken j wrote: > > Christopher Faylor-8 wrote: >> >> I've been hoping that I won't have to step in and be mean but I would >> appreciate it if you would find some other forum for working out your >> beginner programming issues. >> >> > > Sorry for pursuing a meaningful dialogue with a helpful fello

RE: Automating a Cygwin Script From Windows

2009-08-28 Thread Mike Marchywka
> Date: Fri, 28 Aug 2009 13:04:44 -0700 > From: ddjo...@gmail.com > To: cygwin@cygwin.com > Subject: Automating a Cygwin Script From Windows > > > I need to run a cygwin script directly via windows, probably via dos prompt > or some other comparable met

Re: Adding packages

2009-08-28 Thread Dave Korn
Larry Hall (Cygwin) wrote: > On 08/28/2009 02:55 PM, Andy Koppe wrote: >> Larry Hall: >>> Adding a link to shouldn't be allot of >>> work >>> and may help if the menu was properly named. >> >> Good idea. I'll throw a name into the ring: "Cygwin package manager". > > W

Re: Automating a Cygwin Script From Windows

2009-08-28 Thread Jeremy Bopp
jprice wrote: > I need to run a cygwin script directly via windows, probably via dos prompt > or some other comparable method. This method needs to be automated and > kicked off in Windows at certain times, so executing Cygwin, then manually > typing in the script to run in the Cygwin prompt is out

RE: Automating a Cygwin Script From Windows

2009-08-28 Thread jprice
Mike Marchywka-2 wrote: > > > >> Date: Fri, 28 Aug 2009 13:04:44 -0700 >> From: ddjo...@gmail.com >> To: cygwin@cygwin.com >> Subject: Automating a Cygwin Script From Windows >> >> >> I need to run a cygwin script directly via windows, probably via dos >

RE: Automating a Cygwin Script From Windows

2009-08-28 Thread David Christensen
jprice wrote: > I need to run a cygwin script directly via windows, probably via dos > prompt or some other comparable method. > I was hoping there would be some way to ... feed it a string of > commands to execute upon opening I wrote a Bash/ Perl backup/ archive/ shutdown solution for my Windows

Re: Adding packages

2009-08-28 Thread Christopher Faylor
On Fri, Aug 28, 2009 at 03:27:27PM -0400, Larry Hall (Cygwin) wrote: >On 08/28/2009 02:55 PM, Andy Koppe wrote: >>>which would require some volunteer effort to make it happen. >> >>Don't think I've got spare cycles to commit, unfortunately. > >Yes, this is a common problem and a recurring theme. I

Re: [1.7] On the problems of git and rsync

2009-08-28 Thread Angelo Graziosi
Angelo Graziosi ha scritto: Perhaps the following can be useful for others... Referring to [1], I encounter similar problems with git, i.e. it hangs on Cygwin-1.7. These problems, of rsync and git, are solved adding them to the exclusions of NOD32. Gulp!! +xdvi-xaw ...otherwise it does no

[1.7] On checkX

2009-08-28 Thread Angelo Graziosi
Just for completeness... I have a few scripts containing the following code: [...] start_XWin() { # Cleanup from last run. rm -rf /tmp/.X11-unix XWin -multiwindow -clipboard -silent-dup-error & } /usr/bin/checkX || start_XWin [...] Now, it happens that, often (perhaps always), if

Re: [1.7] On checkX

2009-08-28 Thread Charles Wilson
[Redirecting to cygwin-xfree; Reply-To set] Angelo Graziosi wrote: > /usr/bin/checkX || start_XWin > [...] > > Now, it happens that, often (perhaps always), if the x-server is not > running, then checkX stackdumps, in the sense I find > checkX.exe.stackdump in HOME, but it is empty! 0 bytes. Wh

Re: [1.7] On checkX

2009-08-28 Thread Angelo Graziosi
Charles Wilson wrote: What version of checkX.exe? Obviously the current, 'run2' and 'cygwin', packages: $ cygcheck -cd checkx run2 Cygwin Package Information Package Version run2 0.3.0-1 $ uname -a CYGWIN_NT-5.1 homepc 1.7.0(0.212/5/3) 2009-08-20 10:56 i686 Cygwin

Re: [1.7] On checkX

2009-08-28 Thread Charles Wilson
[redirecting, AGAIN, to cygwin-xfree. This is OT for the main cygwin list] Unfortunately, I can't reproduce. Try running checkX with (progressively): --no-silent --verbose --debug --debug=2 --debug=3 --debug=4 this should help to narrow down how far it gets (and perhaps why) before dy

Re: BitDefender again

2009-08-28 Thread Joe Smith
"Michael Kairys" wrote in message news:h73co7$tt...@ger.gmane.org... Thanks for the replies... the suggestion to use a base address in the 0x3500 area (or indeed any of the others they mentioned) is going to horribly frag your heap and bork your maximum allocatable memory limit, isn't

Re: Automating a Cygwin Script From Windows

2009-08-28 Thread Andrew DeFaria
jprice wrote: I need to run a cygwin script directly via windows, probably via dos prompt or some other comparable method. This method needs to be automated and kicked off in Windows at certain times, so executing Cygwin, then manually typing in the script to run in the Cygwin prompt is out of