Re: cygwin 1.5.18-1: Process hangs, trying to debug, have tried snapshots

2005-08-26 Thread Gerrit P. Haase
William Deegan wrote: Greetings, I've download and installed the latest snapshot, in hopes of being able to see what's happening inside of cygwin1.dll where the process seems to be intermittanly hanging in perl: Can you post a small example script which exposes the problem, please? GErrit -

Re: perennity of cygwin_internal(CW_GET_ERRNO_FROM_WINERROR,err)

2005-08-26 Thread Corinna Vinschen
On Aug 26 00:43, Samuel Thibault wrote: > Hi, > > While writing a library for instance, we'd like > to return appropriate errno values, and for this > cygwin_internal(CW_GET_ERRNO_FROM_WINERROR,err) would be much useful. > > Documentation says "Stay away unless you know what you're doing". Could

Re: Problem with sh/bash and snapshot cygwin1-20050825.dll

2005-08-26 Thread Corinna Vinschen
On Aug 26 01:26, Christopher Faylor wrote: > On Fri, Aug 26, 2005 at 12:31:07AM -0400, Volker Quetschke wrote: > >I just stumbled over the following problem: > > > >$ cat shelltest.sh > >#! /bin/sh > >ANT_HOME="/cygdrive/c/apache-ant-1.6.5/bin/.." > >ANT_HOME=`cd "$ANT_HOME" && pwd` > > > >With cyg

Re: perennity of cygwin_internal(CW_GET_ERRNO_FROM_WINERROR,err)

2005-08-26 Thread Samuel Thibault
Corinna Vinschen, le Fri 26 Aug 2005 11:05:21 +0200, a écrit : > On Aug 26 00:43, Samuel Thibault wrote: > > While writing a library for instance, we'd like > > to return appropriate errno values, and for this > > cygwin_internal(CW_GET_ERRNO_FROM_WINERROR,err) would be much useful. > > > > Docume

Re: perennity of cygwin_internal(CW_GET_ERRNO_FROM_WINERROR,err)

2005-08-26 Thread Corinna Vinschen
On Aug 26 11:13, Samuel Thibault wrote: > Corinna Vinschen, le Fri 26 Aug 2005 11:05:21 +0200, a écrit : > > On Aug 26 00:43, Samuel Thibault wrote: > > > While writing a library for instance, we'd like > > > to return appropriate errno values, and for this > > > cygwin_internal(CW_GET_ERRNO_FROM_W

Emacs from cygwin in X mode with no X running

2005-08-26 Thread Harry Putnam
My background is unix/linux so when I find myself on MS OS of one vintage or another I sorely need the cygwin tools. However, one thing I've not found a way to get smoothed out is how to run emacs. I want to run emacs in gui mode but without starting an X session. That is, similar to what is po

Re: Emacs from cygwin in X mode with no X running

2005-08-26 Thread Andy Moreton
On Fri, 26 Aug 2005 11:39:39 GMT, Harry Putnam wrote: > My background is unix/linux so when I find myself on MS OS of one > vintage or another I sorely need the cygwin tools. > > However, one thing I've not found a way to get smoothed out is how to > run emacs. > > I want to run emacs in gui m

Re: Problem with sh/bash and snapshot cygwin1-20050825.dll

2005-08-26 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Corinna Vinschen on 8/26/2005 3:07 AM: >>This is apparently due to Corinna's latest patch which attempts to get >>realpath working. bash is calling cygwin_convert_to_full_posix_path >>on the /cygdrive/... above and the return value now is

Re: Problem with sh/bash and snapshot cygwin1-20050825.dll

2005-08-26 Thread Corinna Vinschen
On Aug 26 06:17, Eric Blake wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > According to Corinna Vinschen on 8/26/2005 3:07 AM: > >>This is apparently due to Corinna's latest patch which attempts to get > >>realpath working. bash is calling cygwin_convert_to_full_posix_path > >>on th

Re: Problem with sh/bash and snapshot cygwin1-20050825.dll

