Re: [patch] un-NT-ify cygcheck (was: cygwin 1.5.25-7: cygcheck does not work?)
On Mon, Jan 07, 2008 at 08:12:32AM -0500, Christopher Faylor wrote: On Mon, Jan 07, 2008 at 02:11:02PM +0100, Corinna Vinschen wrote: Hi Chris, On Dec 23 10:28, Corinna Vinschen wrote: On Dec 22 11:08, Christopher Faylor wrote: On Sat, Dec 22, 2007 at 10:48:51AM +0100, Corinna Vinschen wrote: On Dec 20 19:35, Brian Dessent wrote: Christopher Faylor wrote: Unless Corinna says differently, I think she wants to be in control of what goes into the branch so I don't want to suggest that you should check it in there too. Okay, I'll let her take care of the branch since she's been handling all the releases from it. Please check it in to the branch. I guess it might be a good idea to release a 1.5.27-8 at one point. I'll be more or less unavailable the next two weeks but perhaps I can release a new version over christmas. I have some pipe-related patches that probably should go into the branch too, FYI. I'm just waiting for word that they fix a reported problem. Ok, I'll wait. No worries. Did you get feedback about your change? No. I had some email problems in the last month so I'm resyncing with the people who would be testing. I'm waiting for feedback now... cgf
Re: problem message when I start Cygwin bash shell
* Rakun (Thu, 10 Jan 2008 11:57:46 -0800 (PST)) When I start Cygwin bash shell, I get the folowing message: C:\cygwin\bin\bash.exe (740): *** couldn't allocate cygwin heap, Win32 error 0, base 0xA1, top 0xA19000, reserve_size 36864, allocsize 36864, page_const 409 6 4 [main] bash 1072 sync_with_child: child 740(0x114) died before initializ ation with status code 0x1 208 [main] bash 1072 sync_with_child: *** child state waiting for longjmp bash: fork: Resource temporarily unavailable Disable any Antivirus software and run rebaseall. You might have to install rebase before that. Thorsten -- 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: [BUG?] run.exe and pdflatex
On Jan 10 23:57, Igor Peshansky wrote: On Fri, 11 Jan 2008, Sven Köhler wrote: So the question is: who does all the checks (shebang, etc.)? - the execve implementation? (which is cygwin, right?) - the shell? - both? The shell. Igor Cygwin's exec(3) calls have shebang magic builtin as described in http://www.opengroup.org/onlinepubs/009695399/functions/exec.html 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: problem message when I start Cygwin bash shell
On 11 January 2008 08:42, Thorsten Kampe wrote: * Rakun (Thu, 10 Jan 2008 11:57:46 -0800 (PST)) When I start Cygwin bash shell, I get the folowing message: C:\cygwin\bin\bash.exe (740): *** couldn't allocate cygwin heap, Win32 error 0, base 0xA1, top 0xA19000, reserve_size 36864, allocsize 36864, page_const 409 6 4 [main] bash 1072 sync_with_child: child 740(0x114) died before initializ ation with status code 0x1 208 [main] bash 1072 sync_with_child: *** child state waiting for longjmp bash: fork: Resource temporarily unavailable Disable any Antivirus software and run rebaseall. You might have to install rebase before that. Thorsten Just for the avoidance of confusion: by run rebaseall, Thorsten means to imply that you should read the details in /usr/share/doc/Cygwin/rebase-2.4.3.README and carefully follow the three step procedure under Usage. 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/
1.5.25-7: make -v command does not work
Hello, I cannot make the make command to work in cygwin. When I type make -v to get its version number it returns nothing, it simply goes back to the command prompt as shown below. bash-3.2$ make -v bash-3.2$ I would appreciate any suggestion on what I can do to get it to work please. I've enclosed the output from cygcheck -r -s -v. I've also googled the problem, looked at the cygwin mailing list archives and read the documentation with no success. Other commands such as gcc --version work. I also have the same problem with perl in cygwin but I'll deal with that later. Let me know if you need any more information. Thanks, Rade == Innoval Technology Limited Registration Number: 4583982 in England and Wales VAT Number: GB 811 9811 35 Cygwin Configuration Diagnostics Current System Time: Fri Jan 11 09:10:48 2008 Windows XP Professional Ver 5.1 Build 2600 Service Pack 2 Path: C:\cygwin\bin C:\Program Files\Microsoft Visual Studio\Common\Tools C:\Program Files\Microsoft Visual Studio\Common\Msdev98\BIN C:\Program Files\Microsoft Visual Studio\DF98\BIN C:\Program Files\Microsoft Visual Studio\VC98\BIN C:\WINDOWS\system32 C:\WINDOWS C:\WINDOWS\System32\Wbem C:\Program Files\Common Files\Adaptec Shared\System C:\Program Files\ATI Technologies\ATI Control Panel c:\pacific\bin . C:\Program Files\Common Files\GTK\2.0\bin C:/DJGPP/bin . Output from C:\cygwin\bin\id.exe (nontsec) UID: 400(OgnjanovicR) GID: 401(mkpasswd) 401(mkpasswd) Output from C:\cygwin\bin\id.exe (ntsec) UID: 400(OgnjanovicR) GID: 401(mkpasswd) 401(mkpasswd) SysDir: C:\WINDOWS\system32 WinDir: C:\WINDOWS PWD = '/usr/bin' CYGWIN = 'tty' HOME = '/cygdrive/c/Documents and Settings/ognjanovicr' HOMEPATH = '\Documents and Settings\ognjanovicr' APPDATA = 'C:\Documents and Settings\ognjanovicr\Application Data' TERM = 'cygwin' PROCESSOR_IDENTIFIER = 'x86 Family 6 Model 8 Stepping 6, GenuineIntel' WINDIR = 'C:\WINDOWS' USERDOMAIN = 'INNOVALTEC' OS = 'Windows_NT' ALLUSERSPROFILE = 'C:\Documents and Settings\All Users' !:: = '::\' TEMP = '/cygdrive/c/DOCUME~1/OGNJAN~1/LOCALS~1/Temp' COMMONPROGRAMFILES = 'C:\Program Files\Common Files' LIB = 'C:\Program Files\Microsoft Visual Studio\DF98\IMSL\LIB;C:\Program Files\Microsoft Visual Studio\DF98\LIB;C:\Program Files\Microsoft Visual Studio\VC98\LIB' VNI_F90_MSG = 'C:\Program Files\Microsoft Visual Studio\DF98\IMSL\MESSAGE' USERNAME = 'OgnjanovicR' PROCESSOR_LEVEL = '6' CPU = 'i386' FP_NO_HOST_CHECK = 'NO' SYSTEMDRIVE = 'C:' LSFORCEHOST = 'fea1.innovaltec.com' USERPROFILE = 'C:\Documents and Settings\ognjanovicr' CLIENTNAME = 'Console' LOGONSERVER = '\\INNOVALSRV01' PROCESSOR_ARCHITECTURE = 'x86' !C: = 'C:\cygwin\bin' SHLVL = '1' USERDNSDOMAIN = 'INNOVALTEC.COM' PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' HOMEDRIVE = 'C:' PROMPT = '$P$G' COMSPEC = 'C:\WINDOWS\system32\cmd.exe' ADINAHOME = 'C:\Program Files\ADINA\ADINA System 8.4' TMP = '/cygdrive/c/DOCUME~1/OGNJAN~1/LOCALS~1/Temp' SYSTEMROOT = 'C:\WINDOWS' PROCESSOR_REVISION = '0806' LINK_F90 = 'sstatd.lib sstats.lib smathd.lib smaths.lib sf90mp.lib' ADINALCTYPE = 'NETWORK' PROGRAMFILES = 'C:\Program Files' P_SCHEMA = 'C:\PROGRA~1\ADINA\ADINAS~1.4\schema' HOMESHARE = '\\innovalserv07\users1' NUMBER_OF_PROCESSORS = '1' INCLUDE = 'C:\Program Files\Microsoft Visual Studio\DF98\IMSL\INCLUDE;C:\Program Files\Microsoft Visual Studio\DF98\INCLUDE;C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE' SESSIONNAME = 'Console' DJGPP = 'C:/DJGPP/djgpp.env' COMPUTERNAME = 'INNOVALTEC022' _ = '/usr/bin/cygcheck' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = '/cygdrive' flags = 0x0022 cygdrive flags = 0x0022 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = 'C:\cygwin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = 'C:\cygwin/bin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = 'C:\cygwin/lib' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options c: hd NTFS 19077Mb 73% CP CS UN PA FC d: cd N/AN/A C:\cygwin / system binmode C:\cygwin/bin /usr/bin system binmode C:\cygwin/lib /usr/lib system binmode . /cygdrive system binmode,cygdrive Not Found: awk Not Found: bash Not Found: cat Not Found: cp Found: c:\pacific\bin\cpp.exe Not Found: crontab Not Found: find
Re: 1.5.25-7: make -v command does not work
--- [EMAIL PROTECTED] ha scritto: Hello, I cannot make the make command to work in cygwin. When I type make -v to get its version number it returns nothing, it simply goes back to the command prompt as shown below. bash-3.2$ make -v bash-3.2$ Not Found: awk Not Found: bash Not Found: cat Not Found: cp Found: c:\pacific\bin\cpp.exe Not Found: crontab Not Found: find Not Found: gcc Not Found: gdb Not Found: grep Not Found: kill Not Found: ld Not Found: ls Not Found: make Not Found: mv Not Found: patch Not Found: perl Not Found: rm Not Found: sed Not Found: ssh Not Found: sh Not Found: tar Not Found: test Not Found: vi Not Found: vim something in your system is wrong. Or it is due the PATH, as you have too many bin, or the installation failed somewhere try cygchek -c to verify the installed files, and try also to clean/simplify the PATH 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: 1.5.25-7: make -v command does not work
On 2008-01-11 13:53Z, [EMAIL PROTECTED] wrote: Thanks for your quick reply. I simplified the path variable to just path=/usr/bin. That did not solve the problem. I also ran cygcheck -c and the reported status on make is OK. The xorg-x11-bin was incomplete. All other packages were OK. You had reported no output from 'make -v', and the diagnostics posted with your original message included Not Found: bash Not Found: make Now that you've changed the path, try running cygcheck -s -v -r cygcheck.out and posting the output again as you did before. I'm guessing that it will still show some unresolved problems. -- 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: [BUG?] run.exe and pdflatex
On Fri, 11 Jan 2008, Corinna Vinschen wrote: On Jan 10 23:57, Igor Peshansky wrote: On Fri, 11 Jan 2008, Sven Köhler wrote: So the question is: who does all the checks (shebang, etc.)? - the execve implementation? (which is cygwin, right?) - the shell? - both? The shell. Igor Cygwin's exec(3) calls have shebang magic builtin as described in http://www.opengroup.org/onlinepubs/009695399/functions/exec.html Indeed. Sorry, I missed the call to newargv.fixup in spawn_guts... So, what was the reason, then, to remove si.wShowWindow = SW_HIDE from spawn_guts in CVS? Having it makes it much easier to fix run.exe appropriately... Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! That which is hateful to you, do not do to your neighbor. That is the whole Torah; the rest is commentary. Go and study it. -- Rabbi Hillel -- 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: cron does not work: no error message
- Original Message - From: Saurabh Tendulkar To: cygwin Sent: Thursday, January 10, 2008 11:26 PM Subject: cron does not work: no error message | Hi, | | I upgraded my cygwin recently to the latest cron (4.1-6), and it seems to have | stopped working. I did a cygrunsrv -E cron when the setup asked me to kill | cron, and cygrunsrv -S cron to start it after the upgrade finished. | | Now the application log shows that /usr/sbin/cron actually runs, but instead of | running the command from the crontab, it simply does a tabs reload. The | following are relevant lines from cygbug.txt, the first one shows an instance | of the old cron, the second one an instance of the new one. | 2008/01/10 00:21:01 [SYSTEM] /usr/sbin/cron: PID 1412: (HP_Owner) CMD (ls) | ... | 2008/01/10 20:50:01 [SYSTEM] /usr/sbin/cron: PID 3104: (HP_Owner) RELOAD | (tabs/HP_Owner) | | The only thing that jumped out at me was that /var/cron/cron.log and | /var/run/cron.pid have user SYSTEM and group root, and afaict these are the | only files in the cygwin space with that user+group pair. Is this right? Also | the cron.log file is empty. Did you run the new /usr/bin/cron-config ? It will check that various settings are set correctly. If the problem persists, send me cygbug.txt. Pierre -- 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: Re: need help with bash -c command with cygpath
Jay wrote on Friday, January 11, 2008 3:14 PM:: That's still somewhat wasteful, starting bash just to get a vim alias - why not use the full name gvim, and bypass the bash process to begin with? you right, i'm going to remove it, thanks. My main problem now is that for some reason the leading backslash on UNC names is getting dropped when calling bash -c from the windows command prompt, even when using just single quotes. So if you run this from a windows command prompt: H:\C:\cygwin\bin\bash -v -c '\\UNC_PATH\Dir' \UNC_PATH\Dir --Leading backslash dropped /usr/bin/bash: UNC_PATHDir: command not found It drops off the leading backslash. When you run it from Cygwin bash: bash -v -c '\\UNC_PATH\Dir' \\UNC_PATH\Dir --The leading backslash is preserved. bash: \UNC_PATHDir: command not found I know i can make it work by piping the path into sed, but I'm just wondering why i'm losing the leading backslash when running from windows. Maybe dos is passing in the single quotes as double quotes. dos (i.e. cmd.exe) does not have the same quoting rules as bash, so \\ inside single quotes means the same as it does inside double quotes in bash. Why are you even trying to use backslashes? There's no need (even in cmd.exe), but there's certainly no point in using them in a posix command. Just replace all backslashes with forward slashes and you've sidestepped the problem. If you absolutely MUST have backslashes, from cmd.exe, you need to double each backslash: H:\C:\cygwin\bin\bash -v -c 'UNC_PATH\\Dir' (actually only the first really needs to be doubled, because \ has no special meaning if it's followed by a letter) Phil -- 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: 1.5.25-7: make -v command does not work
-- Rade.Ognjanovic ha scritto: Dear Marco, Thanks for your quick reply. I simplified the path variable to just path=/usr/bin. That did not solve the problem. I also ran cygcheck -c and the reported status on make is OK. The xorg-x11-bin was incomplete. All other packages were OK. Hi Rade, it is strange. if make is failing without any message same libs should miss. $cygcheck make Found: C:\cygwin\bin\make.exe C:\cygwin\bin\make.exe C:\cygwin\bin\cygwin1.dll C:\WINDOWS\system32\ADVAPI32.DLL C:\WINDOWS\system32\ntdll.dll C:\WINDOWS\system32\KERNEL32.dll C:\WINDOWS\system32\RPCRT4.dll C:\WINDOWS\system32\Secur32.dll C:\cygwin\bin\cygintl-3.dll C:\cygwin\bin\cygiconv-2.dll and cygcheck -r -s -v should have rows as Found: C:\cygwin\bin\ld.exe Found: C:\cygwin\bin\ls.exe Found: C:\cygwin\bin\make.exe Found: C:\cygwin\bin\mv.exe Found: C:\cygwin\bin\patch.exe 22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll .. 37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll .. 31k 2005/11/20 C:\cygwin\bin\cygintl-3.dll .. 31k 2006/10/23 C:\cygwin\bin\cygintl-8.dll .. Insted your output say that the package are installed libintl 0.10.38-3 libintl10.10.40-1 libintl20.12.1-3 libintl30.14.5-1 libintl80.15-1 but cygintl-3.dll of libintl3 is missing 976k 2006/10/22 C:\cygwin\bin\cygiconv-2.dll .. 31k 2006/10/23 C:\cygwin\bin\cygintl-8.dll .. 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: [BUG?] run.exe and pdflatex
On Jan 11 10:11, Igor Peshansky wrote: So, what was the reason, then, to remove si.wShowWindow = SW_HIDE from spawn_guts in CVS? Having it makes it much easier to fix run.exe appropriately... I would be somewhat surprised if this code would have any effect in the trunk. The code in question looked like this: if (!wincap.pty_needs_alloc_console () newargv.iscui myself-ctty == -1) { si.dwFlags |= STARTF_USESHOWWINDOW; si.wShowWindow = SW_HIDE; } Given that pty_needs_alloc_console() is false only on 9x, and is always true on NT, the above code was only executed on 9x. Since 1.7 dropped 9x support, the code could go away. Shoot if I missed something. 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: 1.5.25-7: make -v command does not work
Dear Marco, Thanks for your quick reply. I simplified the path variable to just path=/usr/bin. That did not solve the problem. I also ran cygcheck -c and the reported status on make is OK. The xorg-x11-bin was incomplete. All other packages were OK. Best Regards, Rade == Innoval Technology Limited Registration Number: 4583982 in England and Wales VAT Number: GB 811 9811 35 -- 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: Re: need help with bash -c command with cygpath
H:\C:\cygwin\bin\bash -v -c 'UNC_PATH\\Dir' (actually only the first really needs to be doubled, because \ has no special meaning if it's followed by a letter) Phil I'm getting the path from the registry via a right click menu and passing it into the bash -c command. But the leading slash is getting removed on UNC paths. I think i'm going to have to sed 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: [BUG?] run.exe and pdflatex
On Fri, 11 Jan 2008, Igor Peshansky wrote: On Fri, 11 Jan 2008, Corinna Vinschen wrote: On Jan 11 10:11, Igor Peshansky wrote: So, what was the reason, then, to remove si.wShowWindow = SW_HIDE from spawn_guts in CVS? Having it makes it much easier to fix run.exe appropriately... I would be somewhat surprised if this code would have any effect in the trunk. The code in question looked like this: if (!wincap.pty_needs_alloc_console () newargv.iscui myself-ctty == -1) { si.dwFlags |= STARTF_USESHOWWINDOW; si.wShowWindow = SW_HIDE; } Given that pty_needs_alloc_console() is false only on 9x, and is always true on NT, the above code was only executed on 9x. Since 1.7 dropped 9x support, the code could go away. Shoot if I missed something. You didn't, but I'm confused now. Why would the code that uses execve to spawn a Cygwin console process NOT pop up a console window? Even if the parent is compiled with -mwindows, if the app needs a console, one would be created, wouldn't it? Igor Ugh. ENOCOFFEE. fhandler_console::need_invisible() takes care of it. So run.exe can be changed to use execve even in CVS HEAD. Sorry for the noise. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! That which is hateful to you, do not do to your neighbor. That is the whole Torah; the rest is commentary. Go and study it. -- Rabbi Hillel -- 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: [BUG?] run.exe and pdflatex
On Fri, 11 Jan 2008, Corinna Vinschen wrote: On Jan 11 10:11, Igor Peshansky wrote: So, what was the reason, then, to remove si.wShowWindow = SW_HIDE from spawn_guts in CVS? Having it makes it much easier to fix run.exe appropriately... I would be somewhat surprised if this code would have any effect in the trunk. The code in question looked like this: if (!wincap.pty_needs_alloc_console () newargv.iscui myself-ctty == -1) { si.dwFlags |= STARTF_USESHOWWINDOW; si.wShowWindow = SW_HIDE; } Given that pty_needs_alloc_console() is false only on 9x, and is always true on NT, the above code was only executed on 9x. Since 1.7 dropped 9x support, the code could go away. Shoot if I missed something. You didn't, but I'm confused now. Why would the code that uses execve to spawn a Cygwin console process NOT pop up a console window? Even if the parent is compiled with -mwindows, if the app needs a console, one would be created, wouldn't it? Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! That which is hateful to you, do not do to your neighbor. That is the whole Torah; the rest is commentary. Go and study it. -- Rabbi Hillel -- 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: 1.5.25-7: make -v command does not work
Dear Greg, Thanks for replying. I ran cygcheck -s -v -r cygcheck.out as requested and the output is enclosed. Best Regards, Rade == Innoval Technology Limited Registration Number: 4583982 in England and Wales VAT Number: GB 811 9811 35 cygcheck.out Description: Binary data -- 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: need help with bash -c command with cygpath
That's still somewhat wasteful, starting bash just to get a vim alias - why not use the full name gvim, and bypass the bash process to begin with? you right, i'm going to remove it, thanks. My main problem now is that for some reason the leading backslash on UNC names is getting dropped when calling bash -c from the windows command prompt, even when using just single quotes. So if you run this from a windows command prompt: H:\C:\cygwin\bin\bash -v -c '\\UNC_PATH\Dir' \UNC_PATH\Dir --Leading backslash dropped /usr/bin/bash: UNC_PATHDir: command not found It drops off the leading backslash. When you run it from Cygwin bash: bash -v -c '\\UNC_PATH\Dir' \\UNC_PATH\Dir --The leading backslash is preserved. bash: \UNC_PATHDir: command not found I know i can make it work by piping the path into sed, but I'm just wondering why i'm losing the leading backslash when running from windows. Maybe dos is passing in the single quotes as double quotes. Thanks again for the help. -- 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: Re: need help with bash -c command with cygpath
On 11 January 2008 15:51, Phil Betts wrote: If you absolutely MUST have backslashes, from cmd.exe, you need to double each backslash: H:\C:\cygwin\bin\bash -v -c 'UNC_PATH\\Dir' That doesn't work for me. Adding the '-x' option to bash is very handy for debugging these sorts of problems, it shows you what bash thinks it's actually seeing:- C:\Documents and Settings\dkC:\cygwin\bin\bash -v -x -c 'UNC_PATH\\Dir' \\UNC_PATH\Dir + '\UNC_PATHDir' /usr/bin/bash: \UNC_PATHDir: command not found I believe what is needed is 1) outer double-quotes, for cmd's benefit, 2) inner single-quotes, for bash's benefit, 3) double up the slashes /as well/, because there's one more level of quoting being stripped than I can account for, but anyway it works for me: C:\Documents and Settings\dkC:\cygwin\bin\bash -v -x -c 'UNC_PATH\\Dir' '\\UNC_PATH\Dir' + '\\UNC_PATH\Dir' /usr/bin/bash: \\UNC_PATH\Dir: command not found C:\Documents and Settings\dk If I wasn't trying to execute a directory but list it instead, I'd say C:\cygwin\bin\bash -v -x -c ls -la 'UNC_PATH\\Dir' (just using this example to illustrate how the outer quotes protect the bash commandline from cmd, and the inner quotes are part of the bash commandline). 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/
which mail sending tool I should use?
hi, retrievesend mail by cygwin I know fetchmail and mutt are needed to get and view the mails. But I am not sure about the sending tool in cygwin, could you please advise? -- 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: need help with bash -c command with cygpath
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Dave Korn on 1/11/2008 9:38 AM: | I believe what is needed is 1) outer double-quotes, for cmd's benefit, 2) | inner single-quotes, for bash's benefit, 3) double up the slashes /as well/, | because there's one more level of quoting being stripped than I can account | for, but anyway it works for me: | | C:\Documents and Settings\dkC:\cygwin\bin\bash -v -x -c 'UNC_PATH\\Dir' | '\\UNC_PATH\Dir' | + '\\UNC_PATH\Dir' | /usr/bin/bash: \\UNC_PATH\Dir: command not found '\\' - the quotes are stripped and \\ collapsed by cmd.exe = '\' '\' - the ' quotes are stripped by bash on execution = \ | If I wasn't trying to execute a directory but list it instead, I'd say | | C:\cygwin\bin\bash -v -x -c ls -la 'UNC_PATH\\Dir' Which means: bash -vxc ls -la UNC_PATHDir will also work (8 leading \ converted to 4 by cmd, then 4 converted to 2 by bash, so that ls sees an argument with 2 leading \). - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHh+Ce84KuGfSFAYARAkhJAKCnk3p+yhal3k/09fAKywhficzz0ACgi+TA hVScKscjLyeHoc2Vx6LYiWM= =eSTr -END PGP SIGNATURE- -- 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/
Cygwin install hangs at end every time
I first encountered this problem months ago while trying to add the xwindows packages to my cygwin isntall - the installer would hang in the middle. I deleted all the cygwin files a few days ago and tried again, with the same problem. It doesn't matter which host I pick to download from, the result is the same. So I tried again - deleted the cygwin directory and this time I just installed the basic package. At the end, it hangs up, never creates any icons or batch file from which to launch cygwin. I'm using the latest setup.exe from cygwin.com - Joel -- 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: need help with bash -c command with cygpath
Eric Blake ebb9 at byu.net writes: According to Dave Korn on 1/11/2008 9:38 AM: | I believe what is needed is 1) outer double-quotes, for cmd's benefit, 2) | inner single-quotes, for bash's benefit, 3) double up the slashes /as well/, | because there's one more level of quoting being stripped than I can account | for, but anyway it works for me: | | C:\Documents and Settings\dkC:\cygwin\bin\bash -v -x -c 'UNC_PATH\\Dir' | '\\UNC_PATH\Dir' | + '\\UNC_PATH\Dir' | /usr/bin/bash: \\UNC_PATH\Dir: command not found '\\' - the quotes are stripped and \\ collapsed by cmd.exe = '\' '\' - the ' quotes are stripped by bash on execution = \ | If I wasn't trying to execute a directory but list it instead, I'd say | | C:\cygwin\bin\bash -v -x -c ls -la 'UNC_PATH\\Dir' Which means: bash -vxc ls -la UNC_PATHDir will also work (8 leading \ converted to 4 by cmd, then 4 converted to 2 by bash, so that ls sees an argument with 2 leading \). Thanks everyone for the help. Since i'm getting the path from the registry i can't add in the extra backslashes without using sed. I ended up with this registy key which seems to work for local drives as well as network drives (UNCs) (haven't tested files with special characters). (manually typed into the registry) C:\cygwin\bin\bash -v -c /usr/bin/head \$(/usr/bin/echo '%1' | /usr/bin/sed 's#^\(\w\)#\1#;s#\\\#\/#g')\ | /cygdrive/c/John/Tools/vim/gvim.exe -R - Here is the regfile if anyone wants to try it out. You will prob need to change your path to gvim, or just use the path to cygwin vim. --START REGFILE--- Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\Head2Vim] [HKEY_CLASSES_ROOT\*\shell\Head2Vim\Command] @=C:\\cygwin\\bin\\bash -v -c \/usr/bin/head \\\$(/usr/bin/echo '%1' | /usr/bin/sed 's#^\\(\\w\\)#\\1#;s#\\#\\/#g')\\\ | /cygdrive/c/John/Tools/vim/gvim.exe -R -\ --END REGFILE-- -- 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/
Process ends unexpectly
Hi, It has been a long time since I last used Cygwin but these past days I did my come back ;-) and I noticed that many processes stops without any message (joe editor, the make program, configure script while I were compiling Videolan VLC, the cd command (yes, it fails !) and many others ...) Before saying it's my computer's problem just read the following : 1) I had the same problem today at my office 2) The 2 tested computers are not linked in any way (so don't think about viruses ^^) Sorry, so I don't have any error message, and the behavior is totally random So I've just a question : do you have the same problem ? Is there any way to trace program execution in cygwin for example ? Thx -- 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: Getting 'Bad file descriptor' error with 1.5.24-2
!-- DIV {margin:0px;}--Hello, Sorry, I reactivate this thread (http://cygwin.com/ml/cygwin/2007-03/msg00029.html) but I have exactly the same error with process make. bash: cannot duplicate fd 31 to fd 0: Bad file descriptor I ran my process make under strace (strace -ostrace.out bash -c make) and got this (have a look at the two last lines) Does anyone have an idea ? Thanks, aoyou 25 109132 [main] bash 37932 fork: 0 = fork() 63 109195 [main] bash 37932 set_signal_mask: oldmask 0x0, newmask 0x0, mask_bits 0x0 320 109218 [main] bash 37840 fork: 37932 = fork() 43 109238 [main] bash 37932 set_signal_mask: not calling sig_dispatch_pending 35 109273 [main] bash 37932 sig_send: sendsig 0x630, pid 37932, signal -34, its_me 1 60 109278 [main] bash 37840 set_signal_mask: oldmask 0x80002, newmask 0x8, mask_bits 0x2 36 109309 [main] bash 37932 sig_send: wakeup 0x5F4 42 109320 [main] bash 37840 sig_send: sendsig 0x710, pid 37840, signal -39, its_me 1 28 109337 [main] bash 37932 sig_send: Waiting for pack.wakeup 0x5F4 31 109351 [main] bash 37840 sig_send: wakeup 0x5F4 32 109369 [sig] bash 37932 wait_sig: signalling pack.wakeup 0x5F4 33 109384 [main] bash 37840 sig_send: Waiting for pack.wakeup 0x5F4 35 109404 [main] bash 37932 sig_send: returning 0x0 from sending signal -34 37 109421 [sig] bash 37840 sigpacket::process: signal 20 processing 29 109433 [main] bash 37932 sigaction_worker: signal 18, newact 0x22C440 (handler 0x0), oa 0x0 25 109446 [sig] bash 37840 sigpacket::process: signal 20 blocked 27 109460 [main] bash 37932 sig_send: sendsig 0x630, pid 37932, signal -34, its_me 1 26 109472 [sig] bash 37840 sigpacket::process: returning -1 27 109487 [main] bash 37932 sig_send: wakeup 0x5F4 26 109498 [sig] bash 37840 wait_sig: signalling pack.wakeup 0x5F4 27 109514 [main] bash 37932 sig_send: Waiting for pack.wakeup 0x5F4 31 109529 [main] bash 37840 sig_send: returning 0x0 from sending signal -39 35 109549 [sig] bash 37932 wait_sig: signalling pack.wakeup 0x5F4 35 109564 [main] bash 37840 close: close (31) 33 109582 [main] bash 37932 sig_send: returning 0x0 from sending signal -34 28 109592 [main] bash 37840 __set_errno: cygheap_fdget::cygheap_fdget(int, bool, bool):394 val 9 25 109607 [main] bash 37932 sigaction_worker: signal 21, newact 0x22C440 (handler 0x0), oa 0x0 28 109620 [main] bash 37840 close: -1 = close (31) 27 109634 [main] bash 37932 sig_send: sendsig 0x630, pid 37932, signal -34, its_me 1 28 109662 [main] bash 37932 sig_send: wakeup 0x5F4 33 109695 [sig] bash 37932 wait_sig: signalling pack.wakeup 0x5F4 76 109696 [main] bash 37840 set_signal_mask: oldmask 0x8, newmask 0x8, mask_bits 0x0 31 109726 [main] bash 37932 sig_send: Waiting for pack.wakeup 0x5F4 40 109736 [main] bash 37840 set_signal_mask: not calling sig_dispatch_pending 27 109753 [main] bash 37932 sig_send: returning 0x0 from sending signal -34 24 109777 [main] bash 37932 sigaction_worker: signal 22, newact 0x22C440 (handler 0x0), oa 0x0 33 109810 [main] bash 37932 dtable::dup2: dup2 (31, 0) 26 109836 [main] bash 37932 dtable::dup2: fd 31 not open Eric Blake ebb9 at byu.net writes: http://cygwin.com/acronyms/#PCYMTWLL - wrapping would be nice To: 'cygwin AT cygwin DOT com' ^ http://cygwin.com/acronyms/#PCYMTNQREAIYR - raw emails munged http://cygwin.com/acronyms/#TOFU - top-posting reformatted Sorry for the bad formatting, etc. I'm not reproducing this here. Do you have any rogue antivirus, webcam, or other buggy driver that might be interfering with normal cygwin operation? No, in fact this machine just had the OS installed. Nothing crazy but Cygwin and a few compilers. It has a copy of symantec coporate AV installed on it (due to company policy) but it is always disabled. At worst, you could run the entire operation under strace, to see if that pinpoints which invocation of bash is failing on dup2. Okay, I'll give that a shot when I have some time. Maybe this will lead to a smaller reproducible case. Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail _ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr -- 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/
Graphicks Magic on Vista?
Has anyone gotten gm[.exe] to work on Vista? I keep getting pop-up Windows boxes saying gm has stopped working ... with of course Vistas favorite non-functioning toggle switch line about trying to find a solution, blah, blah, blah, blah. Thanks, Lee P.S. Cygwin folk say Vista is not supported. That's only because they're spoiled sports. They expect things to work. ;-) -- 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: Cygwin install hangs at end every time
Joel Braverman wrote: I first encountered this problem months ago while trying to add the xwindows packages to my cygwin isntall - the installer would hang in the middle. I deleted all the cygwin files a few days ago and tried again, with the same problem. It doesn't matter which host I pick to download from, the result is the same. So I tried again - deleted the cygwin directory and this time I just installed the basic package. At the end, it hangs up, never creates any icons or batch file from which to launch cygwin. I'm using the latest setup.exe from cygwin.com Joel, Might be one of the post-install scripts failing. What I have done is to: Go to: /etc/postinstall Look for scripts that don't look like *.sh.done; rather they look like *.sh. Create a directory '_Save.joel'. The extension is to remind you that you and not 'setup.exe' or some Cygwin script created it. The '_' is to ensure that 'ls' lists it at the top (reducing the chances you will forget about it). Move the first (alphabetically) non-'.done' script into the directory. Try running setup.exe again, ... If you have to, reinstall all (some? one?) the apps after (alphabetically) the one(s) you moved into '_Save.joel'. Three apps that I and others have had problems with are: * gnuplot * grepmail * postinstall-ec-fonts-mftraced This may not be the official or even a very good way to solve this problem. All I know is it worked for me, when nothing else did, and when all other advice went over my head. Are you running Vista? These kinds of problems seem to be more common with Vista, at least in my experience. Cygwinners: I'm curious as to why there is a postinstall script that can fail and setup does not recognize there is something amiss with the install. Good luck, Lee Lee D. Rothstein Living in the first in the nation primary state; Which at this point has some of the most relieved citizens in the nation, Regardless of party or candidate affiliation. The Primary is over. Amen! -- 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: Process ends unexpectly
Marc/MDPI314 wrote: Hi, It has been a long time since I last used Cygwin but these past days I did my come back ;-) and I noticed that many processes stops without any message (joe editor, the make program, configure script while I were compiling Videolan VLC, the cd command (yes, it fails !) and many others ...) Before saying it's my computer's problem just read the following : 1) I had the same problem today at my office 2) The 2 tested computers are not linked in any way (so don't think about viruses ^^) Sorry, so I don't have any error message, and the behavior is totally random So I've just a question : do you have the same problem ? Certainly not. :-) Is there any way to trace program execution in cygwin for example ? Besides having debug versions and source and using the debugger you mean? Well, there is strace if you like looking at that sort of output. ;-) You might be best off trying to narrow down a sequence of actions that reproduces the problem. And of course there's always cygcheck output that can be helpful in determining if there are any general installation issues. See http://cygwin.com/problems.html for details. -- 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/
Re: Graphicks Magic on Vista?
On 01/12/2008, Lee D. Rothstein wrote: P.S. Cygwin folk say Vista is not supported. That's only because they're spoiled sports. They expect things to work. ;-) We do expect things to work but the Cygwin project does (begrudgingly? ;-) ) support Vista. I know. cygcheck output says otherwise but it is a bit behind the times. ;-) Sorry, can't provide any other feedback about your message ATM. :-( -- 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/