RE: cygwin -mno-cygwin AC_CHECK_SIZEOF

2006-11-30 Thread Danny Smith
> > Or have autoconf use some other tool that does not do binary > processing > (e.g., awk or tr) instead of cat, which would enable the text mount > solution. > Igor Or make cygwin-pc-i686-gcc -mno-cygwin foo.c mean something subtly but significantly different from mingw32-pc-i686-gcc f

Re: cygwin -mno-cygwin AC_CHECK_SIZEOF

2006-11-30 Thread Igor Peshansky
On Thu, 30 Nov 2006, Eric Blake wrote: > According to Bob Rossi on 11/30/2006 7:32 PM: > > > AC_CHECK_SIZEOF does these two things on cygwin with autoconf 2.60. > > fprintf(f, "%d\n", sizeof($1)); > > which prints "4\r\n" if the size is 4 and then > > AC_CV_NAME=`cat conftestval`, ... > > now

Re: autoconf

2006-11-30 Thread René Berber
René Berber wrote: > Bob Rossi wrote: > [snip] >> Here's the full story. I'm trying to build apr. It needs to be built >> with mingw in order to have thread support. It specifically disables >> thread support with cygwin. >> >> So, instead of getting the mingw >> environment, I'd like to use the cy

Re: GPGME 1.0.3 Build Problem

2006-11-30 Thread Marcus Brinkmann
At Fri, 01 Dec 2006 13:09:32 +0900, "djh" <[EMAIL PROTECTED]> wrote: > > > Thanks again for your response. > > > From: Marcus Brinkmann <[EMAIL PROTECTED]> > > ...Shared library support various dramatically across platforms. Libtool > > tries its best to patch it up and give a consistent pictur

Re: autoconf

2006-11-30 Thread René Berber
Bob Rossi wrote: [snip] > Here's the full story. I'm trying to build apr. It needs to be built > with mingw in order to have thread support. It specifically disables > thread support with cygwin. > > So, instead of getting the mingw > environment, I'd like to use the cygwin environment cause I my b

Re: 1.5.22-1: Error by using man

2006-11-30 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Matthew Woehlke on 11/30/2006 9:58 AM: > > Hmm, 'cp /bin/bash /bin/sh'? There have been quite a few scattered > reports as of late of /bin/sh (which should be the same as /bin/bash) > somehow getting out of sync. In my experience, a mism

Re: GPGME 1.0.3 Build Problem

2006-11-30 Thread Yaakov S (Cygwin Ports)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcus Brinkmann wrote: > I gave it another look, and it seems to me that the problem could be > the following: GPGME tries to build versions of GPGME linking against > pthread and pth. These versions are built from a version of the > library without

Re: backup privileges

2006-11-30 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Igor Peshansky on 11/30/2006 7:50 AM: > Speaking of getting shot down, I have a feeling I'm about to be. Still, > while in Linux it's possible (and recommended) to not work as root most of > the time, in Windows I've run into situations t

Re: cygwin -mno-cygwin AC_CHECK_SIZEOF

2006-11-30 Thread Howard Chu
Eric Blake wrote: What is the best way to resolve something like this? Perhaps experiment with a cygwin text mount, so that cygwin cat will ignore the \r. Or experiment with the recent add-on to cygwin's bash, where exporting SHELLOPTS with the cygwin-specific shell option igncr set will

Re: GPGME 1.0.3 Build Problem

2006-11-30 Thread djh
Thanks again for your response. > From: Marcus Brinkmann <[EMAIL PROTECTED]> > ...Shared library support various dramatically across platforms. Libtool > tries its best to patch it up and give a consistent picture, but it > can not always provide. > > > I gave it another look, and it seem

Re: cygwin -mno-cygwin AC_CHECK_SIZEOF

2006-11-30 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bob Rossi on 11/30/2006 7:32 PM: > Hi, > > If I'm using cygwin, with the -mno-cygwin gcc/g++ compiler option, then > mingw is used. Or more precisely, the -mno-cygwin switch in cygwin's gcc is a shorthand for invoking a cross-compiler th

Re: autoconf

