Re: Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-05 Thread Blair Sutton
Eric Blake <[EMAIL PROTECTED]> writes: > Why should we patch a cygwin utility to promote the use of a non-cygwin shell? To increase/improve productivity. To move along with the times. No one can argue that Powershell isn't a good shell taking some of the best features of many popular shells befo

RE: flex 2.5.35-1: isatty() problem (and solution)

2008-06-05 Thread Dave Korn
Dante Allegria wrote on 05 June 2008 01:37: > #ifdef __cplusplus > extern int isatty M4_YY_PARAMS( int ); > #endif /* __cplusplus */ > The problem is that I've been long using flex to generate a C skeleton > and then compiling it with a C++ compiler. Thus the extern declaration in > the generated

Using msvc in Cygwin

2008-06-05 Thread Andrej van der Zee
Hi, I am looking for a way to use tools such as bash, vim and bjam on Windows, but I want to compile my projects using msvc. Probably a dummy question, but I was wondering if compiling a project with msvc in Cygwin using bjam will give me the same executables and dlls as if I would compile it on t

How to correctly setup passwd and group to access mounted drives?

2008-06-05 Thread uday
 Hi, I am trying this route after failing to find a relevant topic on web or with local gurus. Problem in short: = I have a folder on a unix server mapped as a windows drive z(y is another drive from another unix server). I am able to browse through the folders from windo

Re: Using msvc in Cygwin

2008-06-05 Thread Tim Prince
Andrej van der Zee wrote: Hi, I am looking for a way to use tools such as bash, vim and bjam on Windows, but I want to compile my projects using msvc. Probably a dummy question, but I was wondering if compiling a project with msvc in Cygwin using bjam will give me the same executables and dlls a

Trouble compiling C++ package

2008-06-05 Thread Richard Querin
Hi, I have a C++ package I'm trying to compile in Cygwin. It's generating the following error and I'm not sure why: "configure: error: C++ compiler cannot create executables" I have already removed cygwin, downloaded the latest and completely reinstalled it thinking this would fix the problem. N

Gnome and cygwin

2008-06-05 Thread Andrej van der Zee
Hi, I am new to Cygwin and googled around for a Gnome port. I came across a few projects and some of them seemed pretty dead. Now I am not sure which one to start with. Anyway, I was wondering if this really can be done without to much pain and if so, how can I do this as painless as possible? Ch

Re: Trouble compiling C++ package

2008-06-05 Thread Larry Hall (Cygwin)
Richard Querin wrote: Hi, I have a C++ package I'm trying to compile in Cygwin. It's generating the following error and I'm not sure why: "configure: error: C++ compiler cannot create executables" I have already removed cygwin, downloaded the latest and completely reinstalled it thinking this

Re: Trouble compiling C++ package

2008-06-05 Thread Greg Chicares
On 2008-06-05 14:53Z, Richard Querin wrote: > > I have a C++ package I'm trying to compile in Cygwin. It's generating > the following error and I'm not sure why: > > "configure: error: C++ compiler cannot create executables" > > I have already removed cygwin, downloaded the latest and completely

Re: diff: Resource temporarily unavailable

2008-06-05 Thread Larry Hall (Cygwin)
Luke Kendall wrote: Hi We're using a version of Cygwin that's at least a year old. Someone found today that he can't diff two large files (200MB each) across the network using Cygwin. The error we get is: $ diff //samba/damita-nobackup/chitra/SWFILES/OIP/RF_Testing/OIP01_SWRF_IO.txt //samba/d

Re: Trouble compiling C++ package

2008-06-05 Thread Larry Hall (Cygwin)
Greg Chicares wrote: There's the problem; here's a possible cause: 602k 2005/06/26 C:\WINDOWS\system32\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=2005/5/25 19:38 [...] 1828k 2008/05/27 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0

Re: Trouble compiling C++ package

2008-06-05 Thread Warren Young
Richard Querin wrote: 2 [main] ? 3312 init_cheap: Couldn't reserve 3600336 bytes of space for cygwin's heap, Win32 error 487 C:\cygwin\lib\gcc\i686-pc-cygwin\3.4.4\cc1plus.exe (3312): *** AllocationBase 0x0, BaseAddress 0x6182, RegionSize 0x36, State 0x1 This is the real sympt

