Re: cygwin 1.5.21 crashes
[EMAIL PROTECTED] wrote: hello: I just reinstalled cygwin 1.5.21 version (full version). after rebooting when I click on the cygwin bash shell it imediately crashes. Older version of cygwin used to be running fine in my machine. I opened msdos command window and went to cgwin/bin directory. there was no bash there. I could start only zsh. tcsh also crashed. do I have something , may be reinstallation will help? Sounds like it. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: Install failing and leaving unusable system
Julian Hall wrote: I know this has been discussed here before, but it seems that it's something that happens to a lot of people, so it should probably be fixed. It seems as though a fairly simple update to the setup program might be helpful to people who have the problem. In script.cc, there are currently lines that read: if (retval) log(LOG_PLAIN) abnormal exit: exit code= retval endLog;; /* if file exists then delete it otherwise just ignore no file error */ io_stream::remove (cygfile:// + scriptName + .done); io_stream::move (cygfile:// + scriptName, cygfile:// + scriptName + .done); I'd suggest changing them so that the destination filename in the case of an abnormal exit is different (e.g. scriptName + .failed). A flag could then be set so that a dialog box is shown at the end, stating that errors occurred running the postinstall scripts, and directing users to a simple shell script that can be run after rebooting, which will run all the /etc/postinstall/*.failed scripts and move them to appropraite .done names. Does that sound like a sensible idea? Sounds reasonable to me. Want to create a patch for the maintainers to review? -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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 disables dialog window
Kevin Cella wrote: I have a script that runs and kicks off a windows program that opens a dialog where it automatically enters the necessary data and submits the result. It works beautifully if I run it through a cygwin shell, but not when executed as a cron job. When executed as a cron job, the dialog window never appears. I have tried using cygstart and bash –l –c, but neither was effective. Any ideas? Yes. You'll need to reinstall 'cron' with 'cygrunsrv' using the -i parameter to allow it to interact with the desktop or go into the Windows services panel and alter the existing service to do the same. You may still find that the result doesn't work quite the same as when run from the command line. If that's the case, then there are environment settings that also need to be added to your script. FWIW, both of these issues have come up before and discussions on them can be found in the email archives. You can check them out if you're interested. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: Old versions of Cygwin
On 10/29/2006, Champ Mendis wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Please don't commandeer threads. Start a new thread for a new subject. This is a new subject. I need to run my code in Cygwin, What is the purpose of having new version which can not run. I am moving to Dev C++ fed up of Cygwin if you can not use it. This list is a real support for users of Cygwin and your advice has helped me a lot. It is unfair to restrict and have stringent rules for the list. It is unfair to others on this list to mix your thread with an established one. You may have replaced the original message's subject but clicking reply and changing the subject does not make a new thread. See the References at the bottom of your email in the email archives: http://cygwin.com/ml/cygwin/2006-10/msg01015.html Please send a *new* message with a *new* subject for every topic you want to discuss. It makes following threads much easier. It's just common courtesy. As for your other general comments, I would say you would be better served by stating your issues and providing information that would help others help you in resolving whatever problem you're having. Obviously, you are not required to do this but it is a more productive approach to solving your problem than just complaining to this list that you're fed up of [sic] Cygwin. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: Newbie questions: missing packages / script writing
On 10/31/2006, cygwin wrote: Brian Dessent wrote: FYI, this question should have been sent to cygwin-xfree (at) cygwin.com, not here. All X11 topics belong there. Sorry, I'm at the stage where I don't know enough to know where to direct my questions. (I couldn't see a beginner mailing list anywhere.) If you had read the list of available lists at http://cygwin.com/lists.html, you would have found the correct list. I did read that page (amongst my other research), but I guess I'm missing something obvious - what list is aimed at cygwin newbies? The lists are not so much divided up by experience as by topic. Issues concerning X go to the cygwin-xfree list, as Brian mentioned. That's why you were pointed to the lists page. It clearly states what kind of questions are on-topic for each list. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: .so and .dll.a files
Gerardo Segura wrote: Hi, I'm trying to use libflv in cygwin, so I build de library. The produced files are: /usr/lib/libflv.so /usr/lib/libflv.so.0 when I tried to build an example command ld can't found the library it says: ld: cannot find -lflv using filemon or strace I see the files are been looking for are either: libflv.dll.a or flv.dll.a so my question is how to convert from .so files to .dll.a or how can I use directly the .so files. If you built this as a DLL and just named it libflv.so, rename it to libflv.dll. Then make sure the linker can find the file. If you instead copied these files from some *NIX system, you'll need to rebuild from source under Cygwin into a static library (libflv.a) or a DLL (cygflv.dll - the preferred prefix for Cygwin DLLs is cyg) with it's companion import library (libflv.dll.a). -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: How do I roll back to make 3.80 ?
William Deegan wrote: Greetings, I accidently updated to latest make 3.81 (which has many changes already discussed here) which broke my build. I can't seem to install the previous version with the installer. Is this no longer possible? http://www.cygwin.com/ml/cygwin/2006-09/msg00315.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 -- 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: Possible to use pinvoke to call DLL built with cygwin
Sammy Yu wrote: Hi guys, I'm trying to port an application onto Windows that was originally developed for UNIX using rpc, pthreads, and AF_UNIX sockets. I have used cygwin to compile this application successfully. One of the components built is a DLL which I want to invoke from a C Sharp application. However, the application crashes whenever I call this DLL via pinvoke in C Sharp. ** Exception Text ** System.DllNotFoundException: Unable to load DLL 'perm.dll': Invalid access to memory location. (Exception from HRESULT: 0x800703E6) at WinPcapRedirectorUI.Perm.meme () at WinPcapRedirectorUI.MainForm.statisticsButton_Click(Object sender, EventArgs e) in C:\eclipse\workspace\winperm\WinPcapRedirectorUI\MainForm.cs:line 74 at System.Windows.Forms.Control.OnClick (EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message m, MouseButtons button, Int32 clicks) I verified that the cygwin*.dll are in the path. I made a strip down version of a dll, it exhibited the same behavior. Next, I compiled the library with -mno-cygwin flag which surprisingly worked. I suspect that cygwin1.dll does not work with pinvoke. Can anybody confirm this is true? I prefer not to have to port the native application to Visual C or mingw32 as there are a lot of rpc and AF_UNIX sockets. Are there any other alternatives? Thanks in advance for your help! You need to initialize the DLL. Loading the Cygwin DLL from a non-Cygwin app doesn't initialize it automatically. Only Cygwin apps do that. Off the top of my head, I don't recall the details but this has been discussed before in the email archives, if you want to poke around a bit for the procedure. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: Possible to use pinvoke to call DLL built with cygwin
Sammy Yu wrote: Hey guys, Thanks for the quick response. I've tried calling the cygwin_dll_init method but I'm still getting the same error. I think it's because of the 4K scratch space on stack size limitation mentioned here: http://sourceware.redhat.com/cygwin/faq/faq-nochunks.html. Is this correct? Being relative new to C#, I am not aware of anyway of changing the stack size. This is probably wrong news group to ask, but has anybody ported over the winsup.api code into a C# version? Not that I know of, no. You can always call into C code to do what's necessary if C# can't do what's needed. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: Newbie questions: missing packages / script writing
Buchbinder, Barry (NIH/NIAID) [E] wrote: on Tuesday, October 31, 2006 4:56 PM, [EMAIL PROTECTED] wrote: If you had read the list of available lists at http://cygwin.com/lists.html, you would have found the correct list. I did read that page (amongst my other research), but I guess I'm missing something obvious - what list is aimed at cygwin newbies? Adam -- Adam Richardson Carpe Diem This brings up something that I've thought about for a while. Many newbie questions are really not about cygwin, but are really about using a package (in this thread, how does one script in bash). Might it be appropriate and useful to have a list for non-cygwin-specific questions about using packages provided by setup? (Or two lists, for X and non-X.) I know that I feel a part of the cygwin community and might ask questions on a list like that but not on a list with no cygwin connection. (Anyway, first I'd have to find the appropriate list.) To me, newbie questions about particular non-Cygwin specific packages/tools are more appropriately addressed to the source of those packages/tools. Actually, I would say that questions of this type should first be researched for the specific package/tool and then if no joy is found, ask the source for help first unless the issue is Cygwin-specific. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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 CR and backquotes trouble
On 11/02/2006, Nicolas Roche wrote: I am using bash version: 3.1.17(9) I have tried to use shopt -s igncr but I have an issue with the following shell construct: t=`gcc --print-multi-lib` where gcc is a mingw gcc. As my gcc is a mingw program, it outputs CR/LFs. In previous versions bash used to ignore the CR, so t variable was not containing any CR. Now this is no more the case and this is causing some troubles Why isn't t=`gcc --print-multi-lib | d2u` not a solution here? -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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 CR and backquotes trouble
Nicolas Roche wrote: Larry Hall (Cygwin) a écrit : On 11/02/2006, Nicolas Roche wrote: I am using bash version: 3.1.17(9) I have tried to use shopt -s igncr but I have an issue with the following shell construct: t=`gcc --print-multi-lib` where gcc is a mingw gcc. As my gcc is a mingw program, it outputs CR/LFs. In previous versions bash used to ignore the CR, so t variable was not containing any CR. Now this is no more the case and this is causing some troubles Why isn't t=`gcc --print-multi-lib | d2u` not a solution here? Well for two reasons: - portability. the same homemade scripts are also used among a large flavors of unixes (AIX, IRIX, HP-UX, Tru64, ). dos2unix is not installed on all of them... OK. So 'tr' is a better choice then. - these constructs are appearing in projects like GCC (I triggered the error while building a mingw GCC). Which is why I suggested doing the translation so you don't get caught. Is there any technical reason why igncr does not handle this case ? What's the exact semantic of this option by the way ? Dan has addressed this in his response so I won't repeat it. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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 CR and backquotes trouble
On 11/02/2006, Nicolas Roche wrote: Will try Dan solution with the new version of bash. As I said in my previous mail, if you are interesting in the results I will send them. Why not. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: Can't ssh localhost - password not accepted
ppmoore wrote: Hello, I followed these instructions to install ssh on Cygwin, but they appear to be broken: http://www.nabble.com/ssh-and-SYSTEM-tf1863995.html#a5092524 Don't complain to us about that. Complain to the site's owner. This list doesn't support 3rd-party anything. If you're having trouble after using anything not associated with the cygwin.com site, your best bet is to proceed right back to the source of the information you used and query them. I haven't been able to find any more detailed instructions anywhere else, so here I am... Cygwin supported installation information is found in /usr/share/doc/Cygwin. There's a README there for openssh. You should read and follow that to configure openssh. If you have problems, first start by uninstalling openssh and get rid of any files you touched in the process. Then try installing again, following the configuration info provided in the README. I downloaded the openssh package and installed. I added the CYGWIN=ntsec tty EV to Windows I executed ssh-host-config, answering yes to each option. I executed net start sshd I imported the windows passwords using mkpasswd -cl /etc/passwd and mkgroup --local /etc/group, although the mkgroup command didn't work because of an access rights problem. This should import my Windows password, right? Import? No. 'mkpasswd' creates and '/etc/passwd' with your Windows SID info so that your Cygwin UID can be related back to the SID. No passwords are imported. I then started sshd using net start sshd, and it starts up: The CYGWIN sshd service is starting. The CYGWIN sshd service was started successfully. I then stopped sshd, and tried starting it manually, using /usr/sbin/sshd -d -e -D, to attempt to view logging whole using ssh localhost, and I get the message: debug1: sshd version OpenSSH_4.4p1 Could not load host key: /etc/ssh_host_key Could not load host key: /etc/ssh_host_rsa_key Could not load host key: /etc/ssh_host_dsa_key Disabling protocol version 1. Could not load host key Disabling protocol version 2. Could not load host key sshd: no hostkeys available -- exiting. Have I missed something? Yes. Don't start Cygwin from the command line as you. If you *must* run it from the command line and you're running on XP or less, Google the cygwin site for SYSTEM-owned shell. This will tell you how to open a shell running as SYSTEM so you can safely start 'ssh' the same way as it is started as a service. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: loop message warning in find for apparent non-looped files
Linda Walsh wrote: I was doing a find of my root NTFS dir along the lines of : find / -xdev -size +1G It outputs an error: find: Filesystem loop detected; `/Home/law/Documents/Microsoft/win/registry2/reg tweaks/KXP_Tweaks/www.gabrieleponti.com/images' is part of the same filesystem loop as `/Home/law/Documents/Microsoft/win/registry2/regtweaks/KXP_Tweaks/www.gab rieleponti.com/images'. This is the only error message with the command finishing to completion. The filesystem has over 400,000 files, and almost 27,000 directories. Why would this one file come up with what seems to be an obvious error message? It appears find is complaining that the same file is part of the same loop -- which it is, but that shouldn't be an error since they are they same file in the same path. Am I missing something obvious? Hard to tell but assuming that what you've posted is exactly the same as what you were told, the differences in line breaks could be significant. You may want to look at that. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: Command
Flarn wrote: subscribe Command failed! Error - insufficient reading comprehension Reread http://cygwin.com/lists.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 -- 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.21-1: sshd: child_copy: linked dll data write copy failed after computer reboot (Windows 2000 SP4)
Dan Harkless wrote: On November 7, 2006, Dan Harkless cygwin-list AT harkless dot org wrote: On November 7, 2006, Dan Harkless cygwin-list AT harkless dot org wrote: On November 7, 2006, Brian Dessent brian AT dessent dot net wrote: http://cygwin.com/acronyms/#PCYMTNQREAIYR. Thanks. Dan Harkless wrote: snip - rebaseall currently breaks the emacs package, if installed. Only emacs or also xemacs? If the latter, I guess I can't use this, since I definitely need my Emacs (haven't yet reinstalled it on my fresh Cygwin install). There's a special incantation you can do afterwards that gets Emacs working again. I think it's reinstalling the libncurses package. Check the email archives for details. It's been discussed before. snip I thus reinstalled Cygwin from scratch again, and this time when running ssh-host-config told it not to use privilege separation, to see if that would make any difference, but after rebooting, sshd is doing the: 13 [main] sshd 1208 child_copy: linked dll data write copy failed, 0x33F000..0x33F050, done 0, windows pid 2276708, Win32 error 487 bit again. 'net stop sshd' and 'net start sshd' and I can get in. There's no reason not to use privileged separation if you have the ability to create users. As for the message above, try rebaseall again. Use the process described in the README. It's the only way it works. And it only works for what you have installed. Adding to your installation or reinstalling things you already have installed may require you to rerun rebaseall to maintain it's affect. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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 slowness on network shares
Scott Roland wrote: I am experiencing extreme slowness when doing an ls in windows network shares. Looking at an strace, here is the cause of the delay: 774 193082 [main] ls 3380 fhandler_base::open: (p:\a\b\c\d\e\f\g.rsm, 0x11) 1572397 1765479 [main] ls 3380 fhandler_base::set_flags: flags 0x11, supplied_bin 0x1 Here is what I am running: CYGWIN_NT-5.1 marmara 1.5.21(0.156/4/2) 2006-07-30 14:21 i686 Cygwin ls (GNU coreutils) 6.4 Can anyone help me figure out the cause? I just recently upgraded from an older version; is there a version I can rollback to and avoid this issue? How old? Perhaps http://cygwin.com/faq/faq-nochunks.html#faq.using.slow is the answer. If not, please read and follow carefully the problem reporting guidelines found at 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 -- 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.21-1: sshd: child_copy: linked dll data write copy failed after computer reboot (Windows 2000 SP4)
Dan Harkless wrote: snip However, I have had issues in the past few months where suddenly commands in my bash window would start failing with the probably due to using incompatible versions of the cygwin DLL error (without crash popups). When that first occurred, I did a search and found no other copies of cygwin1.dll. Also, in those cases, rebooting the machine would fix the problem, which would seem to indicate it was not due to there being multiple 'cygwin1.dll's in the PATH. Is it possible a statically linked application using Cygwin code could cause this error, if it were running at the time? No. Another application using a different cygwin1.dll would have to be running. As long as it is, the old cygwin1.dll is loaded in memory and will cause conflicts. Kill'em. snip Today when I reinstalled Cygwin again, setup.exe told me that C:\WINNT\system32\cygwin1.dll was back, even though I had confirmed deletion yesterday. Does Cygwin itself ever install the DLL there? If not, I guess there's some application on my system that does, and that repaired itself by putting it back after I deleted it yesterday. I have a few video codecs, converters, and players (some of which were installed last night) that I believe use code that was originally written for Linux, so it's possible it's from one of them. Yes, there are some http://cygwin.com/acronyms/#3PP in this genre. snip I did notice that there is a C:\WINNT\system32\cygz.dll file, dated June 21, 2005 (I tried various 'strings' commandlines on it but didn't get anything that looked like a version number). Is it feasible it could be causing sshd to misbehave after reboot until it's restarted? Perhaps I should try making a safety copy of it, reboot, and see if sshd allows connections without being restarted. Delete all cyg*.dlls you have in the system32 directory. Whatever is there is put there by a http://cygwin.com/acronyms/#3PP. You don't need'em. You don't want'em. They'll just cause you grief (as you've noted already). -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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.21-1: sshd: child_copy: linked dll data write copy failed after computer reboot (Windows 2000 SP4)
Dan Harkless wrote: On November 7, 2006, Larry Hall (Cygwin) wrote: No. Another application using a different cygwin1.dll would have to be running. As long as it is, the old cygwin1.dll is loaded in memory and will cause conflicts. Kill'em. Okay. Good to know. Would the other copy need to be called cygwin1.dll, or would the problem still occur if the 3PP renamed their copy to something else? Yes, the problem would still occur. See the email archives for details if you're interested. I did notice that there is a C:\WINNT\system32\cygz.dll file, dated June 21, 2005 (I tried various 'strings' commandlines on it but didn't get anything that looked like a version number). Is it feasible it could be causing sshd to misbehave after reboot until it's restarted? Perhaps I should try making a safety copy of it, reboot, and see if sshd allows connections without being restarted. Delete all cyg*.dlls you have in the system32 directory. Whatever is there is put there by a http://cygwin.com/acronyms/#3PP. That was it!! I copied off and then deleted cygz.dll from the system32 directory and now I can ssh in directly after rebooting! I suspected. Tellingly, when I tried to delete cygz.dll, I got an error that it was in use. Running Process Explorer told me it was sshd using it, so I had to net stop it and then kill one remaining sshd process to be able to delete the file. A little odd that sshd binding to the wrong copy of cygz.dll would only cause a problem when run at boot time, but there you have it. It's highly dependent on the order you did things. You don't need'em. You don't want'em. They'll just cause you grief (as you've noted already). Well, I don't know that I don't need 'em. I may have just broken a video editing related piece of software that I have a need to use. But perhaps if the software specifically depends on those older versions of cygwin1.dll and cygz.dll I can move them into the same directory as its executable. Trust me. You're better off without them. Add the path to bin to your PATH variable for Windows and everything that needs cygwin1.dll will just work. Same for cygz.dll, as long as you've installed that package. A little worried about the fact that cygwin1.dll seemed to restore itself after I deleted it, but I did install some video software last night, so perhaps it was a new package that stuck in the new (if identical) copy rather than the original one repairing itself. I guess I could use Process Monitor (the successor to Filemon and Regmon -- Microsoft is now redirecting sysinternals.com URLs to an area on microsoft.com, BTW) or something to find out who's sticking it there. Right. Unfortunately, you'll have to do this every time you install from a 3PP. One thing I didn't notice until this evening is that the cygwin1.dll and cygz.dll in system32 had the Hidden attribute on! Some 3PP really didn't want me to mess with them. Luckily I always configure my Windows Explorer to display hidden files (and I used 'find', which ignores the Hidden attribute, rather than the error message's suggested Start... Search), but I can see this causing a lot of consternation for less savvy users. Setting the hidden attribute on DLLs is now standard Windows procedure. Thanks to all for your help in solving this! (Hopefully it'll *remain* working this time. ;^ At least if it doesn't I'll almost certainly know why.) Right. You're welcome. :-) -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: Can't ssh localhost - password not accepted
Christopher Faylor wrote: On Wed, Nov 08, 2006 at 02:27:10AM -0800, ppmoore wrote: Thanks for the response Larry. In the end I gave up, and simply used WinSCP. It works out of the box. OpenSSH configuration is too difficult for mere mortals like me ;). Interesting that we have a bunch of superhumans using Cygwin's openssh without problem. Who would have guessed? My mother always said I was special. I never believed her until now. ;-) -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: CASE error in script file
On 11/08/2006, Doug wrote: I can run the script successfully in a linux box. It wouldn't run in it's current form on a Linux machine. Bash on Linux wouldn't understand DOS text files either. You'd see the same complaints on Linux. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: CASE error in script file
On 11/08/2006, Doug wrote: No, I use gVim 7.0 to edit the file. Windows or Cygwin version? Either way though, gvim will write files in binary or text form. You need to tell it what you want though. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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 remove hard link
DePriest, Jason R. wrote: I did some unfortunate experimenting with compiling different versions of Sleuthkit and Autopsy (http://www.sleuthkit.org) before they officially started supporting cygwin. Autopsy wipes out your PATH when it runs to make sure you are using the correct version of the utilities. This also means, it could not see any of the Cygwin dlls that the tools were compiled with (they've implemented intelligent work-arounds since then). I tried hard linking the various dlls it needed in its designated bin directory. The experiment isn't important (since they now support Cygwin out of the box), what is important is that I cannot delete my hard links. Actually, I can get it to go the recycle bin, but it won't leave the recycle bin. I can 'restore' them but I cannot empty it. Looking through my bash history file, I see I did: chmod a+rwx cygz.dll unlink cygz.dll This let me delete the file as far as getting it to the recycle bin, but that is as far as I can go. The specific error from Windows is: Error Deleting File or Folder Cannot delete cygz: Access is denied. Make sure the disk is not full or write-protected and that the file is not currently in use. Since the file is in my recycle bin, this message makes no sense. Is there some way I can make the original cygz.dll forget all about a couple of its hard links because ls still shows it has 3 total instead of 1 like every other single dll. From your cygcheck.out: Warning: There are multiple cygwin1.dlls on your path Get rid of the one in 'c:\Tools\Foundstone\'. This is most likely your problem. Get rid of ntea in your CYGWIN environment variable. You don't need it and it could get in your way. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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 remove hard link
DePriest, Jason R. wrote: On 11/9/06, Larry Hall (Cygwin) wrote: DePriest, Jason R. wrote: Is there some way I can make the original cygz.dll forget all about a couple of its hard links because ls still shows it has 3 total instead of 1 like every other single dll. From your cygcheck.out: Warning: There are multiple cygwin1.dlls on your path Get rid of the one in 'c:\Tools\Foundstone\'. This is most likely your problem. Get rid of ntea in your CYGWIN environment variable. You don't need it and it could get in your way. snip Well how about that; it worked. I just renamed the other cgywin1.dll to cygwin1.dll.OLD and took NTEA out of my CYGWIN environment variable and emptying the recycle bin worked perfectly. I don't know which piece of advice did the trick, but thanks. I expect the former was the biggest help for this problem. The latter will likely avoid problems in the future for you. :-) -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: Still seeing Win32 error 1062 starting sshd with cygrunsrv -S with openssh-4.5p1-1. Suggestions, please?
Brian Kasper wrote: Hoping that the latest release of openssh would fix the problem I'm having starting sshd as a service, I updated my Cygwin install to Ms. Vinschen's latest release, 4.5p1-1. I then re-ran ssh-host-config. Unfortunately, I'm still unable to start sshd as a service, either with or without privilege separation. I still receive the error message cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started.. I feel like I'm missing something obvious, but I've searched the mailing list archives and Googled for every combination of Cygwin, sshd, and cygrunsrv I can think of to no avail. If anyone out there has any suggestions, I would be very grateful. You have the same problem as Jason. Get rid of all the old cygwin1.dlls that you have on your system. Keep just the one in C:/cygwin/bin. If you still have problems after that, you may have tried to start 'sshd' from the command line. This will set the improper permissions on some important files/directories, as others have suggested. See the '/usr/bin/ssh-host-config' script for the files/directories involved and their proper ownership and permissions. You may be able to get away with just running the script again (don't know for sure - don't have the script handy). You may want to try that first before resorting to making the like changes by hand. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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 Identifying X based packages
Bryan Dunphy wrote: I need to install a CLI only version of cygwin. How can I identify X based packages so as not to accidentally install them? Don't install those in the X category in 'setup.exe'. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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 Identifying X based packages
Bryan wrote: Larry Hall (Cygwin) wrote: Bryan Dunphy wrote: I need to install a CLI only version of cygwin. How can I identify X based packages so as not to accidentally install them? Don't install those in the X category in 'setup.exe'. I tried that, it still installed some parts of X Like? You can always look at 'setup.ini' to find out who depends on X stuff. If you're just getting the base X server and friends, that doesn't occupy allot of space (a few MBs I believe). If you're getting X apps though, well then that's a different story. ;-) -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: Rsync 2.6.9: File name too long (91)
JPL wrote: Hi, We are having the same problem then the one you already answers last year in: http://www.cygwin.com/ml/cygwin/2005-04/msg00395.html Since the cygwin-1.5.21-1 specified that future release might not support win_9x Do you have any plan for supporting longer path/filename than the actual 260 byte limit? I think Corrina outlined the basics of what needs to be done quite well. This would be one place which would cause an incompatibility with non-NT- based platforms of course. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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 Identifying X based packages
Bryan wrote: Larry Hall (Cygwin) wrote: Bryan wrote: Larry Hall (Cygwin) wrote: Bryan Dunphy wrote: I need to install a CLI only version of cygwin. How can I identify X based packages so as not to accidentally install them? Don't install those in the X category in 'setup.exe'. I tried that, it still installed some parts of X Like? You can always look at 'setup.ini' to find out who depends on X stuff. If you're just getting the base X server and friends, that doesn't occupy allot of space (a few MBs I believe). If you're getting X apps though, well then that's a different story. ;-) there are files under /etc/X11, and /usr/X11R6/ (including a bin directory) I can post a complete directory listing if you want. No, that's not necessary. If you can localize the files as you state, then you can certainly determine the packages they come from using 'cygcheck' (see 'man cygcheck') or http://cygwin.com/packages/. Once you have the package(s) from which these files came, you can look in 'setup.ini', which you'll find in you local download directory, to find which other packages have this one (or ones) in their requires line. If you find one that is not in the X category, then that would be one culprit. It may turn out, however, that the package belongs to more than 1 category, in which case things are as they should be. ;-) Regardless, this procedure should give you the information you're looking for. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: rsync hangs (maybe due to cron?) when getting data from Windows to Linux PC
H.S. wrote: snip Recenly, I noticed that I can run that backup rsync command manually on the Linux PC and it worked. But running that command via a script did not work. So, at this point I am not sure what is going wrong, maybe it is my script. I run the same command from the command line and from the script but the results are different. Before I go further into my script, I just wanted to know if somebody is aware of any problem if rsyncd being run on Cygwin and Linux -- Cygwin rsync problems. Problems have been reported in the past but I thought they were largely resolved. You can look in the email archives for details though. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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 Environment from ThumbDrive
Bodger wrote: How possible would it be to: 1) Install a Cygwin environment into a Thumbdrive, including /home, /usr etc. 2) With the help of some crafty shell scripts, be available from most Windows boxes by plugging the thumb drive in and running the environment from there? Google much? http://www.cygwin.com/ml/cygwin/2005-04/msg01373.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 -- 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-1.5.22-1 - cygwin1.dll.new, not cygwin1.dll
Lester Ingber wrote: Larry: I couldn't use Cygwin to send an email until after I remamed cygwin1.dll.new; otherwise cygcheck would not have registered any cygwin1.dll. Sounds to me like you had cygwin1.dll loaded by some Cygwin app while you were installing and that you didn't reboot as requested afterwards. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: Excessive thrashing when popen()ing after a large malloc()
Linda Walsh wrote: snip Loic Grenie wrote: On Tue Nov 14 15:53:36 2006, Eric Blake ([EMAIL PROTECTED] ) wrote: And admitting that your changes are untested is not a good sign for getting it approved. I'm not really admitting, I am just expliciting that the patch is untested. I do not have the resources to build the thing. Sorry to have disturbed, happy cygwining, Guess you didn't know that all posters are automatically on trial here to defend their ideas and posts. Some can't help but take the role of prosecutor detective (too much CSI maybe?) :-). Objection! ...Oh sorry, that doesn't fit with CSI. Hm, I don't think anyone has died using Cygwin though... ;-) -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: Windows environment variables in ssh sessions with privilege seperation
Sean Morgan wrote: I have cygwin sshd installed using privilege separation but find that when connected via ssh that neither the windows system nor user variables are present in the bash shell as they are when cygwin is run in a command shell from the Windows desktop. Could someone explain to me why this might be or how it might be corrected? My goal is that whether a user connects via ssh or starts a shell from the Windows GUI that they have a consistent bash environment. This has been discussed before. A minimal shell environment is communicated to each session started via 'ssh'. This is to limit security holes. Either of the two options below is your alternative. I suspect that the root of this problem lies in the privilege separation but I don't think I can get away from this if I want to use network shares with smbntsec. I am considering two possible workarounds if the core problem cannot be addressed: No, privilege separation has nothing to do with this or the use (or not) of network shares. If part at least part of your goal in using 'ssh' is secure connections, privilege separation makes sense. 1. Create a bash script that sets the same variables as they are set in Windows and dump it into /etc/profile.d. This though seems to have the disadvantage that it will need to be maintained and as they Windows environment variables may change would end up divergent. 2. Create a bash script that extracts the Windows variables from the registry and resets them as needed and dump this script into /etc/profile.d. This has the advantage that it can automatically keep up with changes in the Windows environment variables. snip -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: /bin/bash: Permission denied problem with ssh under WinXP 2003 x64 resolved ... somehow
Brian Kasper wrote: In complete frustration, I wiped my entire Cygwin install and re-downloaded and -installed everything. Then, on a whim, I logged in as the actual Administrator account on my box (instead of my account, which *is* a member of the Administrators group) and configured sshd in a bash shell by issuing the following commands: mkgroup -l -u /etc/group mkpasswd -l /etc/passwd ssh-host-config (accept all defaults and reasonable options, including privsep) ssh-user-config (create all tokens and set all to be valid for login) cygrunsrv -S sshd (watch, startled, as no Error 1062 message appears) ssh localhost (it works, and there was much rejoicing) I then logged out and logged in as my user account and repeated the ssh-user-config step. ssh localhost then worked! I wish I had better information about exactly what resolved the problem, but all I can say is it appears one must actually be Administrator to get sshd working -- perhaps there's some subtle difference between the Administrator user and any other user that happens to be in the Administrator group? For the record, here's the output of uname -a on my system: CYGWIN_NT-5.2-WOW64 ABF466 1.5.22(0.156/4/2) 2006-11-13 17:01 i686 Cygwin And the version information reported by /usr/sbin/sshd --help: OpenSSH_4.5p1, OpenSSL 0.9.8d 28 Sep 2006 Thanks to everyone who made suggestions. I wish I had definitive information as to exactly what fixed the problem So do we. ;-) Still, anecdotal information can also be useful. All I can say is that if this worked for you, it's likely an issue of W2K3 x64, since there is no magic generally to the Administrator account. I've installed the ssh service on W2K and XP using my user id (which is only part of the Administrators group). -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: make-3.81 update?
Rob Walker wrote: Bill Hoffman wrote: Rob Walker wrote: http://cvs.savannah.gnu.org/viewcvs/make/job.c?rev=1.182root=makeview=auto Looks like the Windows-style paths support has been accepted as an upstream patch. When can Cygwin pick this up? When make 3.82 comes out. Thanks. Is this imminent or scheduled? Is there anything I can do to help in the meantime? http://cygwin.com/ml/cygwin/2006-11/msg00433.html I spent some time browsing the Cygwin site looking for information about package maintainers. Most of what I found was how to become a package maintainer for an as-yet-unsupported package. What I was really looking for was a list of the current maintainers, and possibly information about how to help get an already-owned package updated. Contacting package owners is done through this list. The Cygwin package owner for 'make' has already replied to this thread. Maintenance of bash and make seem to follow very different philosophies for updates (the former seems much more active), am I mistaken? They are two different people. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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.21-1: sshd occasionally fails to start
Tom Mount wrote: On new installations of Cygwin 1.5.21-1, I've noticed that after installation I have to try starting the sshd service upwards of a dozen times before it will actually start. If I use net start sshd I get the following: The CYGWIN sshd service is starting. The CYGWIN sshd service could not be started. A system error has occurred. System error 1067 has occurred. The process terminated unexpectedly. If I use cygrunsrv -S sshd I get the following: cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. I can go back and forth for five minutes or so before one or the other will work. I get the 1067 error when I try to use the windows service manager to start it manually. I know there's lots out here on 1062 and 1067 errors; but in the cases I read they all seemed to be permanently fatal errors - no matter how many times one tried to start the service it would always fail. This one doesn't seem to be permanent - it will eventually work, but if I shut it down again it's anyone's guess if it'll come back up again. I've attached the cygcheck file. Is there a configuration issue that's preventing sshd from starting up until it's had a chance to sit for five to ten minutes? I'm surprised it will start at all but no it's not a configuration issue. It's an installation issue. You have an extremely old cygwin1.dll installed in c:/Tools/Foundstone, whatever that is. You've been caught by a http://cygwin.com/acronyms/#3PP. Seems to be a trend lately with these sorts of questions. Delete this old DLL. The current one is binary compatible. If you still have problems after that, add tcp as a dependency to the sshd service. This will make sure that sshd doesn't start before tcp does, in case that's a problem for you. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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.21-1: sshd occasionally fails to start
Tom Mount wrote: How did you come up with that directory name? I searched through the output file I posted and couldn't find it. I also ran a search on that computer for any and all cygwin1.dll files - I probably should have mentioned right off the bat that that's the first thing I do when I can't start the sshd service. I can't find c:/tools/foundstone, and I can't find any other cygwin1.dll files on the system. Hm, I guess that's why it looked *so* familiar. Yours didn't overwrite the last one I viewed. :-( Are you sure tcpip is starting up in a timely manner? If it's not, 'sshd' won't either. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: guile-1.8.1-3 problem
[EMAIL PROTECTED] wrote: I'm trying to compile something that links to guile, but it isn't working with the latest (1.8.1-3) version. I get a message that guile-config is broken. I notice on executing: guile-config info, that there is a line: LIBS = -L/home/janneke/vc/gub-dev/target/cygwin/system/usr/lib -L/home/janneke/vc/gub-dev/target/cygwin/system/usr/bin -L/home/janneke/vc/gub-dev/target/cygwin/system/usr/lib/w32api -lgmp -lcrypt -lm -lltdl which might be related to the problem, since it's referring to directories in the home user area of janneke (I'm only guessing here). I noticed that in 1.6.7-4, the line is LIBS = -lcrypt -lm I don't know if that's the problem or not. All I know is, something that used to compile fine, now chokes at the configure stage with a message about guile-config. What was the message? Did you look at the spot in the configure that it's failing? Usually looking at this and/or running the same test that's failing stand-alone provides some clues. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: mkdir: cannot create directory `/cygdrive/u': No such file or directory
PoWah Wong wrote: After clicking the Cygwin icon on my windows XP desktop, this message appeared: mkdir: cannot create directory `/cygdrive/u': No such file or directory Copying skeleton files. These files are for the user to personalise their cygwin experience. These will never be overwritten. /usr/bin/install: cannot create directory /cygdrive/u: No such file or directory /usr/bin/install: cannot create directory /cygdrive/u: No such file or directory /usr/bin/install: cannot create directory /cygdrive/u: No such file or directory bash: cd: /cygdrive/u: No such file or directory [EMAIL PROTECTED] /etc/skel $ Somehow Cygwin depend on the network drive U is connected. Is there a way to change the dependence from drive U to drive C? 1. Change your Windows domain user to have another home directory. 2. Edit your '/etc/passwd' file to point to the directory you want to be your home. 3. Recreate your '/etc/passwd' file telling it to use a different path for your home (see 'man mkpasswd' for details on switches to do this). Only (1) is transparent across all invocations of 'mkpasswd'. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: Wrong root directory
On 11/17/2006, Timothy Madden wrote: I did not thought that mount can change even the file-system root. Thank you for your information. What does 3PP mean ? http://cygwin.com/acronyms/#3PP -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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 doenst work with the Network Drives
Ilya Vishnyakov wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I'm trying to set up a simple cron job with the network drive. I use cron 3.0.1 with cygwin.my crontab has this : * * * * * /usr/bin/cp /tmp/date.txt /etc/date.txt it works fine once i start the cron job however when try to * * * * * /usr/bin/cp /tmp/date.txt /cygdrive/Z/PUBLIC/stas/date.txt nothing happens! /cygdrive/Z/PUBLIC/stas/ has drwxr-xr-x permissions when i try to chmod it via cygwin, permissions wont change. When i simply run the command: /usr/bin/cp /tmp/date.txt /cygdrive/Z/PUBLIC/stas/date.txt, it works. Please help me to figure out why cron wont work with the network drive. Thank you! http://cygwin.com/faq/faq-nochunks.html#faq.using.shares -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: mkdir: cannot create directory `/cygdrive/u': No such file or directory
PoWah Wong wrote: * From: Larry Hall (Cygwin) reply-to-list-only-lh at cygwin dot com * To: cygwin at cygwin dot com * Date: Fri, 17 Nov 2006 12:04:47 -0500 * Subject: Re: mkdir: cannot create directory `/cygdrive/u': No such file or directory * References: [EMAIL PROTECTED] * Reply-to: cygwin at cygwin dot com PoWah Wong wrote: After clicking the Cygwin icon on my windows XP desktop, this message appeared: mkdir: cannot create directory `/cygdrive/u': No such file or directory Copying skeleton files. These files are for the user to personalise their cygwin experience. These will never be overwritten. /usr/bin/install: cannot create directory /cygdrive/u: No such file or directory /usr/bin/install: cannot create directory /cygdrive/u: No such file or directory /usr/bin/install: cannot create directory /cygdrive/u: No such file or directory bash: cd: /cygdrive/u: No such file or directory [EMAIL PROTECTED] /etc/skel $ Somehow Cygwin depend on the network drive U is connected. Is there a way to change the dependence from drive U to drive C? 1. Change your Windows domain user to have another home directory. 2. Edit your '/etc/passwd' file to point to the directory you want to be your home. 3. Recreate your '/etc/passwd' file telling it to use a different path for your home (see 'man mkpasswd' for details on switches to do this). Only (1) is transparent across all invocations of 'mkpasswd'. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- I use Windows XP Home. How to change Windows domain user to have another home directory? You have to talk to you domain admin. I added the HOME and HOMEDRIVE environment variables by the Control Panel, the message /usr/bin/install: cannot create directory /cygdrive/u: No such file or directory disappeared. However, it still want to use /cygdrive/u for ssh. $ ssh [EMAIL PROTECTED] Could not create directory '/cygdrive/u/.ssh'. Cygwin will only look at $HOME. $HOMEDRIVE is extraneous for Cygwin. 'ssh' can't look at environment variables. It's a chicken-and-egg thing. That's why I recommended making changes to your '/etc/passwd' file. 'ssh' only looks at the home directory mentioned there. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: cygheap base mismatch detected - only on Vista x64, not seen on Vista x86
On 11/17/2006, Joseph Koenig wrote: Has anyone seen a similar error? Has anyone got a clue as to WAR? Perhaps a rebase? I have tried disabling DEP for bash and ls as I am worried about address space randomization causing problems with fork, but that exists in Vista32 and I don't have problems on that. Did you see the email archives? http://sourceware.org/ml/cygwin/2006-11/msg00059.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 -- 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 setup
dubcek wrote: My problem is that, even though cygwin installs itself without making any objections, nothing works. When I clock on the icon or on cygwin.bat windows flashes the cygwin window on my screen but immediately disappears. I reinstalled cygwin (which originally worked very well) many times. Because I am desperate after trying the install procedure countless times, I am sending you the setup.log file. Thanks for any help. Actually, you didn't attach any log file. I would recommend starting a command prompt window and running 'cygwin.bat' from there. You obviously have a configuration problem (did you reboot when you were asked to?) but you're not going to get allot of insight without seeing the messages output. Running 'cygwin.bat' from the command prompt will give you that information. I also suggest you read and follow the problem reporting guidelines found at http://cygwin.com/problems.html, particularly if you need to follow-up on this issue with the list. Pay particular attention to the bit about *attaching* cygcheck output. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: Error in 'cat /proc/uptime' output
On 11/21/2006, Rajesh Tiwari wrote: Thanks Dave, but I was looking for any patches for this issue. regards, Rajesh In that case, you may want to review the cygwin-patches list, cvs logs, changelogs, or even the release announcements. All of these should provide some insight, though the release announcements and/or changelogs would probably provide the info at the level that you'd most likely be able to easily relate it to your problem. That's, of course, no guarantee that you can apply it to some older local build that you might want to patch. But it would be a start for doing such an evaluation. Of course, it's likely to be quicker and easier just to upgrade, if you have the option. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: OpenSSH and Microsoft ADS
Rui Covelo wrote: Hi! I'm a Linux and Mac OSX user but, unfortunately, I currently am a windows sysadmin. Therefore I try do use cygwin to fill some deficiencies of windows boxes. I recently installed Cygwin and an OpenSSH server in a windows 2003 box. It has been running fine and all my colleagues are very happy with rsync capabilities... all but one! One of my colleagues as been having problems running Microsoft Automated Deployment Services (ADS) and is blaming it on sshd... something that she didn't know what it was... According to her, she keeps loosing network connectivity and she thinks it is an incompatibility with sshd. I found this very hard to believe but I've been searching for a possible problem. Does anyone know any incompatibility issue between these to services? Do you see anything in sshd that might cause network problems with any other application? No. I'd recommend looking at other general network issues. Or perhaps the autossh package will help? -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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.22: Error from anything using the cygwin dll
Mikkel Erup wrote: I get a message box with the following error trying to run any cygwin program: The instruction at 0x6100365f referenced memory at 0x006ada90. The memory could not be written. id.exe, bash.exe etc. All of them produce the error. Somtimes, like 1 out of 50 or less a program will succeed. For example I just ran uname from a windows command window and it worked the first time, then failed several times. Sometimes the cygwin.bat script will start the bash shell and not show the above message box. In that case the first lines read 5 [main] bash 3316 dll_crt0_1: internal error: couldn't determine location of thread function on stack. Expect signal errors.. Any commands from the bash shell will still produce the error message box described above, though. The setup program didn't succeed normally either because ash.exe and bash.exe crashed showing the message box described earlier. If I boot into safe mode cygwin works but not if I boot into safe mode with network. I tried killing all processes not vital to running Windows as well as stopping all services. Cygwin programs kept producing the error, though. Output from cygcheck -s -v -r is attached. That's because the installation is not complete. As you describe it, it's a chicken'n'egg thing. Perhaps removing '/bin/sh' (if it exists) and making it a copy of '/bin/bash' will allow 'setup.exe' to finish? -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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.22: Error from anything using the cygwin dll
Hugh McMaster wrote: Hi Mikkel, I have tried to install Cygwin, with no luck. The installation did not even finish the final configuration before resulting in errors. By this, I mean 'bash.exe' and 'id.exe' were terminated, resulting in a Microsoft Error Reporting service window appearing. It would appear that there is something incredibly wrong with Cygwin at the moment. There are many possible causes, however. Such causes could include, a new release of a package, a new Cygwin Dynamic Library, etc. And, there is incredibly little in this report that helps anyone here help you figure out where your problem is. Content-free problem reports serve no useful purpose. If you're interested in reporting a problem, please read and follow the problem reporting guidelines at: http://cygwin.com/problems.html Following these guidelines will give people on this list some basis for helping you find the problem you're having. For example, Mikkel's report allowed me to understand that his installation was incomplete. From there, I could suggest one possible course of action: http://cygwin.com/ml/cygwin/2006-11/msg00686.html The more high-quality the problem report, the better the feedback. :-) -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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.22: Error from anything using the cygwin dll
Christopher Faylor wrote: On Mon, Nov 27, 2006 at 02:36:45PM -, Dave Korn wrote: On 27 November 2006 14:06, Mikkel Erup wrote: Making sh.exe a copy of bash.exe and running the installer to reinstall produces the same error for bash.exe, ash.exe, sed.exe, sh.exe, rm.exe, cmp.exe and a some others (The instruction at 0x6100365f referenced memory at 0x006ada90. The memory could not be written). Will try booting to safe and install from the hdd to see if it lets the installer complete. I am also wondering why cygwin works if I boot to safe mode without network. As I said it doesn't work if I boot to safe mode with network. You wouldn't by any chance be using any kind of firewall or internet security packages, would you? Something by Norton/McAffee, perhaps? And, this wouldn't be a situation of multiple cygwins on the machine, would it? And, as has been previously requested, cygcheck output would be useful. Actually, Mikkel was good enough to provide the 'cygcheck' output with his original message. :-) http://cygwin.com/ml/cygwin/2006-11/msg00683.html There's no other cygwin1.dll found, though that was my first thought too. I'm with Dave and Mikkel in believing that the difference between safe mode and not is significant. I'm betting on virus scanners/firewalls or some network driver. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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.22: Error from anything using the cygwin dll
Mikkel Erup wrote: --- Hugh McMaster [EMAIL PROTECTED] wrote: Hi everyone, After doing some analysis of this issue, I have determined the problem to most likely be Agnitum Outpost Firewall. I am not disputing your findings (Mikkel, anyone else), but all of the evidence that I have learned point to this. In fact, I installed the trial version 4.0 of Outpost Firewall and the problem starts. Once I had uninstalled the software, the problem disappears. According to the Agnitum Forums, the developers are working on a solution to the problem. A workaround is to uninstall version 4 of the firewall, and install version 3.51. This will provide firewall protection for the computer, while allowing the use of Cygwin as well. Hope this helps, Hugh Thanks! It was indeed Outpost 4 causing it. Even stopping Outpost didn't fix the problem. Booting to safe mode with networking, making sure no Outcrap processes was running didn't fix it either. It must be starting some hidden process or modifying system files or something like that. I'm not sure exactly what was causing it but removing Outpost fixed it. Thanks God I was only using the trial. It messes with the network stack. This happens at install time, not run-time. That means that you have to un-install it to see if it's the culprit, as you found out. This is a common theme for many software firewall products. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: directory permissions problem with net use
Dave Sinclair wrote: If I ssh (as root) into my Windows 2003 box running Cygwin and then in the Cygwin shell create a network share, then things don't quite work as I expected.. [EMAIL PROTECTED] / $ net use s: beech.mydomain.com\\svctools The command completed successfully. [EMAIL PROTECTED] / $ df Filesystem 1K-blocks Used Available Use% Mounted on C:\cygwin\bin 78148160 11690696 66457464 15% /usr/bin C:\cygwin\lib 78148160 11690696 66457464 15% /usr/lib C:\cygwin 78148160 11690696 66457464 15% / c:78148160 11690696 66457464 15% /cygdrive/c d: 389140389140 0 100% /cygdrive/d df: `/cygdrive/s': Permission denied Curiously, you can cd into subdirectories on the S: drive, but you can't list the root directory on S: [EMAIL PROTECTED] / $ cd /cygdrive/s [EMAIL PROTECTED] /cygdrive/s $ ls ls: cannot open directory .: Permission denied [EMAIL PROTECTED] /cygdrive/s $ cd perl [EMAIL PROTECTED] /cygdrive/s/perl $ ls docs tc which seems a bit weird if you go to the S: drive in an native windows command box, then dir S: works fine. Can anyone spot what I'm doing wrong? Why is permission denied in the /cygdrive/s directory even though one can cd into its subdirectories? many thanks 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 public key authentication. The former should work. The latter requires the user name and password supplied to net use as I mentioned above. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: man 1.5p: Unrecognized line in config file: KNROFF...
Alexey Lyubimov wrote: @Volker: Thank you! I've commented out the two lines in man.conf and now it's ok! But I wonder why did that lines suddenly appear in my local man.conf - though I have not asked `man' about them? The used to be part of the standard man.conf file delivered with the man package. Then things changed. ;-) -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: man 1.5p: Unrecognized line in config file: KNROFF...
Larry Hall (Cygwin) wrote: Alexey Lyubimov wrote: @Volker: Thank you! I've commented out the two lines in man.conf and now it's ok! But I wonder why did that lines suddenly appear in my local man.conf - though I have not asked `man' about them? The used to be part of the standard man.conf file delivered with ^^^ They the man package. Then things changed. ;-) Ugh! -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: directory permissions problem with net use
Dave Sinclair wrote: Larry Hall (Cygwin reply-to-list-only-lh at 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 public key authentication. The former should work. The latter requires the user name and password supplied to net use as I mentioned above. Thanks Larry, i tried it with a passoword/userid (see below) but no joy. So you're using public key authentication? Does it work OOTB with password auth? here's the cygcheck -srv output etc: Should have told you to attach that. My bad. :-( -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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 jobs quit after 1 minute
Andrew Louie wrote: Dave Korn dave.korn at artimi.com writes: On 29 November 2006 21:08, Andrew Louie wrote: I want to set up a cron job to execute a perl script every day at 4am. I have successfully set up the job so that it will execute the script, the only problem is 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 executing when invoked from the cronjob. does anyone know how to keep the cron service from exiting after 1 minute? Write a script that doesn't crash after 1 minute? cheers, DaveK It dosn't crash, when i run it standalone, it will complete successfully, only when it is run by the cron service, does it just terminate after one minute. alittle more information on the script: the first part of the script does: it reads all the *.tec.gz files in the dir one by one, unzips them, preplots them, and zips them back up. this loop of operations can take a while, and each unzip/preplot/zip process completes successfully, the cron service will wait for the unzip/preplot/zip process to complete before terminating my script. Is there reason to believe that the problem you're seeing is Cygwin-specific? If so, please read and follow the problem reporting guidelines found at: http://cygwin.com/problems.html If not, check the 'cron' docs, etc. Saying that the script runs fine standalone doesn't mean it will run under 'cron' without complaint, for example. My guess is that it's whipping through your list and doing nothing or it doesn't find the list to start with. A simple script that sits in an endless loop or sleeps a certain amount of time should verify whether your problem is something like this or not. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: Help running bash scripts
Amar wrote: Dave Korn dave.korn at 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 command (man bash; see CONDITIONAL EXPRESSIONS). Avoid using that keyword in Bash scripts and anywhere else Bash might trip over it (such as script and program names). test != test.sh. No confusion is at all possible. Bash is not DOS and does not attempt to append .exe/.com/.bat extensions to every command filename entered, and nor does it try appending .sh either. cheers, DaveK Hi, I have little bit different problem. I install cygwin with bash and when i try to run so,simple unix command and it says command bot found. It doesn't know commands like ls, man, sh, gcc etc.. so can anyone tell me what is the problem?? I install all the packages. Please read and follow the problem reporting guidelines found here: 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 -- 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: system account files mystery
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? Password authentication is done through Windows. Passwords on all NT-based platforms come from Windows. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: system account files mystery
dsacks wrote: No, that didn't occur to me - and it seems to work. How does the permission system work?! http://cygwin.com/cygwin-ug-net/ntsec.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 -- 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: autoconf
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 solution to having these macro's work correctly on cygwin? or did I break it by using the --build option? BTW, I can't test it without the --build option because the configure script doesn't even get that far otherwise, since this is a mingw package (sort of). Sounds to me like the file you're feeding to autoconf has DOS line endings in it. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: autoconf
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 configure script with ./configure --build=mingw32 could that be the problem? Is there any solution to having these macro's work correctly on cygwin? or did I break it by using the --build option? BTW, I can't test it without the --build option because the configure script doesn't even get that far otherwise, since this is a mingw package (sort of). Sounds to me like the file you're feeding to autoconf has DOS line endings in it. Yes, this is correct. The AC_CHECK_SIZEOF macro does not work with -mno-cygwin unless there is a cygwin version of 'cat' on the path. Is there a standard way to resolve this problem? I'm not sure. I'm assuming not using '-mno-cygwin' is not an option? -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: autoconf
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 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 these macro's work correctly on cygwin? or did I break it by using the --build option? BTW, I can't test it without the --build option because the configure script doesn't even get that far otherwise, since this is a mingw package (sort of). Sounds to me like the file you're feeding to autoconf has DOS line endings in it. Yes, this is correct. The AC_CHECK_SIZEOF macro does not work with -mno-cygwin unless there is a cygwin version of 'cat' on the path. Is there a standard way to resolve this problem? I'm not sure. I'm assuming not using '-mno-cygwin' is not an option? 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 build system builds many other packages. I can't figure out how to get past this problem. Any help at all would be greatly appreciated. I even tried putting ~/bin/cat in my path, where cat does dos2unix and then calls /usr/bin/cat, but that didn't work either. I'm not sure why. I was sort of looking for a solution that was clean. Forgive me for being dense but why does the requirement to build apr with -mno-cygwin mean that you have to run configure with it? OK, it's not 'clean' but what else am I missing? -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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 rcp or scp to work on a home wireless network
Charles D. Russell wrote: What is the easiest way to get rcp or scp working on a simple home wireless LAN? I get: $ scp arctime [EMAIL PROTECTED]:testfile ssh: connect to host sony06 port 22: Connection refused $ rcp arctime [EMAIL PROTECTED]:testfile sony06:Connection refused I have set up /etc/hosts, .rhosts, and .ssh/authorized_keys. Is there something else to configure? Simple Windows File Sharing works OK,. Switching off firewalls does not help. Something is blocking port 22. Firewall software is the typical culprit. Virus scanners *may* too. Disable any/all of these and try again. If it doesn't work, uninstall these and try again. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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 scripting problem
Andrew Louie wrote: while trying to run some configure scripts i get this error: : command not found3: ./configure: line 21: syntax error near unexpected token `elif' '/configure: line 21: `elif test -n ${BASH_VERSION+set} (set -o posix)/dev/null 21; then additional I have written a simple script that consits solely of: cd /path/to/project /usr/bin/perl /path/to/script/script.pl cd /path/to/project2 /usr/bin/perl /path to/script/script.pl ... for every single line of that script, i get the error :command not found... but it executes anyway, even though it says there's an error, it still works! snip You have DOS line endings in these files. Use 'd2u' to remove them. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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.22: Error from anything using the cygwin dll
Hugh McMaster wrote: Hi Larry, and everyone, I would just like to add that this issue has been resolved by Agnitum, the developers of Outpost Firewall. Terrific! This list thanks you and them. :-) -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: No manual entry for ls
Jared Silva wrote: Not using the latest files caused the problem. Maybe I should take the reboot warning more seriously. $ locate .new D:/UNIX/cygwin/bin/bash.exe.new D:/UNIX/cygwin/bin/cygiconv-2.dll.new D:/UNIX/cygwin/bin/cygncurses-8.dll.new D:/UNIX/cygwin/bin/cygreadline6.dll.new D:/UNIX/cygwin/bin/cygwin1.dll.new D:/UNIX/cygwin/bin/cygz.dll.new D:/UNIX/cygwin/bin/libW11.dll.new D:/UNIX/cygwin/bin/rxvt.exe.new That's a very fair assumption. 'setup.exe' knows when you need to reboot in order to complete the latest installation process. If you ignore the directive to reboot, you may find some or all of Cygwin no longer works. Rebooting will fix the problem. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: Libarcball
dvmorris wrote: Does anyone know anything about libarcball? I am trying to compile a linux program on cygwin, and I get an error saying a file libarcball.a is incompatible, and then it says cannot find -larcball. I can't seem to find any documentation on it anywhere, and I don't really know who to ask for help, http://cygwin.com/cgi-bin2/package-grep.cgi?grep=libarcball You can gather from the results of the above query that libarcball.a is not part of any Cygwin package currently distributed through cygwin.com. If you want it, you'll need to build it yourself or find someone on the net who has already. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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 + make 10 time slower than equivalent linux make (same ifc compiler)
On 12/03/2006, Eliah Kagan wrote: If not, could you use the make that comes with MinGW (http://www.mingw.org/)? If a POSIX-like environment is required, would MSYS do the trick as well (http://www.mingw.org/msys.shtml)? Since MSYS is an early fork of Cygwin, if the performance problem the OP is seeing is intrinsically Cygwin-based, MSYS will likely, though not guaranteed, share the performance problems. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: No manual entry for ls
Jared Silva wrote: Larry Hall wrote: That's a very fair assumption. 'setup.exe' knows when you need to reboot in order to complete the latest installation process. If you ignore the directive to reboot, you may find some or all of Cygwin no longer works. Agreed. Rebooting will fix the problem. Not necessarily. These files were all missed during a reboot. I usually reboot my PC once per week. I tend to Hibernate or leave it running at the end of the day. I also run setup.exe multiple times per week to check for updates. There may be some cases where the files that need updating are missed. If that's true, it would be indicative of a bug. If you're willing to help track it down, please provide the details of how you reproduce this situation. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: Vista x64 STARTUPINFO Issue
McArdle, Christian wrote: As I understand it, cygwin doesn't yet work on Vista x64. Does anyone know if a fix is under development? From what I have read, it is related to Windows no longer using the STARTUPINFO reserved parameters to pass information onto the new process. I have no idea exactly how cygwin does this, but I've done similar things in a more portable fashion using named pipes (named after a newly created GUID), so whether that would be a solution or not, I don't know... From the above, it's seems like you've read this thread but if not, this is the current state of affairs: http://cygwin.com/ml/cygwin/2006-11/msg00580.html If you have some ideas that you'd like to propose, feel free. :-) -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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 CRLF problems (I have read the recent announcement)
Kevin Layer wrote: I'm really perplexed by the following behavior: [EMAIL PROTECTED] ~ $ cat -v foo1.sh echo 8010 foo1.out [EMAIL PROTECTED] ~ $ cat -v foo2.sh sh foo1.sh version=`cat foo1.out` echo ${version}.bar foo2.out cat -v foo2.out [EMAIL PROTECTED] ~ $ sh foo2.sh 8010^M.bar^M [EMAIL PROTECTED] ~ $ mount C:\cygwin\bin on /usr/bin type system (textmode) C:\cygwin\lib on /usr/lib type system (textmode) C:\cygwin on / type system (textmode) c: on /c type system (textmode) z: on /z type system (textmode) [EMAIL PROTECTED] ~ $ The (real) scripts involved run on non-Windows platforms, so putting in `d2u' isn't an option. I'd rather not resort to `tr' either, since I have a large number of places to fix. Large. The bug, IMO, is the assigment to version of `cat foo1.out` contains a ^M. I'm on a text mount, so this is counter to what I thought would happen. Time to adjust your expectations. ;-) Text mounts write CRNL as EOLs for all files that are not explicitly opened as binary (or text for that matter). Text mounts remove the CR from EOLs read from files that are not explicitly opened as binary (or text). 'cat' explicitly opens the file as binary. If you need it to work otherwise, write a simple wrapper. Or just do the easy thing and change your mode to 'binary' and run 'd2u' on your local versions of the scripts. This is most compatible with the majority of non-Windows platforms. ;-) -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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 + vista x64
Andrew Paprocki wrote: Corinna, I've been trying to figure out why cygwin isn't working properly on Vista x64. I saw the thread you posted to here: http://www.cygwin.com/ml/cygwin/2006-11/msg00595.html I see that cygwin is performing the trick outlined here: http://www.catch22.net/tuts/undoc01.asp (Search for Pass arbitrary data to a child process!) This is achieved because the child_info class is declared to have: DWORD zero[4]; // must be zeroed It appears as if this trick is no longer working under Vista x64. The question is, does this code now have to resort to using VirtualAllocEx/WriteProcessMemory, or is there a way around it? Have you been able to isolate this into a simple binary test? I am currently running on a Vista x64 system right now with VS2005 installed in case you would like me to try out anything which may be of help. You may be interested in this update from Corinna today: http://cygwin.com/ml/cygwin/2006-12/msg00159.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 -- 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: Help for debug and pause
sitha wrote: Hi Everybody, I am bit new to cygwin. I want to know about two things very clearly pls help me. 1. how to debug a program written in C++? Pls give me little detail explanation. Use 'gdb' like so 'gdb executable name'. executable name must have been compiled with the '-g' switch. 2.How to pause a program while it is runing and then how to restart again? CTRL-C to stop. 'c' to continue. None of the is Cygwin specific and is therefore off-topic for this list. You should look at the 'gdb' documentation for more info. You can find this documentation locally if you installed 'gdb' by doing 'man gdb' or 'info gdb'. You can find the documentation on the net at the GDB home page: http://www.sourceware.org/gdb/ -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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 opengl problem
dvmorris wrote: dvmorris wrote: I finally managed to get this c++ program compiled on cygwin, and when I start it up, the interface (done in fltk) works great, but the opengl display window is frozen. It only shows the last frame from the openGL buffer on the machine. if i open another opengl program, display something, then go back to this one, it shows what was display last in the other program. When i resize the window, the image gets scrambled, etc... but nothing displays. Everything else about the program works though. How do I begin to troubleshoot something like this. My professor who wrote the code told me he used to compile on an older version of cygwin, and the newer versions gave him this same problem, and he never had time to figure out why. Another friend who has taken a look at it thinks it might have something to do with calling gl functions before initializing the gl context, which is apparently allowed on linux. He tried compiling the same code on a macbook pro, and he says it crashes because the code makes a gl call before initializing the gl context. My cygwin compiled version doesn't crash, it even allows me to open and save obj files and perform operations... I know I haven't shown any code here, or given anything to really help diagnose much, but if someone could give me pointers as to where to begin to debug this problem, i would really appreciate it. dave I should add this as well... this is what cygwin puts out after running the makefile: Info: resolving Fl::e_keysym by linking to __imp___ZN2Fl8e_keysymE (auto-import) Info: resolving Fl::e_state by linking to __imp___ZN2Fl7e_stateE (auto-import) Info: resolving Fl::e_y by linking to __imp___ZN2Fl3e_yE (auto-import) Info: resolving Fl::e_x by linking to __imp___ZN2Fl3e_xE (auto-import) Info: resolving vtable for Fl_Menu_Barby linking to __imp___ZTV11Fl_Menu_Bar (auto-import) Info: resolving vtable for Fl_Gl_Windowby linking to __imp___ZTV12Fl_Gl_Window (auto-import) Info: resolving vtable for Fl_Double_Windowby linking to __imp___ZTV16Fl_Double_Window (auto-import) i have no idea what that stuff means, but thought it might be important... If you don't know, then you can ignore it. These are information-only messages meant to tell you that you didn't explicitly provide references for these symbols so the linker has imported ones it found. If you don't know that this is wrong, chances are it's right and is what you want. From the information you've given, it sounds to me like the code is suspect. I'd start by getting this to work as it should with portability in mind. The fact that it works on one system/compiler/whatever is not an indication that the code is correct. Eliminating suspect code fragments will likely go a long way towards find and resolving your problem. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: Vista 64 users, please test snapshot
Danny wrote: Corinna Vinschen corinna-cygwin at cygwin.com writes: I've applied a patch to Cygwin which should workaround what appears to be a compatibility bug in WOW64 on Vista 64. If you want details, see the huge comment in the sources, file dcrt0.cc, get_cygwin_startup_info(). http://cygwin.com/acronyms/#WJFFM Please try the latest snapshot DLL from http://cygwin.com/snapshots/ Note that this snapshot will show weird directory related behaviour when trying to run tclsh, gdb -w resp. insight, or strace. This is the result of another change and has nothing to do with Vista 64. Corinna as for that vista32 issue i was having, i let it sit around for a while, and got this: 5 [main] zsh 5996 C:\cygwin\bin\zsh.exe: *** fatal error - unable to remap C:\cygwin\lib\zsh\4.3.2\zsh\zutil.dll to same address as parent (0x29) != 0x36 5 [main] zsh 4372 child_info::sync: wait failed, pid 5996, Win32 error 183 618 [main] zsh 4372 fork: child 5996 - died waiting for dll loading, errno 11 Did you rebase? -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: printf '\377\376h\000\r\000\n\000'|file - #wrong result?
Tom Rodman wrote: On Mon 12/4/06 14:47 CST cygwin@cygwin.com wrote: --snip ~ $ date;uname -a Mon Dec 4 14:31:38 CST 2006 CYGWIN_NT-5.0 OurServer121 1.5.22(0.156/4/2) 2006-11-13 17:01 i686 Cygwin ~ $ printf '\377\376h\000\r\000\n\000'|file - /dev/stdin: MPEG ADTS, layer I, v1, 192 kBits, 32 kHz, Stereo --snip ~ $ date;uname -a Mon Dec 4 14:34:15 CST 2006 Linux localhost.localdomain 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux ~ $ printf '\377\376h\000\r\000\n\000'|file - standard input: Little-endian UTF-16 Unicode character data, with CR line terminators ~ $ From above you can see linux and cygwin file output differs. The printf above was inspired recently when file mis-identified a unicode file. I don't think this is a new problem. Maybe not a new problem, but this older (flame me) cygwin version works better: ~ $ date;uname -a #box in Bangalore Thu Dec 7 00:51:35 IST 2006 CYGWIN_NT-5.0 XXXblr001 1.3.20(0.73/3/2) 2003-02-08 12:10 i686 unknown unknown Cygwin ~ $ cygcheck -c file Cygwin Package Information Package Version file 3.39-1 Use -h to see help about each section ~ $ printf '\377\376h\000\r\000\n\000'|file - standard input: Little-endian UTF-16 Unicode character data, with CR line terminators ~ $ I understand this is low priority.. Thanks as always for cygwin! This is a change (or bug) in 'file', not Cygwin. I get the same thing as you do with Cygwin's version on FC4. If you think there is an issue here, you should take it upstream. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: Lots of Vista32 problems
Michael J. Wheeler wrote: OK, I've been working on this problem for several days now and I'm about ready to give up all together. I'm really hoping someone can help me out. I used cygwin for years on XP and now that I've moved to Vista, I can't get anything to work. Whenever I try to run /usr/X11R6/bin/startxwin.bat , it crashes. I have created a stackdump and put it here: https://go.pittstate.edu/mjw/cygwin.strace . I was told to rebaseall and that didn't work. I also tried rebasing to a different address, then back to the default -- still nothing. Next, I was told to try to rebuild the current cygwin package. That fails on make install every time (collect2.exe). After that, I tried building the latest snapshot... Now configure fails near the beginning when it's testing to see if gcc works. The only way I've seen to get around that is to do a full reinstall.. but that's kind of frustrating waiting for 2 hours to reinstall everything. Basically I'm at my wits end and I really hope somebody can help before I give up on being able to use cygwin on Vista... Have you followed the recent threads on Vista? How you tried just using a snapshot? -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: How to run sh.exe without a console window
[EMAIL PROTECTED] wrote: I want to be able to run sh.exe from a dos environment (like Start-Run or the File Explorer) and not have it pop up a console window. For example, if I were to type this in the Start-Run window: c:\cygwin\bin\sh.exe -c c:/windows/notepad.exe I would see two windows--one for sh.exe and other for notepad. (I'm just using notepad as an example). I want to be able to run sh.exe without the DOS console window showing up. Is there a way to do that? Install the 'run' package. Oh, and use it. ;-) -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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 with cd in Cygwin scripts
David Bishop wrote: Last night I updated Cygwin, and I've had problems with my scripts afterwards. I tried on the web and found some similar issues from 2004, but with no resolutions. I am running: uname -a CYGWIN_NT-5.1 davesxp 1.5.22(0.156/4/2) 2006-11-13 17:01 i686 Cygwin I can manually use the cd command without problems, but when I try to use it in a script, I just get: : No such file or directory The top of the script that I am trying to run looks like this: #!/bin/sh # rm -f putfile echo put supernova.html putfile # Check the sn2006 directory cd sn2006 down=0 . cd ../sn2005 Manually, all of these cd commands work, but when I put them in a script I only get errors. I run the script with: . /home/dave/scripts/buildput Any ideas? Sure. First, don't send more than one copy of your report to the list. Second, read and follow the problem reporting guidelines found here: http://cygwin.com/problems.html That will give us something to go on. Two other things to try before going through all that: 1. Reboot. 2. Make sure /bin/sh.exe and /bin/bash.exe are the same size and date. If they aren't, copy /bin/bash.exe to /bin/sh.exe and try your script again. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: No octave prompt (no error messages)
Albert Vos wrote: On 07 December 2006 14:22, Tony Richardson wrote: Albert Vos vos_albert at hotmail.com writes: at home and at work I have the same problem with octave under cygwin. In both cases I octave just quits without giving any output, no prompt, no error messages. One computer runs on win2000 Sp4 on which I'm no administrator and the other runs on winXp Sp2 on which I have all rights. You might try starting octave using octave -V or octave -x (or both) to determine if it is getting hung in one of the startup scripts. Otherwise follow the problem reporting guidelines ... Tony Richardson Also try cygcheck -c octave, which verifies the package is intact. If that doesn't show anything, try cygcheck /bin/octave.exe which shows all the DLLs that octave depends on, and make sure they're all installed: maybe there's a missed dependency in the setup.ini lines. octave -V, octave -x, octave -V -x all output nothing cygcheck -c octave Cygwin Package Information Package VersionStatus octave 2.1.73-1 OK cygcheck /bin/octave.exe M:/cygwin/bin/octave.exe I attached the cygcheck.out file, as requested. It was made on the win2000 computer with rxvt as terminal, but I have the same problem with cmd as terminal. You mean 'cmd.exe' or 'bash' in 'cmd.exe'? If the latter, remove 'tty' from your CYGWIN environment variable and try again. See: http://cygwin.com/cygwin-ug-net/using-cygwinenv.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 -- 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: Binaries Don't Execute SOLVED (sort of)
Dave Korn wrote: On 08 December 2006 10:51, tbrowder wrote: I removed the entire installtion and started anew. Everything works now, but the command line response gives extra characters sometime. Perhaps the latest bash update has something to do with that. Known bug in libreadline vs. prompts with non-printing control chars; should be fixed upstream soon-ish as they are aware. Unless you're referring to something else, this is fixed and release already: http://cygwin.com/ml/cygwin-announce/2006-11/msg00019.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 -- 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.21-1 Release: Windows memory resources do not recover.
Dave Silvia wrote: -- On Thu, 07 Dec 2006 06:36:05 -0700 Eric Blake wrote -- Are you SURE you don't have a buggy driver installed? Known culprits include Agnitum outpust, Mcafee virus scanners, Logitech webcam, ... In other words, the leak is not caused by cygwin, but by your buggy driver leaking memory for every process spawned by your process-intensive scripts. The list you gave above has an ellipsis, usually denoting there are more. Is there a place where this list is kept? I'd like to know because I'd like to see if the one I found that ultimately caused the problem is on that list. ... = spyware tools. Everyone knows that. ;-) As you found, spyware tools are often culprits as well, though I don't recall PCTools being specifically implicated on this list. So your findings are good to know. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: FIX for : skipping overly long name error
Steeve Juair wrote: Hello, I currently have a problem about rsync and long file name limit in RSYNC. I used rsync+ssh for backup remote windows server. The problem that I would like to know if you have new version or a path avaible to solve this problem about the max length 260 characters. For this error :building file list ... skipping overly long name: I found since the rsync version 2.6.7 you have increase the buffer size for solve some problems with cygwin. Also I have installed the last version of cynwin and replace for the last version of cwrsync 2.6.9 and I have the same problem again. Cut for rsync 2.6.7 news - Some buffer sizes were expanded a bit, particularly on systems where MAXPATHLEN is overly small (e.g. cygwin). I found your answer on malling list : http://www.cygwin.com/ml/cygwin/2005-04/msg00395.html So did you have a solution for that As the posting above that you referenced indicates, there is no solution for this that will work with Win9x/Me versions of Windows. There is the solution mentioned for other Windows versions but it's quite some work to make this happen. Since Cygwin is dropping support for Win9x/Me versions, it's now more reasonable to solve this problem but http://cygwin.com/acronyms/#SHTDI. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: printf '\377\376h\000\r\000\n\000'|file - #wrong result?
Tom Rodman wrote: On Wed 12/6/06 14:34 EST Larry Hall wrote: This is a change (or bug) in 'file', not Cygwin. I get the same thing as you do with Cygwin's version on FC4. If you think there is an issue here, you should take it upstream. Per, the upstream maintainer of 'file', it is a bug that can not be fixed by updating the magic files, a fix has been tested, but unfortunately it will require a new release of 'file'. Good to know. Thanks. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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.22-1: Problems with cygwin binaries execution on Windows 2003
Arseny Klimovsky wrote: Hello! I installed cygwin on my MS Windows 2003 and can't cope with problems during execution any exe file except cygcheck. After every execution I have something like this. Faulting application yes.exe, version 0.0.0.0, faulting module cygwin1.dll, version 1005.22.0.0, fault address 0x365f. If I copy the exe and needed dll files on another system, it works. What can it be? (I'll continue my exploration of the problem) My WAG is that Dev-Cpp has clashing utilities that are getting in your way. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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.exe: warning: could not find /tmp, please create!
João Gonçalves wrote: I am trying to start cygwin and I get this error message. I understand, from what I read, that this error is because I am using a different user. And that's true, I am using a different user, but I also lost the old user, because I installed windows again! Is to mount cygwin in my current user withou going to the old one? Or do I have to install cygwin again? You can mount '/tmp' to anywhere you like. You don't need to reinstall. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: print from xfig
Steven Woody wrote: On 12/5/06, Andrew Louie [EMAIL PROTECTED] wrote: Steven Woody narkewoody at gmail.com writes: i can run xfig successuflly, but i can not print our network printer. it reported: lpr: printer error: can't open 'd:\printersharename' what do i do? thank you. Can you normally print with lpr? did you try: lpr -P//networkshare/printername i tried: lpr -P//CNZUHPR01 myfile, but got lpr: printer error: can't open '' for writing: The printer name is invalid. i am not pretty sure if the printer name is ok. i got the name by right click the network printer icon in the control panel then select the 'properties'. i know it's a HP LaserJet-2300DN and accessable to me via our company's domain. See the FAQ: http://cygwin.com/faq/faq-nochunks.html#faq.using.printing -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: libraries
Wynfield Henman wrote: I have managed to confuse myself regarding libraries under cygwin, after reading extensively on building dlls under cygwin. Please check if my understanding is correct. (1) For simple static libraries ld's output is fine. Because only cygwin code will access it. (2) Does this follow with *nix shared library format? (if only used by cygwin programs which emulate *nix (does it also know about shared library objects)? (3) The ms-dll shared library format is only necessary if we want ms-programs to be able to use the program. There's no incompatibility of object format between Cygwin static libs and those created by the MS compiler. Ditto for DLLs. There is no such thing as shared libraries in the traditional UNIX sense on Windows. The only incompatibilities between Cygwin built libs/DLLs and MS's are: 1. References to C++ in libs/DLLs built in one won't be resolved in the other (this is true when mixing and matching C++ object code from any compiler). This is not a problem for C code. 2. Calling Cygwin compiled code from a native executable needs some extra steps to make sure that the Cygwin C-runtime initialization code gets called. The reverse situation is not generally a problem. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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 finally installed on vista but now other errors
Mike Knope wrote: I finally got cygwin installed. It seems that the download site I used was not up to a recent build or something. However, now that I have it running I'm seeing errors like this: $ 3 [main] rxvt 1664 D:\cygwin\bin\rxvt.exe: *** fatal error - unable to remap D:\cygwin\usr\X11R6\bin\cygX11-6.dll to same address as parent(0xCB) != 0x1957 and this: $ xterm 191 [main] xterm 3256 child_copy: linked dll data write copy failed, 0x2AB000..0x2AB440, done 0, windows pid 2273236, Win32 error 487 xterm: Error 29, errno 11: Resource temporarily unavailable Reason: spawn: fork() failed And the last item is that XWin.exe won't exit. It goes to 100% cpu and I have to use taskmanager to kill it. I'm running the latest cygwin1.dll from snapshots. Windows Vista Ultimate Edition X86. And did you try rebasing as Corinna suggested? -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: print from xfig
Steven Woody wrote: On 12/13/06, Larry Hall (Cygwin) [EMAIL PROTECTED] wrote: Steven Woody wrote: On 12/5/06, Andrew Louie [EMAIL PROTECTED] wrote: Steven Woody narkewoody at gmail.com writes: i can run xfig successuflly, but i can not print our network printer. it reported: lpr: printer error: can't open 'd:\printersharename' what do i do? thank you. Can you normally print with lpr? did you try: lpr -P//networkshare/printername i tried: lpr -P//CNZUHPR01 myfile, but got lpr: printer error: can't open '' for writing: The printer name is invalid. i am not pretty sure if the printer name is ok. i got the name by right click the network printer icon in the control panel then select the 'properties'. i know it's a HP LaserJet-2300DN and accessable to me via our company's domain. See the FAQ: http://cygwin.com/faq/faq-nochunks.html#faq.using.printing thank you. but the FAQ only explained how to print if one know the printer's network share name. i think my problem firstly is find out the printer name, that is not explained in the FAQ. does anyone get know how to know a printer's share name if the printer is shared via Windows's domain? i am sorry for such a question, but the printer is automatically installed on my computer, might via a network startup script, so i lose the chance to get know the details. the only thing i can do now is to play with the printer's properties dialog. The process that you need to go through to find out the name of a printer on your system and/or domain is really off-topic for this list. Your best choice for a source of this information is your local admin. That said, you should find some information about the printer by looking at the list of available printers that you can find under the printers applet in the control panel. You can also try to install a new network printer through this applet to find those available. You should be able to match up some of the information provided about the available network printers with the one you already have installed. But the most direct route would be to ask you network admin. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: directory listing permission denied on network mounted directory
Srivatsa wrote: Hi, With latest cygwin (1.5.21-1), I am facing this issue of not able to list the directory on a network mounted folder. There is a later release of the cygwin package. I have collected following details to show my settings... Any kind of help would highly appreciated... regards, ...srivatsa --- /cygdrive/z $ net use New connections will be remembered. Status Local RemoteNetwork -- OK Z:\\remote_server\view Microsoft Windows Network The command completed successfully. /cygdrive/z $cat /etc/passwd SYSTEM:*:18:544:,S-1-5-18:: Administrators:*:544:544:,S-1-5-32-544:: Administrator:unused_by_nt/2000/xp:500:513:U-SRIVRAMA-WXP\Administrator, S-1-5-21-3899866716-1901569443-1718271970-500:/cygdrive/c/Documents and Settings/Administrator:/bin/bash ASPNET:unused_by_nt/2000/xp:1003:513:ASP.NET Machine Account,U-SRIVRAMA-WXP\ASPNET,S-1-5-21-38998667 16-1901569443-1718271970-1003:/cygdrive/c/Documents and Settings/ASPNET:/bin/bash Guest:unused_by_nt/2000/xp:501:513:U-SRIVRAMA-WXP\Guest, S-1-5-21-3899866716-1901569443-1718271970-501:/cygdrive/c/Documents and Settings/Guest:/bin/bash HelpAssistant:unused_by_nt/2000/xp:1008:513:Remote Desktop Help Assistant Account,U-SRIVRAMA-WXP\Hel pAssistant,S-1-5-21-3899866716-1901569443-1718271970-1008: /cygdrive/c/Documentsand Settings/HelpAssistant:/bin/bash SUPPORT_388945a0:unused_by_nt/2000/xp:1002:513:CN=Microsoft Corporation,L=Redmond,S=Washington,C=US, U-SRIVRAMA-WXP\SUPPORT_388945a0, S-1-5-21-3899866716-1901569443-1718271970-1002:/cygdrive/c/Documents and Settings/SUPPORT_388945a0:/bin/bash srivrama::185623:25:U-SRIVRAMA-WXP\srivrama, S-1-5-21-3899866716-1901569443-1718271970-500:/home/srivrama:/bin/bash /cygdrive/z $ cat /etc/group root:S-1-5-32-544:0: SYSTEM:S-1-5-18:18: eng10:S-1-5-21-3899866716-1901569443-1718271970-513:25: Administrators:S-1-5-32-544:544: Backup Operators:S-1-5-32-551:551: Guests:S-1-5-32-546:546: Network Configuration Operators:S-1-5-32-556:556: Power Users:S-1-5-32-547:547: Remote Desktop Users:S-1-5-32-555:555: Replicator:S-1-5-32-552:552: Users:S-1-5-32-545:545: Debugger Users:S-1-5-21-3899866716-1901569443-1718271970-1004:1004: HelpServicesGroup:S-1-5-21-3899866716-1901569443-1718271970-1001:1001: Offer Remote Assistance Helpers:S-1-5-21-3899866716-1901569443-1718271970-1006:1006: /cygdrive/z $ ssh remote_server id uid=185623(srivrama) gid=25(eng10) This looks like a domain login with a local group ID. It's not obvious that this would be a problem but perhaps you want to regenerate your '/etc/passwd' and '/etc/group' files. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: Nfs server and rsync
Ulf Stoermer wrote: Hi, I'm running the universal NFS server 2.3 on a WinXP box and nfs-mount a directory from a Linux box. Then, from the Linux box I use the rsync command to copy a file tree from the local Linux drive to the nfs-mounted directory. I'm transferring about 4GB of data and of course I don't expect any marvelous performance, but still, it takes hours. During the transfer I noticed that bascially during all the time the floppy led of the Cygwin machine is switched on and very often I can hear the clicking noise for attempted floppy access. So I guess it's the constant floppy access that makes my transfer so terribly slow. On the other hand, why does the floppy get accessed all the time in first place? Is it nfs-server who does the floppy access and why? If anyone can shed some light on this or point out where to have a closer look at. Any comment is greatly appreciated. Perhaps you can tell us more about your system and what command-line you're using to do the copy. Take a look at the link below for some specific guidelines: 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 -- 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 confusion
Fanie Nel wrote: Hi, I have a very stupid question: I have just installed Cygwin on a new XP computer, and my bash scripts will not run, for example: When running a bash script containing a program name and a parameter file ie pixelplot test.par The pixelplot program runs but cannot find the test.par file ,located in the same directory. Furthermore changing directories , using cd, within a script does not work. Any ideas? Yes. First, please read through the bash announcement: http://cygwin.com/ml/cygwin-announce/2006-12/msg8.html My WAG is that you'll find you have DOS line endings in your binary mounted directories. Run these scripts through 'd2u'. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: directory listing permission denied on network mounted directory
Srivatsa wrote: /cygdrive/z $cat /etc/passwd SYSTEM:*:18:544:,S-1-5-18:: Administrators:*:544:544:,S-1-5-32-544:: Administrator:unused_by_nt/2000/xp:500:513:U-SRIVRAMA-WXP\Administrator, S-1-5-21-3899866716-1901569443-1718271970-500:/cygdrive/c/Documents and Settings/Administrator:/bin/bash srivrama::185623:25:U-SRIVRAMA-WXP\srivrama, S-1-5-21-3899866716-1901569443-1718271970-500:/home/srivrama:/bin/bash /cygdrive/z $ cat /etc/group root:S-1-5-32-544:0: SYSTEM:S-1-5-18:18: eng10:S-1-5-21-3899866716-1901569443-1718271970-513:25: Administrators:S-1-5-32-544:544: Backup Operators:S-1-5-32-551:551: Guests:S-1-5-32-546:546: Network Configuration Operators:S-1-5-32-556:556: Power Users:S-1-5-32-547:547: Remote Desktop Users:S-1-5-32-555:555: Replicator:S-1-5-32-552:552: Users:S-1-5-32-545:545: Debugger Users:S-1-5-21-3899866716-1901569443-1718271970-1004:1004: HelpServicesGroup:S-1-5-21-3899866716-1901569443-1718271970-1001:1001: Offer Remote Assistance Helpers:S-1-5-21-3899866716-1901569443-1718271970-1006:1006: /cygdrive/z $ ssh remote_server id uid=185623(srivrama) gid=25(eng10) This looks like a domain login with a local group ID. It's not obvious that this would be a problem but perhaps you want to regenerate your '/etc/passwd' and '/etc/group' files. To clarify on the group-id, my UNIX server had separate group-id and uid [uid=185623(srivrama) gid=25(eng10)] where as in cygwin /etc/passwd and /etc/group - after running mkpasswd and mkgroup assigned default ones. Ah, forgive me. When I first read through your output, I thought you were actually 'ssh'ing into your box and trying to access the remote file system after that. Also, the my XP belongs to different domain compared to unix-servers. Well that's interesting. Can you attach your 'cygcheck'. Under these conditions, would you suggest to keep same id or to regerate the /etc/passwd files. I think it would be worthwhile to see what 'mkpasswd -d unix server -u srivrama' says. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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 longjmp issue
K Kafka wrote: On 12/17/06, Larry Hall (Cygwin) [EMAIL PROTECTED] wrote: K Kafka wrote: Hi all, I have been looking around for a possible cause for my problem with bash. I left a tail -f running for a few days. When I came back, none of the service would run anymore (cygsrv, exim, sshd). After a bit of researching I've come accross quite a few posts but nothing concrete. It seems that bash.exe is crashing with a WFSO longjmp error after the 5min timeout. Preventing everything else. From some posts, it seems it could be coming from a device (webcam) or a software such as the anti-virus. I have almost nothing installed on this machine aside from MySQL and Tomcat5. Its a Xeon server running Windows 2003 server. Here is the actual error for bash. C:\cygwin\bin 4 [main] bash 3376 C:\cygwin\bin\bash.exe: *** fatal error - WFSO timed out after longjmp Some people have been suggesting to try a rebaseall. Same thing happens, I get two errors, a fhandler_base::fork_fixup immediately and an WFSO longjmp error after 5 min. Here are the errors: C:\cygwin\bin 4 [main] ash 1328 fhandler_base::fork_fixup: /bin/rebaseall - Win32 error 5, handle io_handle0x0 C:\cygwin\bin 4 [main] ash 1856 C:\cygwin\bin\ash.exe: *** fatal error - WFSO timed out after longjmp I've also updated cygwin to the latest version and reinstalled bash and cygsrv. No changes, same errors. If someone has an idea, please let me know. I'm at a loss and can't figure what to do next. Let's start here: Problem reports: http://cygwin.com/problems.html You've given us some information about what you see and when but we're missing allot of specifics about your configuration and a possible test case (or cases). I'd recommend any follow-up posting to this list contain the additional information outlined at the above web page. Hi again, Sorry about the lack of background info. Let's try to correct it. I've attached the cygcheck output and realized that there is a series of not found that includes bash. Also, I was unfortunately not able to reproduce a problem on another sytem. When double clicking on the cygwin icon (or launching bash --login -i from the windows command line), the window hangs blank for 5 minutes and then disappear. In the case of the windows command line, after a few minutes it outputs the following error reported earlier: C:\cygwin\binbash.exe --login -i C:\cygwin\bin 4 [main] bash 3376 C:\cygwin\bin\bash.exe: ***fatal error - WFSO timed out after longjmp There is a few related records in the Windows Application Event Viewer: - Faulting application id.exe, version 0.0.0.0, faulting module cygwin1.dll, version 1005.22.0.0, fault address 0x365f. - Faulting application cygrunsrv.exe, version 0.0.0.0, faulting module cygwin1.dll, version 1005.22.0.0, fault address 0x365f. Also, when I try to start manually a service such as inetd or exim, the error is: - The CYGWIN inetd service terminated unexpectedly. It has done this 2 time(s). - The exim service terminated unexpectedly. It has done this 2 time(s). I hope this is a bit more precise. Thanks you. Yep, that's good. Looks like your installation didn't complete, probably because you didn't stop your services before updating. I'd suggest rebooting, if you have not already since installing. Otherwise, I'd recommend running 'setup.exe' again and allow it to just run with the packages you have already selected. This will run the postinstall scripts, which seem to have not run the last time. If that still doesn't work, look in '/etc/postinstall' and look for scripts that don't have the suffix '.done'. You'll want to run each of these manually with 'c:\cygwin\bin\bash.exe'. That's what rerunning 'setup.exe' should do for you but doing so manually should give you more info about any problems. You can also look in '/var/log/setup.log.full' for diagnostic messages that were generated by 'setup.exe' the last time you ran it. This should give you some information about what postinstall scripts had complaints. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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 longjmp issue
http://cygwin.com/acronyms/#TOFU. Reformatted. K Kafka wrote: On 12/17/06, Larry Hall (Cygwin) reply-to-list-only-lh AT cygwin DOT com wrote: K Kafka wrote: On 12/17/06, Larry Hall (Cygwin) reply-to-list-only-lh AT cygwin DOT com wrote: http://cygwin.com/acronyms/#PCYMTNQREAIYR. There's no need to feed the spammers. Thanks. K Kafka wrote: Hi all, I have been looking around for a possible cause for my problem with bash. I left a tail -f running for a few days. When I came back, none of the service would run anymore (cygsrv, exim, sshd). After a bit of researching I've come accross quite a few posts but nothing concrete. It seems that bash.exe is crashing with a WFSO longjmp error after the 5min timeout. Preventing everything else. From some posts, it seems it could be coming from a device (webcam) or a software such as the anti-virus. I have almost nothing installed on this machine aside from MySQL and Tomcat5. Its a Xeon server running Windows 2003 server. Here is the actual error for bash. C:\cygwin\bin 4 [main] bash 3376 C:\cygwin\bin\bash.exe: *** fatal error - WFSO timed out after longjmp Some people have been suggesting to try a rebaseall. Same thing happens, I get two errors, a fhandler_base::fork_fixup immediately and an WFSO longjmp error after 5 min. Here are the errors: C:\cygwin\bin 4 [main] ash 1328 fhandler_base::fork_fixup: /bin/rebaseall - Win32 error 5, handle io_handle0x0 C:\cygwin\bin 4 [main] ash 1856 C:\cygwin\bin\ash.exe: *** fatal error - WFSO timed out after longjmp I've also updated cygwin to the latest version and reinstalled bash and cygsrv. No changes, same errors. If someone has an idea, please let me know. I'm at a loss and can't figure what to do next. Let's start here: Problem reports: http://cygwin.com/problems.html You've given us some information about what you see and when but we're missing allot of specifics about your configuration and a possible test case (or cases). I'd recommend any follow-up posting to this list contain the additional information outlined at the above web page. Hi again, Sorry about the lack of background info. Let's try to correct it. I've attached the cygcheck output and realized that there is a series of not found that includes bash. Also, I was unfortunately not able to reproduce a problem on another sytem. When double clicking on the cygwin icon (or launching bash --login -i from the windows command line), the window hangs blank for 5 minutes and then disappear. In the case of the windows command line, after a few minutes it outputs the following error reported earlier: C:\cygwin\binbash.exe --login -i C:\cygwin\bin 4 [main] bash 3376 C:\cygwin\bin\bash.exe: ***fatal error - WFSO timed out after longjmp There is a few related records in the Windows Application Event Viewer: - Faulting application id.exe, version 0.0.0.0, faulting module cygwin1.dll, version 1005.22.0.0, fault address 0x365f. - Faulting application cygrunsrv.exe, version 0.0.0.0, faulting module cygwin1.dll, version 1005.22.0.0, fault address 0x365f. Also, when I try to start manually a service such as inetd or exim, the error is: - The CYGWIN inetd service terminated unexpectedly. It has done this 2 time(s). - The exim service terminated unexpectedly. It has done this 2 time(s). I hope this is a bit more precise. Thanks you. Yep, that's good. Looks like your installation didn't complete, probably because you didn't stop your services before updating. I'd suggest rebooting, if you have not already since installing. Otherwise, I'd recommend running 'setup.exe' again and allow it to just run with the packages you have already selected. This will run the postinstall scripts, which seem to have not run the last time. If that still doesn't work, look in '/etc/postinstall' and look for scripts that don't have the suffix '.done'. You'll want to run each of these manually with 'c:\cygwin\bin\bash.exe'. That's what rerunning 'setup.exe' should do for you but doing so manually should give you more info about any problems. You can also look in '/var/log/setup.log.full' for diagnostic messages that were generated by 'setup.exe' the last time you ran it. This should give you some information about what postinstall scripts had complaints. Hi Larry, Thank you. So you are right, I did not stop any of the services before upgrading. I'll know it in the future. On the actual problem: 1- I've rebooted since the last install, the problem persists 2- All the files in /etc/postinstall have the .done suffix 3- In setup.log.full, the only error is about McShield (Could not open service McShield for query, start and stop). Is this related? No. That just means you don't have McAfee. So, I've followed your suggestion and 1- relaunched setup.exe, nothing was installed
Re: how to test sshd running ?
kato fong wrote: Hi, I want to write a sh script that executes itself if sshd is not running. But what is the reliable way to test if I get sshd running under cygwin/windows95? This isn't a Cygwin-specific question. As such, discussion of it is really off-topic for this list. That said, the following should work (untested on Cygwin or W95): #! /bin/bash ps -C sshd /dev/null if [ $? -eq 0 ] then echo sshd running else echo sshd not running fi It's wordy but you get the idea. ;-) -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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: symlink problem
Koichi Yamaguchi wrote: Hi, all I'll appreciate if you give me advises. I my cygwin, ready-made symlink files, which contain '!symlinkfilename' sentence, cannot be executed. The cygwin is as installed by using setup.exe.2.510.2.2 for All Users. Default Text file Type is Unix/binary. For example, the cygwin prompts like below. ('gwak' works well, of course. ) $ awk /usr/bin/sh: /usr/bin/awk: No such file or directory $ file /usr/bin/awk.exe /usr/bin/awk.exe: Assembler source Check if the system attribute is set on this file. If it's not, set it. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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 1.5.22 - everything crashes, windows exception
Paul Murphy wrote: Hello, I have recently installed cygwin, and during the installation received a series of crashes for bash.exe - standard Windows XP exception errors. However, all the files were copied to i:\dev\cygwin, and if I attempt to carry out any command in that directory, I receive the same error - at least for any command I have tried. Below is the cygcheck, however please note that id.exe crashed with the same error, so some of it may be missing. I have tried running with Avast AV off, and with Outpost firewall off, and I have tried just copying the following files to c:\cygwin to see if a more standard dir location would help: 07/12/2006 01:17 484,352 bash.exe 23/10/2006 10:44 999,424 cygiconv-2.dll 23/10/2006 11:2331,744 cygintl-8.dll 15/11/2006 18:21 242,688 cygncurses-8.dll 16/12/2006 10:50 157,696 cygreadline6.dll 14/11/2006 03:48 1,872,347 cygwin1.dll However, I got the same error. I did a search for any other cygwin dlls, and there were some applications that had their own installed, off the path, and in their own folders. They shouldn't have made a difference, but I deleted them anyway. It didn't help. The XP installation is relatively new - I rebuilt it recently, and the previous build didn't have any issues with cygwin, and this build is essentially the same in any respect that I can think would make a difference. Any ideas on how I can troubleshoot this? I believe Outpost has been implicated before when these kinds of problems pop up. Not sure about Avast. You can check the email archives for details. If these are recent changes (or at least different than the last time when you didn't have these problems), you can uninstall them and try again. Turning them off is not generally enough because of changes these kinds of programs make in the network stack when they are installed. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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/