2005-08-26 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Eric Blake on 8/26/2005 6:17 AM: > I also noticed that realpath("c:..", buf) now returns "c:", rather than > "/cygdrive" - I guess it comes down to the choice of whether cygwin has 2 > roots or 28 roots. I prefer 2 roots (so that the pare

Re: Emacs from cygwin in X mode with no X running

2005-08-26 Thread Harry Putnam
Andy Moreton <[EMAIL PROTECTED]> writes: > On Fri, 26 Aug 2005 11:39:39 GMT, Harry Putnam wrote: > >> My background is unix/linux so when I find myself on MS OS of one >> vintage or another I sorely need the cygwin tools. >> >> However, one thing I've not found a way to get smoothed out is how

Re: Emacs from cygwin in X mode with no X running

2005-08-26 Thread Henry S. Thompson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Harry Putnam writes: > I want to run emacs in gui mode but without starting an X session. > That is, similar to what is possible with ntemacs. This can be done easily with XEmacs. You can get an only slightly stale version (21.4.13) straight out of

Re: crontab

2005-08-26 Thread Jean-Michel Douchain
> > > > > > > Since you didn't redirect the output of either of the above commands, > > > cron will probably try (and fail) to find a working smtp service on > > > your machine to mail you the output. my crontab: 26 * * * * /bin/csh -xv /cygdrive/c/sismalp/acqdata/es.csh >> /tmp/crontst2 2>&1 t

Timestamps

2005-08-26 Thread Wes S
I'm using exim and sshd which is working wonderfully on my w2k box. My cygwin programs are recent as of the last 7 days if that matters. What I can't figure out is how to get time/date stamps on the log files such as sshd.log and exim_main.log. I got entries but when they were made, who know

Re: crontab

2005-08-26 Thread Igor Pechtchanski
On Fri, 26 Aug 2005, Jean-Michel Douchain wrote: > my script es.csh: > #!/bin/csh -f > cd /cygdrive/c/sismalp/acqdata/DATA > set acq = /cygdrive/g ^^^ > set list = `/bin/ls $acq` > echo $list >> toto > exit > > my file toto increase of one empty line at each execution, instead

Re: Problem with sh/bash and snapshot cygwin1-20050825.dll

2005-08-26 Thread Volker Quetschke
Volker Quetschke wrote: I just stumbeled over the following problem: $ cat shelltest.sh #! /bin/sh ANT_HOME="/cygdrive/c/apache-ant-1.6.5/bin/.." ANT_HOME=`cd "$ANT_HOME" && pwd` With cygwin1-20050825.dll: $ ./shelltest.sh ./shelltest.sh: line 3: cd: /cygdrive/c/apache-ant-1.6.5/bin/..: No such

Re: Problem with sh/bash and snapshot cygwin1-20050825.dll

2005-08-26 Thread Brian Dessent
Volker Quetschke wrote: > > If I change the first line to: > > #! /bin/bash > > it surprisingly works with both snapshots. > The surprising thing is that bash.exe = sh.exe (bash version 3.0-11). It's not surprising, because bash sets itself in posix mode when invoked as sh. It does 'cd' differen

Re: crontab

2005-08-26 Thread Brian Dessent
Igor Pechtchanski wrote: > Ah, that may explain it. Is G: a network drive? If so, see > . Yep, that would be the problem. From his cygcheck: a: fd N/AN/A c: hd FAT 2047Mb 70% CPUN

Re: Problem with sh/bash and snapshot cygwin1-20050825.dll

2005-08-26 Thread Christopher Faylor
On Fri, Aug 26, 2005 at 06:17:13AM -0600, Eric Blake wrote: >While you're at it, fix realpath(NULL, buf) to set buf[0]='\0', instead of >leaving garbage there. What's the rationale for touching buf when realpath is returning an error and setting EINVAL? cgf -- Unsubscribe info: http://cygwi

RE: Problem with sh/bash and snapshot cygwin1-20050825.dll

2005-08-26 Thread Dave Korn
Original Message >From: Christopher Faylor >Sent: 26 August 2005 15:48 > On Fri, Aug 26, 2005 at 06:17:13AM -0600, Eric Blake wrote: >> While you're at it, fix realpath(NULL, buf) to set buf[0]='\0', instead >> of leaving garbage there. > > What's the rationale for touching buf when realp

RE: Problem with sh/bash and snapshot cygwin1-20050825.dll

2005-08-26 Thread Dave Korn
Original Message >From: Dave Korn >Sent: 26 August 2005 15:52 > Original Message >> From: Christopher Faylor >> Sent: 26 August 2005 15:48 > >> On Fri, Aug 26, 2005 at 06:17:13AM -0600, Eric Blake wrote: >>> While you're at it, fix realpath(NULL, buf) to set buf[0]='\0', instead >

Re: Problem with sh/bash and snapshot cygwin1-20050825.dll

2005-08-26 Thread Eric Blake
> On Fri, Aug 26, 2005 at 06:17:13AM -0600, Eric Blake wrote: > >While you're at it, fix realpath(NULL, buf) to set buf[0]='\0', instead of > >leaving garbage there. > > What's the rationale for touching buf when realpath is returning an error > and setting EINVAL? Because POSIX states that buf i

Re: Emacs from cygwin in X mode with no X running

2005-08-26 Thread Harry Putnam
[EMAIL PROTECTED] (Henry S. Thompson) writes: [...] > This can be done easily with XEmacs. You can get an only slightly > stale version (21.4.13) straight out of the box from XEmacs.org [1] > (pick 'native windows'). > > Or you can compile your own 21.4.17 from source, but this is _not_ a > 'stra

Re: Problem with sh/bash and snapshot cygwin1-20050825.dll

2005-08-26 Thread Eric Blake
> > On Fri, Aug 26, 2005 at 06:17:13AM -0600, Eric Blake wrote: > > >While you're at it, fix realpath(NULL, buf) to set buf[0]='\0', instead of > > >leaving garbage there. > > > > What's the rationale for touching buf when realpath is returning an error > > and setting EINVAL? > > Because POSIX s

Re: Problem with sh/bash and snapshot cygwin1-20050825.dll

2005-08-26 Thread Christopher Faylor
On Fri, Aug 26, 2005 at 03:51:59PM +0100, Dave Korn wrote: >Original Message >>From: Christopher Faylor >>Sent: 26 August 2005 15:48 > >> On Fri, Aug 26, 2005 at 06:17:13AM -0600, Eric Blake wrote: >>> While you're at it, fix realpath(NULL, buf) to set buf[0]='\0', instead >>> of leaving ga

Re: Problem with sh/bash and snapshot cygwin1-20050825.dll

2005-08-26 Thread Christopher Faylor
On Fri, Aug 26, 2005 at 02:56:46PM +, Eric Blake wrote: >> On Fri, Aug 26, 2005 at 06:17:13AM -0600, Eric Blake wrote: >> >While you're at it, fix realpath(NULL, buf) to set buf[0]='\0', instead of >> >leaving garbage there. >> >> What's the rationale for touching buf when realpath is returnin

Re: Emacs from cygwin in X mode with no X running

2005-08-26 Thread Igor Pechtchanski
On Fri, 26 Aug 2005, Harry Putnam wrote: > [EMAIL PROTECTED] (Henry S. Thompson) writes: . Thanks. > [...] > > > This can be done easily with XEmacs. You can get an only slightly > > stale version (21.4.13) straight out of the box from XEmacs.org [1]

Re: Emacs from cygwin in X mode with no X running

2005-08-26 Thread Andy Moreton
On Fri, 26 Aug 2005 12:46:38 GMT, Harry Putnam wrote: > Andy Moreton <[EMAIL PROTECTED]> writes: > >> On Fri, 26 Aug 2005 11:39:39 GMT, Harry Putnam wrote: [snipped] >> >> You may find it easier to teach NTemacs about cygwin paths: >> >> http://www.emacswiki.org/cgi-bin/wiki/cygwin-mount.el > >

Re: crontab

2005-08-26 Thread Igor Pechtchanski
On Fri, 26 Aug 2005, Brian Dessent wrote: > Igor Pechtchanski wrote: > > > Ah, that may explain it. Is G: a network drive? If so, see > > . > > Yep, that would be the problem. From his cygcheck: > > a: fd N/AN/A > c: hd

Re: Problem with sh/bash and snapshot cygwin1-20050825.dll

2005-08-26 Thread Eric Blake
> >Because POSIX states that buf is indeterminate on error, and > >because Corrina's patch caused a regression (ie. 1.5.18 was > >setting buf[0] to 0 on error). QofI states that we might as > >well make the indeterminate buffer useful, in case a user > >forgets to check the return value being NULL

Re: crontab

2005-08-26 Thread Jean-Michel Douchain
"Ah, that may explain it. Is G: a network drive?" That's right. It's a Dos network drive, and in fact, the response of "ls" is very long. I installed cygwin for all users. So I don't know how to manage because my script works by hand!! What are the differents between the cron and the handy execu

Re: crontab

2005-08-26 Thread Brian Dessent
Jean-Michel Douchain wrote: > > "Ah, that may explain it. Is G: a network drive?" > > That's right. It's a Dos network drive, and in fact, the response of "ls" is > very long. > I installed cygwin for all users. > So I don't know how to manage because my script works > by hand!! What are the dif

Re: Emacs from cygwin in X mode with no X running

2005-08-26 Thread Harry Putnam
Igor Pechtchanski <[EMAIL PROTECTED]> writes: > Well, you could try compiling Emacs yourself and linking it against libW11 > (that comes with rxvt). Most likely, this will not work, but I'm sure > patches for missing functionality would be thoughtfully considered by the > developers of rxvt. 'T

Re: Emacs from cygwin in X mode with no X running

2005-08-26 Thread Harry Putnam
Andy Moreton <[EMAIL PROTECTED]> writes: > (cygwin-mount-activate) Egad I am being a tedious bore. I failed to eval that in my test. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.

Re: Emacs from cygwin in X mode with no X running

2005-08-26 Thread Harry Putnam
Andy Moreton <[EMAIL PROTECTED]> writes: > On Fri, 26 Aug 2005 12:46:38 GMT, Harry Putnam wrote: > >> Andy Moreton <[EMAIL PROTECTED]> writes: >> >>> On Fri, 26 Aug 2005 11:39:39 GMT, Harry Putnam wrote: > [snipped] >>> >>> You may find it easier to teach NTemacs about cygwin paths: >>> >>> http:

Re: crontab (Attn: FAQ maintainer)

2005-08-26 Thread Igor Pechtchanski
On Fri, 26 Aug 2005, Brian Dessent wrote: > Jean-Michel Douchain wrote: > > > > "Ah, that may explain it. Is G: a network drive?" > > > > That's right. It's a Dos network drive, and in fact, the response of > > "ls" is very long. I installed cygwin for all users. So I don't know > > how to manage

Re: cygwin 1.5.18-1: Process hangs, trying to debug, have tried snapshots

2005-08-26 Thread William Deegan
On 8/26/05, Gerrit P. Haase <[EMAIL PROTECTED]> wrote: > William Deegan wrote: > > Greetings, > > > > I've download and installed the latest snapshot, in hopes of being able > > to see what's happening inside of cygwin1.dll where the process seems > > to be intermittanly hanging in perl: > > Can y

base relocations and vtune

2005-08-26 Thread Amos Anderson
hello -- i'm trying to figure out how to profile my code compiled with gcc/cygwin with intel vtune's call graph. this might be a problem specific to the call graph functionality itself. i was able to instrument all my program with vtune so i can run the call graph activity, but i get the warning

Re: zsh: command not found => hangs

2005-08-26 Thread Peter A. Castro
On Thu, 25 Aug 2005, Christopher Faylor wrote: On Thu, Aug 25, 2005 at 04:57:46PM -0700, Peter A. Castro wrote: On Fri, 26 Aug 2005, Samuel Thibault wrote: Peter A. Castro, le Thu 25 Aug 2005 14:18:53 -0700, a ?crit : On Thu, 25 Aug 2005, Samuel Thibault wrote: Note that I replaced cygwin1.d

Re: base relocations and vtune

2005-08-26 Thread Larry Hall
At 01:15 PM 8/26/2005, you wrote: >hello -- i'm trying to figure out how to profile my code compiled with >gcc/cygwin with intel vtune's call graph. > >this might be a problem specific to the call graph functionality itself. > >i was able to instrument all my program with vtune so i can run the >ca

Re: zsh: command not found => hangs

2005-08-26 Thread Corinna Vinschen
On Aug 26 11:14, Peter A. Castro wrote: > On Thu, 25 Aug 2005, Christopher Faylor wrote: > > >On Thu, Aug 25, 2005 at 04:57:46PM -0700, Peter A. Castro wrote: > >>On Fri, 26 Aug 2005, Samuel Thibault wrote: > >>>Peter A. Castro, le Thu 25 Aug 2005 14:18:53 -0700, a ?crit : > On Thu, 25 Aug 200

Re: zsh: command not found => hangs

2005-08-26 Thread Christopher Faylor
On Fri, Aug 26, 2005 at 11:14:20AM -0700, Peter A. Castro wrote: >On Thu, 25 Aug 2005, Christopher Faylor wrote: > >>On Thu, Aug 25, 2005 at 04:57:46PM -0700, Peter A. Castro wrote: >>>On Fri, 26 Aug 2005, Samuel Thibault wrote: Peter A. Castro, le Thu 25 Aug 2005 14:18:53 -0700, a ?crit :

Re: base relocations and vtune

2005-08-26 Thread Amos Anderson
thanks for responding. For intel's vtune to be able to provide call graph functionality, it claims to require "base relocations". upon presenting this warning, it suggests that if one is using the visual studio compiler, that the /FIXED:NO flag be provided to the compiler. microsoft's msdn has thi

Re: Problem with sh/bash and snapshot cygwin1-20050825.dll

2005-08-26 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks for your cleanup efforts! 20050826 is much better. All that remains is the regression from 1.5.18, where readlink(NULL, buf) set buf[0], but now it doesn't. According to Corinna Vinschen on 8/26/2005 6:32 AM: >>Also, readlink(&q

Re: zsh: command not found => hangs

2005-08-26 Thread Peter A. Castro
/cygwin.com/ml/cygwin/2005-08/threads.html#01207 I saw that on the list but wasn't sure if this was the same symptom or not. Corinna has made some changes and I've generated a new snapshot. Please give it a try. Ok, so 20050826 snapshot fixes the problem I mentioned above. Thank

Re: crontab (Attn: FAQ maintainer)

2005-08-26 Thread Joshua Daniel Franklin
On 8/26/05, Igor Pechtchanski wrote: > On Fri, 26 Aug 2005, Brian Dessent wrote: > > > The answer is in the link that Igor gave you. This FAQ perhaps should > > be split up into two questions, or at least be made more clear that > > there are two problems being addressed in the answer. > > FWIW,

Re:JNI and cygwin

2005-08-26 Thread Martin Dorey
> I need terminal and ncurses support and I have a JNI > layer that interacts with "curses" functions. Me too (for http://www.jessies.org/~enh/software/terminator/). > I have problems using the cygwin libraries with Java > VM. I had problems too - probably the same ones. They're discussed at:

Re: base relocations and vtune

2005-08-26 Thread Amos Anderson
well, i've just figured out my problem. i'm pretty sure that i had already tried the -pie command with the gcc compiler before, but that didn't work. here is the final solution that works for me. gcc needs the following two extra parameters: -Wl,-pie -pie thanks! amos.

Re: crontab (Attn: FAQ maintainer)

2005-08-26 Thread Igor Pechtchanski
On Fri, 26 Aug 2005, Joshua Daniel Franklin wrote: > On 8/26/05, Igor Pechtchanski wrote: > > On Fri, 26 Aug 2005, Brian Dessent wrote: > > > > > The answer is in the link that Igor gave you. This FAQ perhaps should > > > be split up into two questions, or at least be made more clear that > > > t

[ANNOUNCEMENT] Updated: file-4.15-1

2005-08-26 Thread Corinna Vinschen
I've updated the version of file to 4.15-1. This version is an update to the official version 4.15, mainly improved magic value recognition. The Cygwin sources are build from the vanilla sources with just an additional `-no-undefined' on the libtool command line to build the libmagic DLL, and a t

Re: Cygwin for exporting CDROM

2005-08-26 Thread Igor Pechtchanski
Wrong list, redirected. This has nothing to do with Cygwin/X. Please remove from further discussion. On Fri, 26 Aug 2005, clresid wrote: > Dear Sir/Mdm, > Is there a way for me to export the CDROM of my PC and > allow a remote mount from another unix system (such as > Sun or SGI) to read the C

Re: crontab (Attn: FAQ maintainer)

2005-08-26 Thread Joshua Daniel Franklin
On 8/26/05, Igor Pechtchanski wrote: > On Fri, 26 Aug 2005, Joshua Daniel Franklin wrote: > > > On 8/26/05, Igor Pechtchanski wrote: > > > On Fri, 26 Aug 2005, Brian Dessent wrote: > > > > > > > The answer is in the link that Igor gave you. This FAQ perhaps should > > > > be split up into two que

Re: Broken link at http://cygwin.com/faq.html

2005-08-26 Thread Joshua Daniel Franklin
On 8/19/05, Christopher Faylor wrote: > On Fri, Aug 19, 2005 at 04:26:51AM -0700, Joshua Daniel Franklin wrote: > >On 8/19/05, Gerald Pfeifer wrote: > >> http://cygwin.com/faq.html has one (I believe actually more than one) > >> link to http://www.redhat.com/software/tools/cygwin/ which is broken.

Re: crontab (Attn: FAQ maintainer)

2005-08-26 Thread Igor Pechtchanski
On Fri, 26 Aug 2005, Joshua Daniel Franklin wrote: > On 8/26/05, Igor Pechtchanski wrote: > > On Fri, 26 Aug 2005, Joshua Daniel Franklin wrote: > > > > > On 8/26/05, Igor Pechtchanski wrote: > > > > On Fri, 26 Aug 2005, Brian Dessent wrote: > > > > > > > > > The answer is in the link that Igor ga

Re: crontab (Attn: FAQ maintainer)

2005-08-26 Thread Brian Dessent
Igor Pechtchanski wrote: > > All done: > > > > http://cygwin.com/faq/faq.using.html#faq.using.shares > > Looks good. I also noticed that you got rid of numeric anchors, which > fixed the FAQ browsing in Netscape for me. Thanks! Could you perhaps add to the list of workarounds calling 'net use'

Re: Emacs from cygwin in X mode with no X running

2005-08-26 Thread James R. Phillips
Have you actually tried installing the x-server and using it? It takes a while to download, but can be used somewhat unobtrusively. The default startxwin.sh shell script starts xwin in the multiwindow mode, which means you get a black X icon in the system tray when there are no X clients, and oth

Re: Proposed FAQ in DocBook

2005-08-26 Thread Joshua Daniel Franklin
On 8/18/05, Joshua Daniel Franklin wrote: > On 8/18/05, Igor Pechtchanski wrote: > > On Thu, 18 Aug 2005, Joshua Daniel Franklin wrote: > > > On 8/18/05, Igor Pechtchanski wrote: > > > > Heh, this is the first time I accessed the FAQ after the switch, and > > > > the direct question links don't wor

Re: crontab (Attn: FAQ maintainer)

2005-08-26 Thread Joshua Daniel Franklin
On 8/26/05, Brian Dessent wrote: > Igor Pechtchanski wrote: > > > > All done: > > > > > > http://cygwin.com/faq/faq.using.html#faq.using.shares > > > > Looks good. I also noticed that you got rid of numeric anchors, which > > fixed the FAQ browsing in Netscape for me. Thanks! > > Could you perh

Re: Proposed FAQ in DocBook

2005-08-26 Thread Brian Dessent
Joshua Daniel Franklin wrote: > > > 4.72 (don't laugh, I still use it occasionally). > > Well, I didn't figure out how to do it in DocBook, but it was no > problem with sed: > > sed -i 's;;;g' faq/faq*.html > > Hopefully in the meantime you were able to make do with a more advanced > browser su

Re: Timestamps

2005-08-26 Thread Wes S
Replying to my own email for archives. I didn't have syslogd running. Install script /bin/syslogd-config I initially installed sshd with: cygrunsrv -I sshd -d "CYGWIN sshd" -p /usr/sbin/sshd -a '-D -e' changed to cygrunsrv -I sshd -d "CYGWIN sshd" -p /usr/sbin/sshd -a '-D' Now I'm happier. We