MySql doesn't work in cygwin

2008-06-05 Thread Berable
Hi! I installed mysql 5 from the source(in version 5.0.45,with ./configure then make install).Allright, but when I try to lauch (mysql -u root -p, after put password) this error occurs: "can't connect to local Mysql Server through socket '/tmp/mysql.sock'" Bellow, my mysql options in my.cnt

Re: Trouble compiling C++ package

2008-06-05 Thread Richard Querin
On Thu, Jun 5, 2008 at 11:46 AM, Greg Chicares <[EMAIL PROTECTED]> wrote: > For future reference, an attachment is preferred. > Sorry 'bout that. Wasn't sure if I should. > > There's the problem; here's a possible cause: > >> 602k 2005/06/26 C:\WINDOWS\system32\cygwin1.dll - os=4.0 img=1.0 sy

Re: MySql doesn't work in cygwin

2008-06-05 Thread Brian Dessent
Berable wrote: > I installed mysql 5 from the source(in version 5.0.45,with ./configure then > make install).Allright, but when I try to lauch (mysql -u root -p, after > put password) > this error occurs: > > "can't connect to local Mysql Server through socket '/tmp/mysql.sock'" How did you st

Re: Trouble compiling C++ package

2008-06-05 Thread Larry Hall (Cygwin)
Richard Querin wrote: On Thu, Jun 5, 2008 at 11:46 AM, Greg Chicares wrote: For future reference, an attachment is preferred. Sorry 'bout that. Wasn't sure if I should. There's the problem; here's a possible cause: 602k 2005/06/26 C:\WINDOWS\system32\cygwin1.dll - os=4.0 img=1.0 sys

Re: How to correctly setup passwd and group to access mounted drives?

2008-06-05 Thread Spiro Trikaliotis
Hello, * On Thu, Jun 05, 2008 at 12:59:37PM + uday wrote: > Problem in short: > = > > I have a folder on a unix server mapped as a windows drive z(y is another > drive from > another unix server). > I am able to browse through the folders from windows explorer and read/

Re: How to correctly setup passwd and group to access mounted drives?

2008-06-05 Thread uday
Hi, Responses inline at #uday - Original Message > From: Spiro Trikaliotis <[EMAIL PROTECTED]> > To: cygwin@cygwin.com > Sent: Thursday, June 5, 2008 10:16:59 PM > Subject: Re: How to correctly setup passwd and group to access mounted > drives? > > Hello, > > * On Thu, Jun 05, 2008 a

Re: How to correctly setup passwd and group to access mounted drives?

2008-06-05 Thread Eric Berge
A nice way to check for being the "right" user is to use the "whoami" utility - the windows version out in \windows\system32, not the cygwin one. If it displays that you are "sshd_server" things are not well. I still do not fully understand the need to do this, but on some recent systems I've in

Re: Trouble compiling C++ package

2008-06-05 Thread Richard Querin
On Thu, Jun 5, 2008 at 12:38 PM, Larry Hall (Cygwin) <[EMAIL PROTECTED]> wrote: > Richard Querin wrote: >> >> I have seen this mention of cygwin1.dll being in the windows\system32 >> directory several times during cygwin upgrades and installations. >> However each time the dialog comes up and I ch

Re: How to correctly setup passwd and group to access mounted drives?

2008-06-05 Thread uday
Hi Eric, Thanks for the response. - Original Message > From: Eric Berge <[EMAIL PROTECTED]> > To: cygwin@cygwin.com > Sent: Thursday, June 5, 2008 10:35:46 PM > Subject: Re: How to correctly setup passwd and group to access mounted > drives? > > > A nice way to check for being the "r

Re: Trouble compiling C++ package

2008-06-05 Thread Warren Young
Richard Querin wrote: I removed all the Sonic products If you reinstall, just elect not to install the DLA piece. It's what lets you use a rewritable optical disk as if it were a floppy. Such software often causes problems, not just with Cygwin, due to the nature of the task. (CDs weren

Re: Trouble compiling C++ package