2006-11-30 Thread Bob Rossi
On Thu, Nov 30, 2006 at 10:11:01PM -0500, Larry Hall (Cygwin) wrote: > Bob Rossi wrote: > >On Thu, Nov 30, 2006 at 09:45:21PM -0500, Larry Hall (Cygwin) wrote: > >>Bob Rossi wrote: > >>>On Thu, Nov 30, 2006 at 06:45:10PM -0500, Larry Hall (Cygwin) wrote: > Bob Rossi wrote: > >Hi, > > >

Re: GPGME 1.0.3 Build Problem

2006-11-30 Thread Marcus Brinkmann
At Fri, 01 Dec 2006 11:32:35 +0900, "djh" <[EMAIL PROTECTED]> wrote: > > libtool has been cygwin aware for several years and I've had no problems with > it building many shared libraries. (Except for example, GMP in which they > assumed possibly too much in libtool and was forced to explicity u

Re: autoconf

2006-11-30 Thread Larry Hall (Cygwin)
Bob Rossi wrote: On Thu, Nov 30, 2006 at 09:45:21PM -0500, Larry Hall (Cygwin) wrote: Bob Rossi wrote: On Thu, Nov 30, 2006 at 06:45:10PM -0500, Larry Hall (Cygwin) wrote: Bob Rossi wrote: Hi, I'm using autoconf. I notice when I use things like AC_CHECK_SIZEOF (int) that the ac_cv_sizeof_int

Re: autoconf

2006-11-30 Thread Bob Rossi
On Thu, Nov 30, 2006 at 09:45:21PM -0500, Larry Hall (Cygwin) wrote: > Bob Rossi wrote: > >On Thu, Nov 30, 2006 at 06:45:10PM -0500, Larry Hall (Cygwin) wrote: > >>Bob Rossi wrote: > >>>Hi, > >>> > >>>I'm using autoconf. I notice when I use things like > >>>AC_CHECK_SIZEOF (int) > >>>that the ac_cv

Re: autoconf

2006-11-30 Thread Larry Hall (Cygwin)
Bob Rossi wrote: On Thu, Nov 30, 2006 at 06:45:10PM -0500, Larry Hall (Cygwin) wrote: Bob Rossi wrote: Hi, I'm using autoconf. I notice when I use things like AC_CHECK_SIZEOF (int) that the ac_cv_sizeof_int has the value of "4\r". There is an extra carriage return in there. I start my configu

Re: GPGME 1.0.3 Build Problem

2006-11-30 Thread djh
Thanks for your repsonse Marcus. > From: Marcus Brinkmann (GPGME member) > From: Henman: I have run into a build problem on cygwin system. > > > > > > I am not an expert in the utilities used to build gpgme. But, wonder why a > > library seems to be missing. Could this be a command line arg

RE: Accessing ram drive as raw disk volume fails?

2006-11-30 Thread Dave Korn
On 30 November 2006 19:56, Igor Peshansky wrote: > On Thu, 30 Nov 2006, Dave Korn wrote: > >> Hi all, >> >> I'm trying to use dd to dump stuff to a usb flash drive (i.e. mass >> storage device). However something tricks it into thinking the device >> is full (/dev/sdb is the pendrive): >>

Rsync error

2006-11-30 Thread kramer27
Hi. I'm running cygwin on a win XP laptop and would like to back up my files on my Linux box. So naturally I did this: $ rsync --rsh=ssh --update --recursive --verbose . [EMAIL PROTECTED]::/mnt/5/foo ERROR: The remote path must start with a module name rsync error: error starting client-server p

Re: autoconf

2006-11-30 Thread Bob Rossi
On Thu, Nov 30, 2006 at 06:45:10PM -0500, Larry Hall (Cygwin) wrote: > Bob Rossi wrote: > >Hi, > > > >I'm using autoconf. I notice when I use things like > >AC_CHECK_SIZEOF (int) > >that the ac_cv_sizeof_int has the value of "4\r". > > > >There is an extra carriage return in there. I start my confi

Re: autoconf

