Re: Please upload: cppunit-1.12.0
On Oct 24 10:20, Ross Smith II wrote: David Rothenberger wrote On 10/24/2007 10:11 AM -0800: On 10/24/2007 10:08 AM, Ross Smith II wrote: FYI, built with: http://smithii.com/files/cygwin/cppunit/cppunit-1.12.0-1.cygport You should change your SRC_URI to: SRC_URI=mirror://sourceforge/cppunit/${P}.tar.gz The mirror: lets cygport pick a sourceforce mirror. You can also remove the *.src.patch and *.cygwin.patch files from the SRC_URI, since cygport applies those automatically if they exist. David, I *did* do that on the copy I was working from, but failed to push this revised copy up. Thanks for the heads up, Is the revised copy up in the meantime? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat
Re: Please upload: cppunit-1.12.0
Corinna Vinschen wrote On 10/25/2007 3:01 AM -0800: On Oct 24 10:20, Ross Smith II wrote: David Rothenberger wrote On 10/24/2007 10:11 AM -0800: On 10/24/2007 10:08 AM, Ross Smith II wrote: FYI, built with: http://smithii.com/files/cygwin/cppunit/cppunit-1.12.0-1.cygport You should change your SRC_URI to: SRC_URI=mirror://sourceforge/cppunit/${P}.tar.gz The mirror: lets cygport pick a sourceforce mirror. You can also remove the *.src.patch and *.cygwin.patch files from the SRC_URI, since cygport applies those automatically if they exist. David, I *did* do that on the copy I was working from, but failed to push this revised copy up. Thanks for the heads up, Is the revised copy up in the meantime? Yes, I *just* updated http://smithii.com/files/cygwin/cppunit/cppunit-1.12.0-1-src.tar.bz2 to include the corrected cppunit-1.12.0-1.cygport file. I didn't bump it to cppunit-1.12.0-2, but would be happy to do so if you want. Sorry for the mixup, -Ross
Re: [ITP] pdftk 1.41 - PDF utilities [GTG]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 David Rothenberger wrote: sdesc: PDF manipulation without Acrobat. ldesc: Pdftk allows you to manipulate PDF easily and freely. It does not require Acrobat. category: Publishing requires: cygwin libiconv2 zlib Built from sources; tried a dump_data call, seems to be working. FYI: 'exeinto /usr/bin; doexe' can be replaced by a simple 'dobin'. But that certainly doesn't need to be changed now. Thanks for the contribution. GTG. Yaakov -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHIVKupiWmPGlmQSMRCANWAJwPuZs92HZZCyVvplRUjKOzhMvO/ACg118J a5UHVf1CmXiEH+dEvrJ+jIg= =J9Du -END PGP SIGNATURE-
Re: [ITP] pdftk 1.41 - PDF utilities [GTG]
On 10/25/2007 7:36 PM, Yaakov (Cygwin Ports) wrote: FYI: 'exeinto /usr/bin; doexe' can be replaced by a simple 'dobin'. But that certainly doesn't need to be changed now. Thanks. I'll make that change for the next release. Thanks for the contribution. GTG. Thanks for the review. -- David Rothenberger [EMAIL PROTECTED] It might help if we ran the MBA's out of Washington. -- Admiral Grace Hopper
Re: xemacs
Ronald Smith wrote: I have cygwin installed on my XP machine along with the x-server and the Singular version of xemacs. I am trying to get my scroll wheel to work with xemacs, but I simply cannot get it to work. The following works for me: (mwheel-install) Regards, Vin Shelton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: who should own the /bin directory?
--- Jerome Fong ha scritto: I'm trying to login as another person, but using su tells me I don't have permissions to use bash. Using login gives me errors about no home directory and no permissions to use bash. su does not work. See FAQ chapter 4 thanks, regards ___ L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Fwd: Unable to install pdftk
Santhosh Kumar Yedidi wrote: But where will I find the command. Because I found pdftk.exe to be in the same directory where I ran the Make command. Move it in /usr/local/bin. But now there is this: http://cygwin.com/ml/cygwin-apps/2007-10/msg00042.html So I think that PDFTK will be a new Cygwin package. Perhaps you should wait some (hours) days! Angelo -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: who should own the /bin directory?
Marco Atzeri wrote: --- Jerome Fong ha scritto: I'm trying to login as another person, but using su tells me I don't have permissions to use bash. Using login gives me errors about no home directory and no permissions to use bash. su does not work. See FAQ chapter 4 Yes, it works. Have you tried it? About the original problem, su is not a login, better try 'ssh [EMAIL PROTECTED]' if you have sshd running, the first time the other-user does login his home directory will be created. Of course that means that the user was created first in Windows and added to the users recognized by Cygwin (using mkpasswd ...). An unknown user has no permissions on any directory. -- René Berber -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
iostream with gcc
I apologize for what is probably a silly mistake on my part. I am just starting to use cygwin. When I tried a simple program #include iostream using namespace std; /** * A simple program for demonstrating the basics of a C++ project. */ int main() { cout Hello, world; cout endl; return 0; } with $ gcc hello.cc I got the following error message /cygdrive/c/Users/PB2579~1/AppData/Local/Temp/cc7nz7Xj.o:hello.cc:(.text+0xd): undefined reference to `std::basic_stringchar, std::char_traitschar, std::allocatorchar ::size() const' /cygdrive/c/Users/PB2579~1/AppData/Local/Temp/cc7nz7Xj.o:hello.cc:(.text+0x60): undefined reference to `std::basic_stringchar, std::char_traitschar, std::allocatorchar ::operator[](unsigned int) const' /cygdrive/c/Users/PB2579~1/AppData/Local/Temp/cc7nz7Xj.o:hello.cc:(.text+0x9f): undefined reference to `std::basic_stringchar, std::char_traitschar, std::allocatorchar ::operator[](unsigned int) const' /cygdrive/c/Users/PB2579~1/AppData/Local/Temp/cc7nz7Xj.o:hello.cc:(.text+0xce): undefined reference to `std::basic_stringchar, std::char_traitschar, std::allocatorchar ::operator[](unsigned int) const' /cygdrive/c/Users/PB2579~1/AppData/Local/Temp/cc7nz7Xj.o:hello.cc:(.text+0x135): undefined reference to `std::cout' /cygdrive/c/Users/PB2579~1/AppData/Local/Temp/cc7nz7Xj.o:hello.cc:(.text+0x13a): undefined reference to `std::basic_ostreamchar, std::char_traitschar std::operator std::char_traitschar (std::basic_ostreamchar, std::char_traitschar , char const*)' /cygdrive/c/Users/PB2579~1/AppData/Local/Temp/cc7nz7Xj.o:hello.cc:(.text+0x142): undefined reference to `std::basic_ostreamchar, std::char_traitschar std::endlchar, std::char_traitschar (std::basic_ostreamchar, std::char_traitschar )' /cygdrive/c/Users/PB2579~1/AppData/Local/Temp/cc7nz7Xj.o:hello.cc:(.text+0x149): undefined reference to `std::cout' /cygdrive/c/Users/PB2579~1/AppData/Local/Temp/cc7nz7Xj.o:hello.cc:(.text+0x14e): undefined reference to `std::basic_ostreamchar, std::char_traitschar ::operator(std::basic_ostreamchar, std::char_traitschar (*)(std::basic_ostreamchar, std::char_traitschar ))' /cygdrive/c/Users/PB2579~1/AppData/Local/Temp/cc7nz7Xj.o:hello.cc:(.text+0x177): undefined reference to `std::ios_base::Init::Init()' /cygdrive/c/Users/PB2579~1/AppData/Local/Temp/cc7nz7Xj.o:hello.cc:(.text+0x192): undefined reference to `std::ios_base::Init::~Init()' collect2: ld returned 1 exit status -- 00 O O o o... 0 ___ __ _ ][_n_i_|( |_ | | | 6 Arncliffe Mews | | pml1 | ( _| ||| | Peter M Lee | |Alma Terrace| | @york.ac.uk | _||_|___|_|||_|_|_|___York__YO10_4EL___|_|+44_1904_654200| o 0--0 ooo o-o o-o ooo +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: iostream with gcc
Peter M Lee wrote: I apologize for what is probably a silly mistake on my part. I am just starting to use cygwin. When I tried a simple program Silly perhaps, but very common. $ gcc hello.cc The correct way to compile/link C++ code is by invoking g++ not gcc. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: iostream with gcc
On 25 October 2007 10:14, Peter M Lee wrote: I apologize for what is probably a silly mistake on my part. I am just starting to use cygwin. When I tried a simple program #include iostream using namespace std; /** * A simple program for demonstrating the basics of a C++ project. */ int main() { cout Hello, world; cout endl; return 0; } with $ gcc hello.cc I got the following error message /cygdrive/c/Users/PB2579~1/AppData/Local/Temp/cc7nz7Xj.o:hello.cc:(.text+0xd): undefined reference to `std::basic_stringchar, std::char_traitschar, std::allocatorchar ::size() const' Use 'g++' to compile c++ programs, not 'gcc'. Although they both are ver similar drivers that invoke the sub-parts of the toolchain (compiler, assembler, linkers), and in fact either one can recognize the extension of a file and pass it to the right language version of the compiler, the g++ driver also knows to add the appropriate -L and -l options for linking against the standard C++ libraries automatically. cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: iostream with gcc
On 25 October 2007 10:49, Peter M Lee wrote: Please keep it on the list, Peter. http://cygwin.com/acronyms#PPIOSPE explains why that's a good thing. Re-directed. The result of using g++ is $ g++ hello.cc $ in other words nothing is output to the terminal - Peter M Lee That isn't any old nothing, that's specifically a no error message kind of nothing. Nothing was output to the terminal, but a file called 'a.exe' was output to the current directory. Type echo $? to see the exit status of the gcc command: /artimi/chips/earn/block/rom $ g++ hello.cc /artimi/chips/earn/block/rom $ echo $? 0 /artimi/chips/earn/block/rom $ ./a.exe Hello, world /artimi/chips/earn/block/rom $ cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: strange select() and recvfrom() behaviour
On Oct 24 19:31, Marcell Missura wrote: Hi, actually you were right, I was a bit too quick with my extract. It didn't contain an important line. I'm also sending out stuff through that socket. So here it goes, you can copy paste and compile this. Maybe you were also a little quick with your code. You don't really test what's going on, so your code is going crazy. What happens is that you call send() all the time if there's nothing to read. When nothing has been read so far, you call send() with a random value for the peer address, which results in some arbitrary errno (which you never test), in my case EAFNOSUPPORT. After you called recvfrom() for the first time, you call send() subsequently with the last peer address you got from recvfrom(). This works fine as long as the peer doesn't close the connection. After the peer closed the connection, send() returns with 0 (EOF, which you never test). However, the next select *has* something on the socket, which is an error message. recvfrom() returns with -1 and errno (which you never test) set to ECONNRESET. The next time select is called, it does *not* return with -1, but with 0, a simple timeout. So send() is called with the same old peer address again. It returns 0 (EOF, which you never test), thus resulting in select again having something to say on the socket. Again you get an errno of ECONNRESET (which you never test) from recvfrom(), and the game goes on ad infinitum. The fact that select() returns with a readable socket and the recvfrom function returning ECONNRESET is covered by SUSv3(*), even though this does not happen on Linux: [ECONNRESET] A connection was forcibly closed by a peer. MSDN(**) has the following to say in the ECONNRESET case: WSAECONNRESET The virtual circuit was reset by the remote side executing a hard or abortive close. The application should close the socket; it is no longer usable. On a UDP-datagram socket this error indicates a previous send operation resulted in an ICMP Port Unreachable message. There is a way to disable this behaviour(***), at least on W2K, but the better approach would be to fix your code, IMHO. Corinna (*) http://www.opengroup.org/onlinepubs/009695399/functions/recvfrom.html (**) http://msdn2.microsoft.com/en-us/library/ms740120.aspx (***) http://support.microsoft.com/kb/263823 -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: ls much slower on Vista
Thanks for the pointer - it turns out Symantec AntiVirus is the culprit. If I disable File System Auto-Protect then time /bin/ls -l /usr/bin goes down from 2 seconds to about 0.3s, which is now perfectly usable. Oddly, I also have Symantec AntiVirus on my WinXP machine where performance is far better. However, this is an older version of the AntiVirus software which refuses to upgrade via LiveUpdate, so I'm not sure if the massive AntiVirus slowdown is due to the later version or the fact that it's running on Vista. Interestingly, though, time cmd /c dir on Vista is much less affected by the AntiVirus software - when enabled the time is 0.18s, and when disabled 0.10s. So I guess cygwin ls -l is doing many more file system operations than dir. The following page indicates that virus checkers can make disk access over 2000% slower: http://www.codinghorror.com/blog/archives/000803.html --- John. -Original Message- From: Steven Hartland [mailto:[EMAIL PROTECTED] Sent: 25 October 2007 02:01 To: John Cooper; cygwin@cygwin.com Cc: John Cooper Subject: Re: ls much slower on Vista Do you have any antivirus on the Vista machine? - Original Message - From: John Cooper Any ideas what might be causing the slowdown and how I might avoid it? This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to [EMAIL PROTECTED] -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: iostream with gcc
[ Reply to the mailing list, not to me. ] Peter M Lee wrote: The result of using g++ is $ g++ hello.cc $ in other words nothing is output to the terminal - Peter M Lee Yes. That is the correct behavior. What were you expecting? You should see an executable in the current directory that is the result of compiling the code. Use -o to name the output filename explicitly. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: who should own the /bin directory?
--- René Berber ha scritto: Marco Atzeri wrote: --- Jerome Fong ha scritto: I'm trying to login as another person, but using su tells me I don't have permissions to use bash. Using login gives me errors about no home directory and no permissions to use bash. su does not work. See FAQ chapter 4 Yes, it works. Have you tried it? Yes. it does not work. I suspect for the old reason: http://www.cygwin.com/ml/cygwin/2003-06/msg00897.html About the original problem, su is not a login, better try 'ssh [EMAIL PROTECTED]' if you have sshd running, the first time the other-user does login his home directory will be created. Of course that means that the user was created first in Windows and added to the users recognized by Cygwin (using mkpasswd ...). An unknown user has no permissions on any directory. -- René Berber I agree that ssh is the right way to solve the problem. :-) Regards Marco ___ L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: iostream with gcc
Thanks, and I will keep it to the list in future - Peter M Lee On Oct 25 2007, Dave Korn wrote: On 25 October 2007 10:49, Peter M Lee wrote: Please keep it on the list, Peter. http://cygwin.com/acronyms#PPIOSPE explains why that's a good thing. Re-directed. The result of using g++ is $ g++ hello.cc $ in other words nothing is output to the terminal - Peter M Lee That isn't any old nothing, that's specifically a no error message kind of nothing. Nothing was output to the terminal, but a file called 'a.exe' was output to the current directory. Type echo $? to see the exit status of the gcc command: /artimi/chips/earn/block/rom $ g++ hello.cc /artimi/chips/earn/block/rom $ echo $? 0 /artimi/chips/earn/block/rom $ ./a.exe Hello, world /artimi/chips/earn/block/rom $ cheers, DaveK -- 00 O O o o... 0 ___ __ _ ][_n_i_|( |_ | | | 6 Arncliffe Mews | | pml1 | ( _| ||| | Peter M Lee | |Alma Terrace| | @york.ac.uk | _||_|___|_|||_|_|_|___York__YO10_4EL___|_|+44_1904_654200| o 0--0 ooo o-o o-o ooo +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: who should own the /bin directory?
Marco Atzeri wrote: [snip] Yes, it works. Have you tried it? Yes. it does not work. Works fine for me: $ id uid=1006(rberber) gid=545(Users) groups=513(None),544(Administrators),545(Users),544(Administrators),1019(vcusr) $ su jabel $ id uid=1016(jabel) gid=545(Users) groups=513(None),545(Users),1019(vcusr) -- René Berber -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: strange select() and recvfrom() behaviour
Maybe you were also a little quick with your code. You don't really test what's going on, so your code is going crazy. It demonstrates the difference in the behaviour of this select(), recvfrom(), send() construct under linux and windows fairly well doesn't it. I apologize if my unsophisticated skills are causing you extra trouble and work, but I hope you don't mind me pointing at this issue and wonder where it's coming from. recvfrom() returns with -1 and errno (which you never test) set to ECONNRESET. Just to add my humble two cents, I find the behaviour on linux more intuitive, because there is no connection when you use UDP so I don't see what connection could have been reset. I also find it weird that after an error occured select() returns and tells you that the socket has something to _read_. After reading the documentation I thought this is what the error fd_set was there for. Marcell -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Python for Cygwin
Dear Sirs, I'm a new Cygwin user. I'm running Cygwin on my PC (mounting Windows XP Professional). I need to run a little Python script on my Cygwin shell. What have I to do? I guess I've to install Python on my PC. In which way have to do it? In which path? Have I to install it under Cygwin? Please let me know. Thanks Lorenzo Corgnati -- Ing. Lorenzo Corgnati DELEN - Dipartimento di Elettronica Politecnico di Torino Corso Duca degli Abruzzi, 24 - 10129 Torino Tel. +39 011 5644105 Mob.: +39 3495424820 Fax: +39 011 5644200 E-mail: [EMAIL PROTECTED] url: www.remotesensinggroup.polito.it -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: strange select() and recvfrom() behaviour
On Oct 25 15:06, Marcell Missura wrote: I also find it weird that after an error occured select() returns and tells you that the socket has something to _read_. That's documented standard behaviour. I pointed this out in my first reply. If you're still learning socket programming I'd like to suggest this book: http://www.amazon.com/Unix-Network-Programming-Vol-Networking/dp/0131411551/ref=sr_1_1/102-9342001-5959348?ie=UTF8s=booksqid=1193321471sr=8-1 It's the socket bible, sort of. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Python for Cygwin
On 25 October 2007 14:17, Lorenzo.Corgnati wrote: Dear Sirs, I'm a new Cygwin user. I'm running Cygwin on my PC (mounting Windows XP Professional). I need to run a little Python script on my Cygwin shell. What have I to do? I guess I've to install Python on my PC. In which way have to do it? In which path? Have I to install it under Cygwin? Just run setup.exe again and set it to install on the package chooser. Python is in the Python category. Setup will install it to the correct location automatically and all you have to do after that is type python scriptname at a shell prompt. (Or make sure the first line of the script says #!python and the script has the +x flag set, and then you can just run it directly by name at the bash prompt, subject to the usual rules about $PATH). cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Replying to messages
Brian Dessent wrote: Use the web archive's raw text link to get an mbox copy[1] that you can import into your email program and reply to. [1] This will not be a valid mbox format as addresses are munged. You can undo this by hand or automatically by adding the skipmung parameter. Brian You said too much or too little here. I do have a partial local copy of the archives. But the [mbox-formatted archive (xxx Kbytes)] link is gone and there is no such thing as ftp://cygwin.com/pub/cygwin/mail-archives/ (or any /cygwin/mail-archives/ directory on the mirror I use [mirrors.kernel.org]). And I never heard of skipmung. Sylvain -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Replying to messages
On 25 October 2007 15:26, Sylvain RICHARD wrote: Brian Dessent wrote: Use the web archive's raw text link to get an mbox copy[1] that you can import into your email program and reply to. [1] This will not be a valid mbox format as addresses are munged. You can undo this by hand or automatically by adding the skipmung parameter. Brian You said too much or too little here. I do have a partial local copy of the archives. But the [mbox-formatted archive (xxx Kbytes)] link is gone and there is no such thing as ftp://cygwin.com/pub/cygwin/mail-archives/ (or any /cygwin/mail-archives/ directory on the mirror I use [mirrors.kernel.org]). It just got removed the other day. See http://sourceware.org/ml/overseers/2007-q3/threads.html#00112 and related. And I never heard of skipmung. You never heard of Skipmung? Skipmung? Skipmung the bush kangahippo? cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Unable to access file from shell script (XP configure problem?)
Hello -- I am trying to get Cygwin running under Windows XP and am running into a problem with file access. I'm getting No such file or directory errors when running some 3rd party shell scripts, and have narrowed the problem down to what I think is a Cygwin config problem on my system. Specifically, shell scripts don't appear to be able to read files based on filenames passed in as commandline parameters. I've narrowed this down to a minimal shell script that reproduces the problem, which I've named buggy.sh as shown in this trace: [EMAIL PROTECTED] /cygdrive/c/Downloads $ pwd /cygdrive/c/Downloads [EMAIL PROTECTED] /cygdrive/c/Downloads $ cat buggy.sh #!/bin/sh echo Hello $@ cat $@ echo Bye! [EMAIL PROTECTED] /cygdrive/c/Downloads $ cat /cygdrive/c/Downloads/ramon.txt alpha beta delta gamma [EMAIL PROTECTED] /cygdrive/c/Downloads $ ./buggy.sh /cygdrive/c/Downloads/ramon.txt Hello /cygdrive/c/Downloads/ramon.txt : No such file or directoryramon.txt Bye! [EMAIL PROTECTED] /cygdrive/c/Downloads $ There are no spaces in the filename and I'm using POSIX paths, so I don't think that's the issue. I can clearly find and view the file from the commandline so I don't think it is an access control or volume mount problem in the Cygwin environment. The shell script itself sees the command-line parameter (echo works) but the subsequent cat command fails with a No such file or directory error. The thing that looks particular odd is the error message: : No such file or directoryramon.txt which looks like it is an error message that overwrote the /cygdrive/c/Downloads/ramon.txt pathname. Any suggestions on where to hunt further for a resolution? I'm running Windows XP Professional Ver 5.1 SP2; per http://cygwin.com/problems.html I have attached a cygcheck dump to this email. Thanks! Ramon Cygwin Configuration Diagnostics Current System Time: Thu Oct 25 09:03:13 2007 Windows XP Professional Ver 5.1 Build 2600 Service Pack 2 Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\cygwin\usr\X11R6\bin c:\Python25\scripts\ c:\Python25\ c:\Program Files\Java\jdk1.6.0_02\bin c:\oracle\ora92\bin c:\Program Files\Oracle\jre\1.3.1\bin c:\Program Files\Oracle\jre\1.1.8\bin c:\WINDOWS\system32 c:\WINDOWS c:\WINDOWS\System32\Wbem c:\Program Files\Microsoft SQL Server\90\Tools\binn\ c:\Program Files\GnuWin32\bin\ c:\Program Files\QuickTime\QTSystem\ c:\PROGRA~1\ATT\Graphviz\bin c:\Program Files\pandoc Output from C:\cygwin\bin\id.exe (nontsec) UID: 11017(felciano)GID: 10545(mkgroup-l-d) 0(root) 544(Administrators) 545(Users) 10545(mkgroup-l-d) Output from C:\cygwin\bin\id.exe (ntsec) UID: 11017(felciano)GID: 10545(mkgroup-l-d) 0(root) 544(Administrators) 545(Users) 10545(mkgroup-l-d) SysDir: C:\WINDOWS\system32 WinDir: C:\WINDOWS USER = 'felciano' PWD = '/cygdrive/c/Downloads' CYGWIN = 'tty' HOME = '/cygdrive/c/Documents and Settings/felciano' MAKE_MODE = 'unix' HOMEPATH = '\Documents and Settings\felciano' MANPATH = '/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man' APPDATA = 'C:\Documents and Settings\felciano\Application Data' HOSTNAME = 'DURFELCIANO2' TERM = 'cygwin' PROCESSOR_IDENTIFIER = 'x86 Family 15 Model 4 Stepping 7, GenuineIntel' WINDIR = 'C:\WINDOWS' OLDPWD = '/cygdrive/c' USERDOMAIN = 'INGENUITY' OS = 'Windows_NT' ALLUSERSPROFILE = 'C:\Documents and Settings\All Users' !:: = '::\' TEMP = '/cygdrive/c/DOCUME~1/felciano/LOCALS~1/Temp' COMMONPROGRAMFILES = 'C:\Program Files\Common Files' QTJAVA = 'C:\Program Files\Java\jre1.6.0_01\lib\ext\QTJava.zip' USERNAME = 'felciano' PROCESSOR_LEVEL = '15' FP_NO_HOST_CHECK = 'NO' SYSTEMDRIVE = 'C:' JAVA_HOME = 'C:\Program Files\Java\jdk1.6.0_01\' USERPROFILE = 'C:\Documents and Settings\felciano' CLIENTNAME = 'Console' PS1 = '\[\e]0;[EMAIL PROTECTED] \[\e[33m\]\w\[\e[0m\]\n\$ ' LOGONSERVER = '\\MPDC1' PROCESSOR_ARCHITECTURE = 'x86' !C: = 'C:\cygwin\bin' SHLVL = '1' USERDNSDOMAIN = 'NT.INGENUITY.COM' PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' HOMEDRIVE = 'C:' PROMPT = '$P$G' COMSPEC = 'C:\WINDOWS\system32\cmd.exe' TMP = '/cygdrive/c/DOCUME~1/felciano/LOCALS~1/Temp' SYSTEMROOT = 'C:\WINDOWS' PRINTER = '\\mpdc2\Kpp2 - HP LaserJet 5500 Series PCL' CVS_RSH = '/bin/ssh' PROCESSOR_REVISION = '0407' CLASSPATH = '.;C:\Program Files\Java\jre1.6.0_01\lib\ext\QTJava.zip' INFOPATH = '/usr/local/info:/usr/share/info:/usr/info:' PROGRAMFILES = 'C:\Program Files' NUMBER_OF_PROCESSORS = '2' SESSIONNAME = 'Console' COMPUTERNAME = 'DURFELCIANO2' SONICCENTRAL = 'C:\Program Files\Common Files\Sonic Shared\Sonic
RE: Unable to access file from shell script (XP configure problem?)
Ramon Felciano wrote: : No such file or directoryramon.txt which looks like it is an error message that overwrote the /cygdrive/c/Downloads/ramon.txt pathname. Your shell script as CRLF-ending lines, while cygwin uses \n-ending lines. The shell considers the CR at the end of script line 'cat $@' as being part of the file name: there is no such file and the error message is overwritten at display time. A solution is to convert your script using dos2unix -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Unable to access file from shell script (XP configure problem?)
On 25 October 2007 17:52, Ramon Felciano wrote: Specifically, shell scripts don't appear to be able to read files based on filenames passed in as commandline parameters. Heh. Actually, shell scripts are entirely able to read files, based on any filename you pass in whatsoever - ... [EMAIL PROTECTED] /cygdrive/c/Downloads $ ./buggy.sh /cygdrive/c/Downloads/ramon.txt Hello /cygdrive/c/Downloads/ramon.txt No such file or directoryramon.txt Bye! [EMAIL PROTECTED] /cygdrive/c/Downloads ... - even filenames with a CR in them. And bash correctly reports that you do not have a file called cygdrive/c/Downloads/ramon.txt^M on your disk, although that ^M (CR with no LF) causes the error message to overwrite itself a bit. There are no spaces in the filename and I'm using POSIX paths, so I don't think that's the issue. I can clearly find and view the file from the commandline so I don't think it is an access control or volume mount problem in the Cygwin environment. The shell script itself sees the command-line parameter (echo works) but the subsequent cat command fails with a No such file or directory error. The thing that looks particular odd is the error message: No such file or directoryramon.txt which looks like it is an error message that overwrote the /cygdrive/c/Downloads/ramon.txt pathname. CR at the end. That's the definitive symptom. Any suggestions on where to hunt further for a resolution? Where did the CR actually come from? It came from here: $ cat buggy.sh #!/bin/sh echo Hello $@ cat $@ ^ If you've got CRLF lineendings in that script, that line actually looks bash (which, being unixy, only expects LF line endings) like this: cat $@^Mend-of-line so once $@ is substituted (and quote removal applied), you have: cat /cygdrive/c/Downloads/ramon.txt^M The solution is to run d2u on buggy.sh, or don't use notepad/wordpad to create it, use vi/emacs/any other editor that can generate LF-only line endings. Also, see any of the recent release ANNOUNCEments in the cygwin-announce list archive for a couple of other options (set -oo igncr etc.). cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: bash: fork: Permission denied -- how can I fix this?
Dave Korn wrote: On 19 September 2007 23:28, James Adams wrote: I fixed the problem by installing into another directory other than C:\cygwin. I have no idea why this fixes the problem, but probably it has something to do with security packages installed on the computer (it's a new work laptop which appears to have several security related programs installed on it by corporate IT). --James It might be worth checking the http://cygwin.com/acronyms#BLODA. I owe Cygwin 1 FAQ entry for this, in the meantime the latest version of the list can be seen at http://cygwin.com/ml/cygwin-talk/2007-q3/msg00174.html cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ Hi, I had this same error, and recovered by moving c:\cygwin to c:\cygwin.some_other_name, then reinstalling the entire cygwin pretty much as I had it before. So, in my case at least it doesn't seem to be security; just a reinstall from scratch type of thing. I had noticed that for the past few weeks, it had been taking longer to bring up a cygwin bash window than before; otherwise it appeared to be fine. Now, the bash shell comes up instantly as it had prior to a few weeks ago (so, this oddity is now gone too). What I had done during those weeks was, gradually install a few packages that I hadn't previously (ssh, ccrypt, probably a few others I can't remember). The twist was, I do this (download and install) on two machines. The cygwin install directory is on a portable hard drive; as I download new packages to it on a couple different machines, I install them on both machines as I reconnect the drive to them. Oh, also, this installation folder is Really Old; probably at least 3 years old (and I've upgraded it to new cygwin versions at least twice). My version info from cygcheck --sysinfo is: 1830k 2007/01/31 C:\cygwin\bin\cygwin1.dll Cygwin DLL version info: DLL version: 1.5.24 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 156 Shared data: 4 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix: cygdrive prefix Cygdrive default prefix: Build date: Wed Jan 31 10:57:51 CET 2007 CVS tag: cr-0x5f1 Shared id: cygwin1S4 Anyhow, I figure that something went bad; reinstalling has fixed. Going on my merry way. -- View this message in context: http://www.nabble.com/bash%3A-fork%3A-Permission-deniedhow-can-I-fix-this--tf4483481.html#a13416443 Sent from the Cygwin list mailing list archive at Nabble.com. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Unable to access file from shell script (XP configure problem?)
Perfect -- this did the trick! Thank you all for your quick responses! Ramon -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Monnerat Sent: Thursday, October 25, 2007 10:04 AM To: cygwin@cygwin.com Subject: RE: Unable to access file from shell script (XP configure problem?) Ramon Felciano wrote: : No such file or directoryramon.txt which looks like it is an error message that overwrote the /cygdrive/c/Downloads/ramon.txt pathname. Your shell script as CRLF-ending lines, while cygwin uses \n-ending lines. The shell considers the CR at the end of script line 'cat $@' as being part of the file name: there is no such file and the error message is overwritten at display time. A solution is to convert your script using dos2unix -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ + This email message (and any attached document) contains information from Ingenuity Systems Inc. which may be considered confidential by Ingenuity, or which may be privileged or otherwise exempt from disclosure under law, and is for the sole use of the individual or entity to whom it is addressed. Any other dissemination, distribution or copying of this message is strictly prohibited. If you receive this message in error, please notify me and destroy the attached message (and all attached documents) immediately. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Unable to run sshd as service in vista home basic
Hello, I have been unable to start sshd as a service with a Vista Home Basic installation. It works fine for my Vista Premium install, and several XP Pro installations. Have you heard of any Vista Home Basic issues? I have installed cygwin as an administrator and use the supplied ssh-host-config script. I receive several different errors, 1062 and 1069 being most common. I have tried with and without privilege separation. Running sshd -d - d -d -D indicates that /var/empty must be owned by root and not group or world-writable - as far as I can tell, ssh-host-config should have set those permissions correctly. Changing them myself with chmod or through Vista does not seem to fix the problem, although it is entirely possible that I have the wrong permissions set. Thanks for any help, Bing -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Unable to run sshd as service in vista home basic
Bing Ho wrote: Hello, I have been unable to start sshd as a service with a Vista Home Basic installation. It works fine for my Vista Premium install, and several XP Pro installations. Have you heard of any Vista Home Basic issues? I have installed cygwin as an administrator and use the supplied ssh-host-config script. I receive several different errors, 1062 and 1069 being most common. I have tried with and without privilege separation. Running sshd -d - d -d -D indicates that /var/empty must be owned by root and not group or world-writable - as far as I can tell, ssh-host-config should have set those permissions correctly. Changing them myself with chmod or through Vista does not seem to fix the problem, although it is entirely possible that I have the wrong permissions set. # net helpmsg 1069 The service did not start due to a login failure. Sounds like the user that's running the service is not authorized for your machine. How did you configure it? There is no 'root' in Windows. The user you're looking for is either 'SYSTEM' or, if you configured ssh-host-config this way, 'sshd_server'. You may find comparing your installation and configuration of your Vista Premium and/or XP installations to your Vista Home Basic helpful. Last, and most certainly not least, if you're still having trouble: Problem reports: http://cygwin.com/problems.html -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/