2008-06-05 Thread Richard Querin
On Thu, Jun 5, 2008 at 2:11 PM, Warren Young <[EMAIL PROTECTED]> wrote: > Richard Querin wrote: >> >> I removed all the Sonic products > > If you reinstall, just elect not to install the DLA piece. It's what lets > you use a rewritable optical disk as if it were a floppy. Such software > often ca

Re: MySql doesn't work in cygwin

2008-06-05 Thread Warren Young
Berable wrote: "can't connect to local Mysql Server through socket '/tmp/mysql.sock'" [snip] socket = /var/tmp/mysql.sock Try changing /var/tmp to /tmp. Error 2003 (HY000):Can't connect to MySQL server on '127.0.0.1' (111) What are the results of this command: $ netstat -na

Re: Gnome and cygwin

2008-06-05 Thread Yaakov (Cygwin Ports)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Andrej van der Zee wrote: | I am new to Cygwin and googled around for a Gnome | port. I came across a few projects and some of them | seemed pretty dead. Now I am not sure which one to | start with. Anyway, I was wondering if this really can | be do

Re: MySql doesn't work in cygwin

2008-06-05 Thread Berable
Warren Young wrote: > > Berable wrote: >> >> "can't connect to local Mysql Server through socket '/tmp/mysql.sock'" > > [snip] > >> socket = /var/tmp/mysql.sock > > Try changing /var/tmp to /tmp. > >> Error 2003 (HY000):Can't connect to MySQL server on '127.0.0.1' (111) > > What are th

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-05 Thread Linda Walsh
Blair Sutton wrote: Eric Blake <[EMAIL PROTECTED]> writes: Why should we patch a cygwin utility to promote the use of a non-cygwin shell? --- None of the shells are 'cygwin', really, -- they are shells that took their ideas from close-source Bell-Labs research. But before they became

g++ linking shared object problem

2008-06-05 Thread stamen
Hi, I link a program to a shared library (which I created before). From the library I just use one class. The linking seems to work. However the final executable seems to be corrupt. It just starts and stops without an error message. However even print statements which are in the code are not

Re: MySql doesn't work in cygwin

2008-06-05 Thread Warren Young
Please keep replies on the mailing list. Berable wrote: I can access the my mysql running in windows from cygwin, instead of mysql that I have installed in cygwin environment? How can I do this? I prefer this way... but I'm newbie in this subjectr If you install the Windows port of

Re: g++ linking shared object problem

2008-06-05 Thread Brian Dessent
[EMAIL PROTECTED] wrote: > gdb: unknown target exception 0xc135 at 0x7c974ed1 It's not corrupt in any way, 0xc135 is simply STATUS_DLL_NOT_FOUND. If you run it outside of Cygwin from a regular command prompt you will see a popup message about missing DLL. You just need to adjust your PA

Re: g++ linking shared object problem

2008-06-05 Thread Christopher Faylor
On Thu, Jun 05, 2008 at 01:31:17PM -0700, Brian Dessent wrote: >[EMAIL PROTECTED] wrote: > >> gdb: unknown target exception 0xc135 at 0x7c974ed1 > >It's not corrupt in any way, 0xc135 is simply STATUS_DLL_NOT_FOUND. >If you run it outside of Cygwin from a regular command prompt you will >s

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-05 Thread Pierre A. Humblet
- Original Message - From: "Blair Sutton" <> To: Sent: Wednesday, June 04, 2008 12:48 PM Subject: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe | Hi | | This is a very simple patch for Cron to allow one to use a shell like | powershell or cmd. I've done s

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-05 Thread Blair Sutton
I'm not sure if that's a very good solution. It spawns an unnecessary bourne shell process on each new cron job. Don't worry if you don't want to make the change. I will maintain my own separate branch and perhaps post the patch with some instructions somewhere online where other people may find i

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-05 Thread Mark J. Reed
The sh process is not "extra" since it's replaced by the powershell process, right? Unless "exec" works differently in Cygwin, which is entirely possible As a solution it seems reasonable to me... I'd much rather use a configuration-based change than worry about maintaining a patch. But that'

expat library problem