2006-11-30 Thread Bob Rossi
On Thu, Nov 30, 2006 at 05:04:08PM -0500, Bob Rossi wrote: > Hi, > > I'm using autoconf. I notice when I use things like > AC_CHECK_SIZEOF (int) > that the ac_cv_sizeof_int has the value of "4\r". I narrowed it down further. It's AC_CHECKS_SIZEOF that does acgeneral.m4: fprintf(f, "%d\n", size

Re: "Connection closed by [host]" when ssh to Cygwin sshd

2006-11-30 Thread Brian Kasper
Thanks, the lack of the sshd_server user was the problem -- it's possible I deleted it accidentally after running ssh-host-config, though I *thought* I deleted that user and then ran the script, but I was never asked if I wanted to create the user. Hmm Anyway, thanks for the help. Much

Re: isnan() causes segfault

2006-11-30 Thread Lev Bishop
On 11/30/06, Lev Bishop wrote: Something for the newlib folks to deal with, I suppose. And they took my suggestion: http://sources.redhat.com/ml/newlib/2006/msg00938.html Lev -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.

Re: autoconf

2006-11-30 Thread Larry Hall (Cygwin)
Bob Rossi wrote: Hi, I'm using autoconf. I notice when I use things like AC_CHECK_SIZEOF (int) that the ac_cv_sizeof_int has the value of "4\r". There is an extra carriage return in there. I start my configure script with ./configure --build=mingw32 could that be the problem? Is there any so

Re: system account files mystery

2006-11-30 Thread Larry Hall (Cygwin)
dsacks wrote: No, that didn't occur to me - and it seems to work. How does the permission system work?! -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton R

Re: system account files mystery

2006-11-30 Thread Larry Hall (Cygwin)
dsacks wrote: fyi, this is all about trying to get sshd to accept incoming connections. I want to use winscp into my xp box to move files. I am very confused about what password sshd would use - does it use windows authentication or does it expect to find passwords in /etc/passwd? Can I choose?

Re: Help running bash scripts

2006-11-30 Thread Larry Hall (Cygwin)
Amar wrote: Dave Korn artimi.com> writes: On 22 November 2006 05:24, David Christensen wrote: Thierry wrote: running a simple sh script(test.sh): #!/bin/sh # test $ ./test.sh command not found Get this book: http://www.oreilly.com/catalog/bash3/index.html "test" is a Bash built-in

Re: "Connection closed by [host]" when ssh to Cygwin sshd

2006-11-30 Thread burning shadow
Uninstall sshd service using `cygrunsrvd -R sshd` then install it using ssh-host-config and allow script to create sshd_server user when it will ask for it. It will help. On 12/1/06, Brian Kasper <[EMAIL PROTECTED]> wrote: I am *still* having problems getting ssh and sshd to work under WinXP 200

"Connection closed by [host]" when ssh to Cygwin sshd

2006-11-30 Thread Brian Kasper
I am *still* having problems getting ssh and sshd to work under WinXP 2003 x64. I'm no longer seeing "error 1062" messages, but as of today (after I ran setup.exe to update my Cygwin install), whenever I try to ssh to localhost I immediately saw this message: Connection closed by 127.0.0.1 I

autoconf

2006-11-30 Thread Bob Rossi
Hi, I'm using autoconf. I notice when I use things like AC_CHECK_SIZEOF (int) that the ac_cv_sizeof_int has the value of "4\r". There is an extra carriage return in there. I start my configure script with ./configure --build=mingw32 could that be the problem? Is there any solution to having th

Re: system account files mystery

2006-11-30 Thread dsacks
No, that didn't occur to me - and it seems to work. How does the permission system work?! Thank you very much for the info. Dennis Andrew Louie wrote: > > dsacks calico-consulting.com> writes: > >> > >> >> wait, if I try to vi /etc/sshd_config now I cannot write it, because it >> is >>

Re: system account files mystery

2006-11-30 Thread dsacks
fyi, this is all about trying to get sshd to accept incoming connections. I want to use winscp into my xp box to move files. I am very confused about what password sshd would use - does it use windows authentication or does it expect to find passwords in /etc/passwd? Can I choose? Thanks!! ds

Re: system account files mystery

2006-11-30 Thread Andrew Louie
dsacks calico-consulting.com> writes: > > > wait, if I try to vi /etc/sshd_config now I cannot write it, because it is > owned by SYSTEM and has restrictive rights. > > How do I edit system files now? I don't really grok the permission world in > cygwin and how unixy permissions and users map

Re: revisiting: windows .lnk working in cygwin; theoretical solution

2006-11-30 Thread Benjamin Madore
On Thu, November 30, 2006 1:42 am, Linda Walsh said: > > Current problem, as I understand it is that current *nix apps wouldn't see the extra windows fields, so if tar were to dump/restore, the extra information would be lost. > This, of course, has been a pickle several times for Apple. On the App

Re: isnan() causes segfault

2006-11-30 Thread Lev Bishop
On 11/30/06, Lev Bishop wrote: On 11/30/06, Lev Bishop wrote: > On 11/30/06, Eric Lilja wrote: > > If compiled with: > > $ g++ -Wall -Wextra -std=c++98 -pedantic -g isnantest.cpp -o run > > (those are the flags we have been using in this course). > > But it doesn't stackdump if compiled simply wi

Re: Accessing ram drive as raw disk volume fails?

2006-11-30 Thread Igor Peshansky
On Thu, 30 Nov 2006, Dave Korn wrote: > Hi all, > > I'm trying to use dd to dump stuff to a usb flash drive (i.e. mass > storage device). However something tricks it into thinking the device > is full (/dev/sdb is the pendrive): > > [EMAIL PROTECTED] ~ > $ dd if=/tmp/msd-test-data.cXoEqa233

system account files mystery

2006-11-30 Thread dsacks
Hi, I've used cygwin before, but for the first time I did mkpasswd and mkgroup and got it so that when go to a cygwin prompt, my id actually shows as my windows username and I end up in /home/myusername. Woohoo. wait, if I try to vi /etc/sshd_config now I cannot write it, because it is owned by

Accessing ram drive as raw disk volume fails?

2006-11-30 Thread Dave Korn
Hi all, I'm trying to use dd to dump stuff to a usb flash drive (i.e. mass storage device). However something tricks it into thinking the device is full (/dev/sdb is the pendrive): [EMAIL PROTECTED] ~ $ dd if=/tmp/msd-test-data.cXoEqa2332 of=/dev/sdb bs=100 count=1 dd: writing `/dev/sdb

Re: isnan() causes segfault

2006-11-30 Thread Lev Bishop
On 11/30/06, Lev Bishop wrote: On 11/30/06, Eric Lilja wrote: > If compiled with: > $ g++ -Wall -Wextra -std=c++98 -pedantic -g isnantest.cpp -o run > (those are the flags we have been using in this course). > But it doesn't stackdump if compiled simply with: > $ make isnantest > g++ isnantes

Re: isnan() causes segfault

2006-11-30 Thread Lev Bishop
On 11/30/06, Eric Lilja wrote: If compiled with: $ g++ -Wall -Wextra -std=c++98 -pedantic -g isnantest.cpp -o run (those are the flags we have been using in this course). But it doesn't stackdump if compiled simply with: $ make isnantest g++ isnantest.cpp -o isnantest I was able to reprod

Re: Help running bash scripts

2006-11-30 Thread Amar
Dave Korn artimi.com> writes: > > On 22 November 2006 05:24, David Christensen wrote: > > > Thierry wrote: > >> running a simple sh script(test.sh): > >> #!/bin/sh > >> # test > > > >> $ ./test.sh > >>> command not found > > > > Get this book: > > > > http://www.oreilly.com/catalog/bash3

RE: isnan() causes segfault

2006-11-30 Thread Dave Korn
On 30 November 2006 13:26, Eric Lilja wrote: > The following program stackdumps: > #include > > int > main() > { > std::isnan(3); > } > If compiled with: > $ g++ -Wall -Wextra -std=c++98 -pedantic -g isnantest.cpp -o run > (those are the flags we have been using in this course). Can't rep

Re: Windows NTFS UCS2 characters

2006-11-30 Thread Brian Dessent
Igor Peshansky wrote: > > So you're limited to ANSI filenames in the current codepage, I think. > > Not sure what ANSI means in this context (if you meant ASCII, or 7-bit, > then the codepage reference makes no sense). If the codepage is set > correctly, Cygwin will read those files. I meant AN

Re: Windows NTFS UCS2 characters

2006-11-30 Thread Igor Peshansky
On Thu, 30 Nov 2006, Brian Dessent wrote: > John Love-Jensen wrote: > > > I can always fallback to use scripts for CMD.EXE to manipulate these > > files; but I'd rather be able to do it in my Bash shell scripts. > > > > Please don't suggest Interix, SFU or MKS alternatives. Those are fine > > pro

Re: Windows NTFS UCS2 characters

2006-11-30 Thread Brian Dessent
John Love-Jensen wrote: > I can always fallback to use scripts for CMD.EXE to manipulate these files; > but I'd rather be able to do it in my Bash shell scripts. > > Please don't suggest Interix, SFU or MKS alternatives. Those are fine > products, I'm sure, but I'm not interested. I'm afraid yo

Re: 1.5.22-1: Error by using man

2006-11-30 Thread Matthew Woehlke
Alexander Palm wrote: I have found some new clues: /bin/sh don't do anything. [snip] Any Ideas? Hmm, 'cp /bin/bash /bin/sh'? There have been quite a few scattered reports as of late of /bin/sh (which should be the same as /bin/bash) somehow getting out of sync. But that's just a WAG. -- M

Windows NTFS UCS2 characters

2006-11-30 Thread John Love-Jensen
Hi Cygwin folks, I have a Windows file on NTFS named (using \u representation): xxx_\u212B_A\u030A_\u00C5_xxx.txt # ls -alb xxx_*_xxx.txt ls: xxx_\305_A\260_\305_xxx.txt: No such file or directory Windows sees it just fine. The bash *-expansion is expanding it to /something/... just not a

[ANNOUNCEMENT] Updated: xemacs-21.4.19-2/xemacs-tags-21.4.19-2/xemacs-emacs-common-21.4.19-2

2006-11-30 Thread Dr. Volker Zell
Hi A new version of 'xemacs' has been uploaded to a server near you. DESCRIPTION: A powerful, highly customizable open source text editor and application development system CYGWIN NEWS: * Switched to cygport build framework * Fix a crash under Cygwin (X11 variant

Re: Ctrl-C and non-cygwin programs

2006-11-30 Thread Brian Dessent
Simon Marlow wrote: > Then run the program, hit Ctrl-C and see what happens. The behaviour differs > depending on the environment: > > * In a Cygwin shell started from cygwin.bat, with the CYGWIN > environment variable empty: correct behaviour, Ctrl-C is caught > and handled. > > *

Ctrl-C and non-cygwin programs

2006-11-30 Thread Simon Marlow
I'm experiencing strange behaviour with Ctrl-C with non-cygwin programs started from Cygwin bash. Take the following program: #include #include "stdio.h" static BOOL WINAPI handler(DWORD dwCtrlType) { switch (dwCtrlType) { case CTRL_C_EVENT: case CTRL_B

Re: backup privileges [was: [ANNOUNCEMENT] Updated: cygwin-1.5.22-1]

2006-11-30 Thread Igor Peshansky
On Thu, 30 Nov 2006, Corinna Vinschen wrote: > On Nov 30 09:50, Igor Peshansky wrote: > > Remember how much effort was spent trying to fix Cygwin to work for > > unprivileged users? Do you now, all of a sudden, want to break expected > > behavior for privileged users? > > I'm sorry but I really d

Re: backup privileges [was: [ANNOUNCEMENT] Updated: cygwin-1.5.22-1]

2006-11-30 Thread Corinna Vinschen
On Nov 30 16:14, Corinna Vinschen wrote: > On Nov 30 09:50, Igor Peshansky wrote: > > Remember how much effort was spent trying to fix Cygwin to work for > > unprivileged users? Do you now, all of a sudden, want to break expected > > behavior for privileged users? > > I'm sorry but I really don't

Re: backup privileges [was: [ANNOUNCEMENT] Updated: cygwin-1.5.22-1]

2006-11-30 Thread Corinna Vinschen
On Nov 30 09:50, Igor Peshansky wrote: > Remember how much effort was spent trying to fix Cygwin to work for > unprivileged users? Do you now, all of a sudden, want to break expected > behavior for privileged users? I'm sorry but I really don't understand the problem. Cygwin allows administrator

Re: isnan() causes segfault

2006-11-30 Thread Tim Prince
[EMAIL PROTECTED] wrote: Hello, I'm working as a laborations assistant in a C++ course. The students are using Sun workstations and gcc (well, g++) version 3.4.6 to do the labs. I don't particularly like these workstations so I have cygwin installed on my laptop and I use it compile and test th

Re: backup privileges [was: [ANNOUNCEMENT] Updated: cygwin-1.5.22-1]

2006-11-30 Thread Igor Peshansky
On Thu, 30 Nov 2006, Corinna Vinschen wrote: > On Nov 29 21:53, Eric Blake wrote: > [snip] > > But it does beg the question of whether it should be configurable > > whether a user WANTS to use backup privileges to bypass ACLs. It > > seems like cygwin is very often installed by users that happen

Re: cron jobs quit after 1 minute

2006-11-30 Thread Andrew Louie
G.W. Haywood jubileegroup.co.uk> writes: > Hi there, > You might find that it's trying to send you mail, and that sendmail > (or some other mail executable) isn't available. This will cause the > cron job to halt. It caught me out when I first ran cygwin. Hey!!! You're Right! I set MAILTO='

isnan() causes segfault

2006-11-30 Thread Eric Lilja
Hello, I'm working as a laborations assistant in a C++ course. The students are using Sun workstations and gcc (well, g++) version 3.4.6 to do the labs. I don't particularly like these workstations so I have cygwin installed on my laptop and I use it compile and test the student's programs. Any

Re: 1.5.22-1: Error by using man (ap)

2006-11-30 Thread Alexander Palm
Original-Nachricht Datum: Mon, 27 Nov 2006 20:10:51 +0100 Von: "Alexander Palm" <[EMAIL PROTECTED]> An: cygwin@cygwin.com Betreff: 1.5.22-1: Error by using man (ap) > Hi! > > Windows XP Professional Ver 5.1 Build 2600 Service Pack 2 > > $ cygcheck -c | grep -E "man

Re: directory permissions problem with net use

2006-11-30 Thread Corinna Vinschen
On Nov 29 17:49, Dave Sinclair wrote: > Larry Hall (Cygwin cygwin.com> writes: > > > > > Specify the user name and password to "net use"? If this is not it, we > > need 'cygcheck -srv' output, your '/etc/passwd' and '/etc/group' entries for > > 'root', and whether you ssh in with password or pu

Re: Cygwin > 1.5.18-1 fails on network and removable drives

2006-11-30 Thread Corinna Vinschen
On Nov 30 00:53, Ken Turner wrote: > Thanks for the suggestion about running strace. My home directory is accessed > as > a Windows share (drive H:) via SMB from a Unix server (TAS). Here is a typical > sequence using the latest version of all Cygwin components: > > kjt:/c cd /h > > kjt:/h echo

Re: backup privileges [was: [ANNOUNCEMENT] Updated: cygwin-1.5.22-1]

2006-11-30 Thread Corinna Vinschen
On Nov 29 21:53, Eric Blake wrote: > Corinna Vinschen cygwin.com> writes: > > - Always open files with backup/restore intent to emulate real "root" > > access. Fix access(2) accordingly. (corinna) > > This change has some interesting effects, and I think you did the right thing > by making ac

RE: cron jobs quit after 1 minute

2006-11-30 Thread G.W. Haywood
Hi there, On 29 November 2006 21:08, Andrew Louie wrote: > I want to set up a cron job [...] the script can take a long time to > finish, as it does many different tasks. > > The problem is that after about 1 minute, the script will just stop You might find that it's trying to send you mail, and