2008-06-05 Thread wynfield
I believe that is a bug in the "expat-2.0.1-1". Using the current setup.exe: 1.) I uninstalled all expat libraries from the system. 2.) Then download the new "expate 2.0.1" library 3.) And then installed it (or tried to). No errors were reported by setup, but the library was not installed.

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-05 Thread Christopher Faylor
On Thu, Jun 05, 2008 at 06:43:25PM -0400, Mark J. Reed wrote: >The sh process is not "extra" since it's replaced by the powershell >process, right? Unless "exec" works differently in Cygwin, which is >entirely possible Nope, you're right. It is replaced as long as it isn't the top-level cygwi

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-05 Thread Christopher Faylor
On Thu, Jun 05, 2008 at 12:47:42PM -0700, Linda Walsh wrote: > Blair Sutton wrote: >> Eric Blake <[EMAIL PROTECTED]> writes: >>>Why should we patch a cygwin utility to promote the use of a non-cygwin >>>shell? > >None of the shells are 'cygwin', really, -- they are shells that took >their ideas fro

SSHD Problems

2008-06-05 Thread liminal
Hi, I'm having problems setting up sshd using cygwin on my windows xp machine. I've run out of ideas, so if anyone can suggest troubleshooting tips or any other kind of help, I'd really appreciate it. I've installed sshd to run as a windows service. I can ssh to localhost or 127.0.0.1, but attempt

how can I stop Windows setting HOME?

2008-06-05 Thread anadem
Each time I boot my pc Windows sets the HOME environment variable to my "Documents and Settings" directory, which screws up cygwin. Before I can use cygwin I have to do the My Computer/Properties/Advanced ... etc stuff and delete HOME from my User variables. Otherwise cygwin sets my $HOME to Windo

Re: how can I stop Windows setting HOME?

2008-06-05 Thread Adam Thompson
2008/6/6 anadem <[EMAIL PROTECTED]>: > > Each time I boot my pc Windows sets the HOME environment variable to my > "Documents and Settings" directory, which screws up cygwin. Before I can use > cygwin I have to do the My Computer/Properties/Advanced ... etc stuff and > delete HOME from my User vari

Re: how can I stop Windows setting HOME?

2008-06-05 Thread Adam Thompson
2008/6/6 Adam Thompson <[EMAIL PROTECTED]>: > 2008/6/6 anadem <[EMAIL PROTECTED]>: >> >> Is there any way to permanently unset the HOME env-var in Windows? I could >> run a batch file at startup but afaik that would not be a systemwide removal >> of HOME. >> > > I do not think this is a Windows iss

Re: how can I stop Windows setting HOME?

2008-06-05 Thread Larry Hall (Cygwin)
Adam Thompson wrote: 2008/6/6 Adam Thompson <[EMAIL PROTECTED]>: 2008/6/6 anadem <[EMAIL PROTECTED]>: Is there any way to permanently unset the HOME env-var in Windows? I could run a batch file at startup but afaik that would not be a systemwide removal of HOME. I do not think this is a Windo

Re: MySql doesn't work in cygwin

2008-06-05 Thread Berable
But I have now this error ERROR 2005 (HY000): Unknown MySQL server host 127.0.0.1 (1) So , when I try start the server...another drug : [EMAIL PROTECTED]:mysql$ ./mysql.server start Starting MySQL/mysql.server: line 159: kill: (3208) - No such process ERROR! I'll to forgive with cygwin fo

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-05 Thread Linda Walsh
Christopher Faylor wrote: Cygwin endeavors to present an environment where shells understand "-c" rather than "/c". I did not look at the change. My initial gut reaction on that change was...no way..."/" is a path character, and it's because Bill Gates wanted to look different fro

Re: how can I stop Windows setting HOME?

2008-06-05 Thread Linda Walsh
anadem wrote: Each time I boot my pc Windows sets the HOME environment variable to my "Documents and Settings" directory, --- Windows doesn't set "HOME"at least not by default. What makes you think it is setting 'HOME'? Goto control-panel->System, Advanced, and clic

RE: how can I stop Windows setting HOME?

2008-06-05 Thread Gary R. Van Sickle
> From: Adam Thompson > Subject: Re: how can I stop Windows setting HOME? > > 2008/6/6 anadem <>: > > > > Each time I boot my pc Windows sets the HOME environment > variable to > > my "Documents and Settings" directory, which screws up > cygwin. Before > > I can use cygwin I have to do the My