Re: [HEADSUP] Let's start a Cygwin 1.7 release area
On Apr 15 19:28, Brian Dessent wrote: So, with that in mind, are there any objections to simply HK{LM,CU}\Software\Cygwin? Just go ahead. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat
Re: setup-1.7 defaults to Just me
On Apr 15 21:55, Brian Dessent wrote: Corinna Vinschen wrote: I just found that, regardless of my privileges, setup-1.7 defaults to install for just me instead of all users while the standard setup defaults to all users. Why does that happen? This is very odd. Setup's is_admin() was returning 0 despite the user belonging to the administrators group, and debugging revealed that the cause was the following: // Get the group token information UCHAR token_info[1024]; PTOKEN_GROUPS groups = (PTOKEN_GROUPS) token_info; DWORD token_info_len = sizeof (token_info); status = GetTokenInformation (token, TokenGroups, token_info, token_info_len, token_info_len); CloseHandle (token); if (!status) return 0; For whatever reason, GetTokenInformation was failing and returning ERROR_NOACCESS when passed a 1024 byte buffer. I changed the code to first call it with NULL to get the desired size, and that seems to have satisfied it. I cannot explain why it would object to a 1024 byte buffer, maybe you have some idea. Not really, no. 1024 bytes should be big enough in most cases. Did you look for the desired size which now gets returned by the NULL call? I'll install an updated setup-1.7.exe in a moment. Thanks, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat
Re: setup-1.7 defaults to Just me
Corinna Vinschen wrote: Not really, no. 1024 bytes should be big enough in most cases. Did you look for the desired size which now gets returned by the NULL call? Yes, it was in the neighborhood of 230 bytes or so. It wasn't that the buffer was too small, and I would have expected ERROR_INSUFFICIENT_BUFFER anyway in that case. It was just something about the buffer that it didn't like. Brian
Re: setup-1.7 defaults to Just me
On Apr 16 02:12, Brian Dessent wrote: Corinna Vinschen wrote: Not really, no. 1024 bytes should be big enough in most cases. Did you look for the desired size which now gets returned by the NULL call? Yes, it was in the neighborhood of 230 bytes or so. It wasn't that the buffer was too small, and I would have expected ERROR_INSUFFICIENT_BUFFER anyway in that case. It was just something about the buffer that it didn't like. Alignment? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat
Re: setup-1.7 defaults to Just me
On Apr 16 11:28, Corinna Vinschen wrote: On Apr 16 02:12, Brian Dessent wrote: Corinna Vinschen wrote: Not really, no. 1024 bytes should be big enough in most cases. Did you look for the desired size which now gets returned by the NULL call? Yes, it was in the neighborhood of 230 bytes or so. It wasn't that the buffer was too small, and I would have expected ERROR_INSUFFICIENT_BUFFER anyway in that case. It was just something about the buffer that it didn't like. Alignment? I mean, token_info was an UCHAR array, so it's not aligned while the token_group information might require a 4 or 8 byte alignment which you now get by chance. Probably you'd be better off not using `char buf[size]' but PTOKEN_GROUPS groups = (PTOKEN_GROUPS) alloca (size); instead because alloca always aligns sufficiently. What sounds strange here is that MSDN does not state anything about alignment requirements for the GetTokenInformation call. However, it also didn't say anything about alignment requirements of ZwQueryDirectoryFile but it failed on W2K for that reason nevertheless. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat
Re: setup-1.7 defaults to Just me
On Apr 16 02:45, Brian Dessent wrote: Corinna Vinschen wrote: Alignment? Perhaps. Do you know if gcc aligns VLAs higher than their natural alignment? The nonworking code was just UCHAR foo[1024] whereas the working was char buf[size], which I cribbed from grp.cc:internal_getgroups(). Maybe such a dynamic stack allocation like `char buf[size]' uses an alloca-like function under the hood which also always aligns sufficently for all datatypes. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat
Re: setup-1.7 defaults to Just me
Corinna Vinschen wrote: Alignment? Perhaps. Do you know if gcc aligns VLAs higher than their natural alignment? The nonworking code was just UCHAR foo[1024] whereas the working was char buf[size], which I cribbed from grp.cc:internal_getgroups(). Brian
Re: setup-1.7 defaults to Just me
On Apr 16 02:49, Brian Dessent wrote: Don't you love discovering these little pearls of joy inside the Win32 API? They're like little rays of sunshine. No wait, the opposite. Big rays of moonshine? ;) Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat
Re: [HEADSUP] Let's start a Cygwin 1.7 release area
On Apr 15 20:51, Lapo Luchini wrote: PS: my only WinXP box is still waiting for his motherboard back from RMA... I'll try qemu to test cygwin-1.7 and, if it's not too slow, produce updated packages for both 1.5 and 1.7 (or is 1.7 near enough that is better to update that first?). We will not make 1.7 an official release for some time. For the official release, please stick to 1.5. You can create update packages for 1.7 for your local installation, but let's wait a couple of days uploading 1.7 packages until Chris changed the release area to use unionfs. Thanks, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat
Re: setup-1.7 defaults to Just me
Corinna Vinschen wrote: I mean, token_info was an UCHAR array, so it's not aligned while the token_group information might require a 4 or 8 byte alignment which you now get by chance. Probably you'd be better off not using `char buf[size]' but PTOKEN_GROUPS groups = (PTOKEN_GROUPS) alloca (size); Interesting: #include stdio.h #include malloc.h int main (int argc, char **argv) { char vla[argc * 250]; char *alloca_array = (char *) alloca (argc * 250); char normal_array[1024]; printf (alignof(vla) = %d\n, __alignof__ (vla)); printf (alignof(alloca_array) = %d\n, __alignof__ (alloca_array)); printf (alignof(normal_array) = %d\n, __alignof__ (normal_array)); return 0; } Returns: alignof(vla) = 1 alignof(alloca_array) = 4 alignof(normal_array) = 1 So, perhaps this is working now by accident? for the GetTokenInformation call. However, it also didn't say anything about alignment requirements of ZwQueryDirectoryFile but it failed on W2K for that reason nevertheless. Don't you love discovering these little pearls of joy inside the Win32 API? They're like little rays of sunshine. No wait, the opposite. Brian
Re: setup-1.7 defaults to Just me
On Apr 16 02:45, Brian Dessent wrote: Corinna Vinschen wrote: Alignment? Perhaps. Do you know if gcc aligns VLAs higher than their natural alignment? The nonworking code was just UCHAR foo[1024] whereas the working was char buf[size], which I cribbed from grp.cc:internal_getgroups(). Oh well, I suspected that I did that as well. As I said in the other reply, I never saw any alignment requirements for GetTokenInformation before. I just don't see any other potential reason for the ERROR_NOACCESS in this case. I'll fix that in grp.cc, too. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat
Perl 5.10 stabilization
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Reini, My perl packages are now ready for 5.10, as soon as you're ready to stabilize: ftp://sunsite.dk/projects/cygwinports/release/help2man/help2man-1.36.4-2-src.tar.bz2 ftp://sunsite.dk/projects/cygwinports/release/help2man/help2man-1.36.4-2.tar.bz2 ftp://sunsite.dk/projects/cygwinports/release/help2man/setup.hint ftp://sunsite.dk/projects/cygwinports/release/perl/perl-ExtUtils-Depends/perl-ExtUtils-Depends-0.300-1-src.tar.bz2 ftp://sunsite.dk/projects/cygwinports/release/perl/perl-ExtUtils-Depends/perl-ExtUtils-Depends-0.300-1.tar.bz2 ftp://sunsite.dk/projects/cygwinports/release/perl/perl-ExtUtils-Depends/setup.hint ftp://sunsite.dk/projects/cygwinports/release/perl/perl-ExtUtils-PkgConfig/perl-ExtUtils-PkgConfig-1.11-1-src.tar.bz2 ftp://sunsite.dk/projects/cygwinports/release/perl/perl-ExtUtils-PkgConfig/perl-ExtUtils-PkgConfig-1.11-1.tar.bz2 ftp://sunsite.dk/projects/cygwinports/release/perl/perl-ExtUtils-PkgConfig/setup.hint ftp://sunsite.dk/projects/cygwinports/release/perl/perl-Locale-gettext/perl-Locale-gettext-1.05-3-src.tar.bz2 ftp://sunsite.dk/projects/cygwinports/release/perl/perl-Locale-gettext/perl-Locale-gettext-1.05-3.tar.bz2 ftp://sunsite.dk/projects/cygwinports/release/perl/perl-Locale-gettext/setup.hint ftp://sunsite.dk/projects/cygwinports/release/perl/perl-Tk/perl-Tk-804.028-1-src.tar.bz2 ftp://sunsite.dk/projects/cygwinports/release/perl/perl-Tk/perl-Tk-804.028-1.tar.bz2 ftp://sunsite.dk/projects/cygwinports/release/perl/perl-Tk/setup.hint IMPORTANT on the Tk setup.hint: s/libX11_6/xorg-x11-bin-dlls/ Yaakov -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkgGAX0ACgkQpiWmPGlmQSPtgQCg4tRElvzF2goUjwKJmmwJjr9F 1JwAoNSPBGiiMaLoBJDPJNItw1dgrxbT =rhHt -END PGP SIGNATURE-
Re: setup-1.7 defaults to Just me
On Wed, Apr 16, 2008 at 02:49:33AM -0700, Brian Dessent wrote: Don't you love discovering these little pearls of joy inside the Win32 API? They're like little rays of sunshine. No wait, the opposite. Windoze rulez! cgf
Re: [HEADSUP] Let's start a Cygwin 1.7 release area
On Wed, Apr 16, 2008 at 11:39:16AM +0200, Corinna Vinschen wrote: On Apr 15 20:51, Lapo Luchini wrote: PS: my only WinXP box is still waiting for his motherboard back from RMA... I'll try qemu to test cygwin-1.7 and, if it's not too slow, produce updated packages for both 1.5 and 1.7 (or is 1.7 near enough that is better to update that first?). We will not make 1.7 an official release for some time. For the official release, please stick to 1.5. You can create update packages for 1.7 for your local installation, but let's wait a couple of days uploading 1.7 packages until Chris changed the release area to use unionfs. I played around a little more with this and found some problems that I have to investigate. When I move a file into the area from another directory it gives an error. That isn't really a big deal but I don't like putting things into production with known problems unless I have a vague understanding of the problem. So it will be a couple more days before I have the time to track this down. The size of this new, purged area is: 1926596K bytes. (I fixed my purge script) cgf
src/winsup/cygwin ChangeLog fhandler_socket.cc
CVSROOT:/cvs/src Module name:src Changes by: [EMAIL PROTECTED] 2008-04-16 17:22:15 Modified files: winsup/cygwin : ChangeLog fhandler_socket.cc Log message: * fhandler_socket.cc (fhandler_socket::close): Disable enforced lingering since the original problem can no longer be reproduced. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.4104r2=1.4105 http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_socket.cc.diff?cvsroot=srcr1=1.223r2=1.224
Re: [Attn: alternatives maintainer] - ghostscript preremove breakage
Charles Wilson writes: Dr. Volker Zell wrote: This is the relevant code block in alternatives.c where the above file gets read by the function readConfig (buf should hold the contents of the above file after the do loop): curBufSz = READCONFIG_BUF_INITIALSZ; totalBytesRead = 0; numBytesRead = 0; buf = NULL; do { if (curBufSz READCONFIG_BUF_BEHAVIOR_THRESH) curBufSz *= 2; else curBufSz += READCONFIG_BUF_BEHAVIOR_THRESH; buf = realloc(buf, curBufSz + 1); bufp = buf + totalBytesRead; try putting *bufp = '\0'; right here. Yup. That's fixes it. 07:51 AM [525] ./alternatives.exe --display gs gs - status is auto. link currently points to /usr/bin/gs-x11 /usr/bin/gs-x11 - priority 20 Current `best' version is /usr/bin/gs-x11. 07:51 AM [526] ./alternatives.exe --display unison unison - status is auto. link currently points to /usr/bin/unison-2.27 /usr/bin/unison-2.13 - priority 2013 /usr/bin/unison-2.17 - priority 2017 /usr/bin/unison-2.27 - priority 2027 Current `best' version is /usr/bin/unison-2.27. Thanks, will you roll a new version ? Volker -- 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 existence prevents .exe execution
On 15 Apr, Dyck, David wrote: how much control do you have on unix side? (you could create a symlink from ici.exe to ici on unix. True. And I suppose there are only rare programs that would suffer this problem. what about creating a new name for ici.exe and ici that could be found on both. Umm, I don't think I understand. Then we'd have to modify every script to change the #!/opt/bin/ici, wouldn't we? directories need to have 'x' attribute to be searchable (on unix) but I would also ask about your path why do you need an /opt/bin/ici directory on windows when if /opt/bin/ici was a directory on unix, where would the shell be finding ici executable? On Unix, it would be finding it under /opt/ici-3.0.1/lib/ici3. Since it should also work under Windows natively, we can't rely on using mount points under Cygwin, since they just wouldn't be visible. But maybe we could do something along those lines. It does seem like a corner case (in bash or in the exec call), that Cygwin would be better for handling. This corner case can't happen in Unix because Unix doesn't have implicit suffixes on commands: you can't have a directory and an executable in the same directory with the same name. (If you have a command called fred.sh, you type fred.sh to execute it, not fred.) I assume exec() stat()s a file, and then presumably does some special magic to change fred to fred.exe if it can't find fred. Suppose that when it does a stat() on fred, before it decides that it's found the right file to exec, it should check that fred isn't a directory. If it is a directory, it should consider that not found and the logic would flow through into the checking for .exe and whatever other arcane Windows executable-file suffixes make sense. But having not looked at the source, I confess I'm just guessing. Thanks, luke -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Luke Kendall Sent: Tuesday, April 15, 2008 9:44 PM To: cygwin@cygwin.com Subject: Directory existence prevents .exe execution We have the Ici scripting language installed on Windows. Ici expects a directory called ici to exist alongside, where various libraries are installedd to provide extra functionality. Unfortunately, under Cygwin, if w try to run the command ici we get the error ici: command not found, because Cygwin chooses to try to execute the directory instead of the .exe: $ /opt/bin/ici /cygdrive/x/bin/script/cfnhdr bash: /opt/bin/ici: is a directory $ ls -ld /opt/bin/ici drwxr-xr-x 1 luke Domain Users 0 Oct 17 2005 /opt/bin/ici $ ls -ld /opt/bin/ici.* -rwxr-xr-x 1 luke Domain Users 233503 Apr 18 2000 /opt/bin/ici.dll -rwxr-xr-x 1 luke Domain Users 24576 Jan 29 2003 /opt/bin/ici.exe I tried naming the ici directory Ici but it made no difference. The directory /opt/bin is mounted like so: $ mount \\samba\syncopt\microsoft.x86.win\bin on /opt/bin type system (textmode,exec) Using binmode doesn't help. Is this a bug, that bash tries to execute a directory even when there's an executable (with an implicit .exe suffix, naturally) of the same name in existence ? If not, can anyone suggest a workaround? I can't just append a .exe to the #!/opt/bin/ici shell wrapper since then the scripts wouldn't run from Unix. Is there a bash option that controls this, maybe (I couldn't see one)? Regards, luke -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ This message (including any attachments) contains confidential and/or proprietary information intended only for the addressee. Any unauthorized disclosure, copying, distribution or reliance on the contents of this information is strictly prohibited and may constitute a violation of law. If you are not the intended recipient, please notify the sender immediately by responding to this e-mail, and delete the message from your system. If you have any questions about this e-mail please notify the sender immediately. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [Attn: alternatives maintainer] - ghostscript preremove breakage
Charles Wilson cygwin at cwilson.fastmail.fm writes: I just tried again: I deleted /usr/bin/gs symlink, /etc/alternatives/gs symlink and /var/lib/alternatives/gs. 12:13 AM [506] update-alternatives --install /usr/bin/gs gs /usr/bin/gs-native 10 01:20 AM [507] update-alternatives --install /usr/bin/gs gs /usr/bin/gs-x11 20 path to alternate expected in /var/lib/alternatives/gs 01:20 AM [508] cat /var/lib/alternatives/gs auto /usr/bin/gs /usr/bin/gs-native 10 Still can't reproduce: [...] I've had the same issue. I solved it by rm /usr/bin/gs.exe which was actually a symlink to /usr/bin/gs which I created for whatever reason times ago. After this, repeat the foregoing procedure and everything should work fine. Tim -- 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: file accessibility and copying/archive/...
On Tue, 15 Apr 2008, Sylvain RICHARD wrote: Hugh Sasse wrote: Trying to copy a windows XP NTFS drive to a big disk using cygwin tools I encounter inaccessible files such as ntusers.dat. tar is not particularly verbose about why things fail so I wrote something in Ruby, but I only got about 70% of the contents of the disk across. I suspect this is a common problem, but don't know how to frame it correctly to extract something useful from Google. The setup in question only has the one PC so things like rsync are out. Windows keeps some things in use, but I don't know what. Can anyone point me at the specific thing I should be reading, or suggest anything? Hugh, If you must do an online copy, the only solution is the Volume Shadow Copy OK, I'll google that. API, especially designed to allow copying files in use. But you can copy garbage (especially for databases). They end up as impenetrable blobs of binary, or they actually get corrupted? An offline solution based upon a bootable linux distribution (knoopix or Right, I have a knoppix CD (I note that the new ones are DVD now, but don't know how much NTFS support has improved since 5.1. But that's going OT for this list) others) might be better suited to your needs. I suggest dd_rescue if you want to copy whole partitions. I want to extract the non-system files at some point. A commercial offering would be Ghost. Ha! I had version 2 of ghost for backups on that machine. I upgraded to 2005 (I forget the exact version) and it no longer worked. Also the incremental backup would only work to another hard disk. I used to do incremental backups (to tape) in the days of Sun 3 workstations. So why it wouldn't work to removable media... Unless they have improved things dramatically, my inclination is to avoid ghost, and I don't think it will let me extract individual files, directories from the backup afterwards anyway. Best regards Sylvain RICHARD Thank you, Hugh -- 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: file accessibility and copying/archive/...
On Tue, 15 Apr 2008, Brian Dessent wrote: Hugh Sasse wrote: Trying to copy a windows XP NTFS drive to a big disk using cygwin tools I encounter inaccessible files such as ntusers.dat. tar is not ntuser.dat is the filename of the per-user registry hive (HKEY_CURRENT_USER). It is opened by the system in exclusive mode, so it cannot be opened. Yes, that one I understand, the others I don't. I suspect this is a common problem, but don't know how to frame it correctly to extract something useful from Google. The setup in question only has the one PC so things like rsync are out. Windows Note that rsync works just fine as a local copying tool like xcopy. There's nothing that says you have to use it with a remote machine. But Just the r :-) OK, I'll look into that, thank you. it will be of no use to you in this case. Because it won't access things either? I can live without ntuser.dat but its knowing what the others are and why they fail that is part of the problem. keeps some things in use, but I don't know what. Can anyone point me at the specific thing I should be reading, or suggest anything? If you mail me off list then, if there is interest I will summarize to the list. Thank you. You can't open the file because it's been opened with a sharing mode that disallows any other process to open it. The third parameter of CreateFile() is dwShareMode and can one or more of FILE_SHARE_DELETE, FILE_SHARE_READ, FILE_SHARE_WRITE. If it is 0 then no sharing is allowed, and the file cannot be opened by any other process until the handle is closed. So I'd need to boot off something else to get everything then? This is why backup programs are more than just file copying utilities. There are a number of files that you can't just copy from a live system. Even if you could forcibly open the file, if you were to na?vely copy it you might get inconsistent state, since the whole point for opening a file exclusively is so that you can have full control over it and implement your own form of transactions. A good case to consider. So some databases will also fail if they are live. Starting with XP, Microsoft introduced the Volume Shadow Copy service, as the other reply in this thread indicated. This is a vastly complicated[1] COM interface that can be used by backup programs to get See what you mean! consistent state for all files on a live system. Certainly no Cygwin tool or app uses this API. Thank you. What I do is simply use the built in Windows backup program (ntbackup) to create a backup to a file. Ntbackup uses all the proper backup APIs and can deal with all in-use files correctly, and the resulting output is just a plain file that can be copied around with standard tools, or split/burned to DVDR, or whatever. Can it extract individual files from the backup? I don't want to copy old Windows System files on to the new machine when it appears. Brian [1] http://msdn2.microsoft.com/en-us/library/aa384589.aspx -- 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 existence prevents .exe execution
On Apr 16 16:42, Luke Kendall wrote: Suppose that when it does a stat() on fred, before it decides that it's found the right file to exec, it should check that fred isn't a A stat() call can't know for what purpose it has been called. Calling stat on foo, it will return the information for foo first, if it exists. Only if it not exists it tries foo.exe or foo.lnk. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Directory existence prevents .exe execution
I still don't understand why you would put the ici dir in the same place as the ici script. You can't do that on Unix, so why do it on Cygwin? On 4/16/08, Luke Kendall [EMAIL PROTECTED] wrote: On 15 Apr, Dyck, David wrote: how much control do you have on unix side? (you could create a symlink from ici.exe to ici on unix. True. And I suppose there are only rare programs that would suffer this problem. what about creating a new name for ici.exe and ici that could be found on both. Umm, I don't think I understand. Then we'd have to modify every script to change the #!/opt/bin/ici, wouldn't we? directories need to have 'x' attribute to be searchable (on unix) but I would also ask about your path why do you need an /opt/bin/ici directory on windows when if /opt/bin/ici was a directory on unix, where would the shell be finding ici executable? On Unix, it would be finding it under /opt/ici-3.0.1/lib/ici3. Since it should also work under Windows natively, we can't rely on using mount points under Cygwin, since they just wouldn't be visible. But maybe we could do something along those lines. It does seem like a corner case (in bash or in the exec call), that Cygwin would be better for handling. This corner case can't happen in Unix because Unix doesn't have implicit suffixes on commands: you can't have a directory and an executable in the same directory with the same name. (If you have a command called fred.sh, you type fred.sh to execute it, not fred.) I assume exec() stat()s a file, and then presumably does some special magic to change fred to fred.exe if it can't find fred. Suppose that when it does a stat() on fred, before it decides that it's found the right file to exec, it should check that fred isn't a directory. If it is a directory, it should consider that not found and the logic would flow through into the checking for .exe and whatever other arcane Windows executable-file suffixes make sense. But having not looked at the source, I confess I'm just guessing. Thanks, luke -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Luke Kendall Sent: Tuesday, April 15, 2008 9:44 PM To: cygwin@cygwin.com Subject: Directory existence prevents .exe execution We have the Ici scripting language installed on Windows. Ici expects a directory called ici to exist alongside, where various libraries are installedd to provide extra functionality. Unfortunately, under Cygwin, if w try to run the command ici we get the error ici: command not found, because Cygwin chooses to try to execute the directory instead of the .exe: $ /opt/bin/ici /cygdrive/x/bin/script/cfnhdr bash: /opt/bin/ici: is a directory $ ls -ld /opt/bin/ici drwxr-xr-x 1 luke Domain Users 0 Oct 17 2005 /opt/bin/ici $ ls -ld /opt/bin/ici.* -rwxr-xr-x 1 luke Domain Users 233503 Apr 18 2000 /opt/bin/ici.dll -rwxr-xr-x 1 luke Domain Users 24576 Jan 29 2003 /opt/bin/ici.exe I tried naming the ici directory Ici but it made no difference. The directory /opt/bin is mounted like so: $ mount \\samba\syncopt\microsoft.x86.win\bin on /opt/bin type system (textmode,exec) Using binmode doesn't help. Is this a bug, that bash tries to execute a directory even when there's an executable (with an implicit .exe suffix, naturally) of the same name in existence ? If not, can anyone suggest a workaround? I can't just append a .exe to the #!/opt/bin/ici shell wrapper since then the scripts wouldn't run from Unix. Is there a bash option that controls this, maybe (I couldn't see one)? Regards, luke -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ This message (including any attachments) contains confidential and/or proprietary information intended only for the addressee. Any unauthorized disclosure, copying, distribution or reliance on the contents of this information is strictly prohibited and may constitute a violation of law. If you are not the intended recipient, please notify the sender immediately by responding to this e-mail, and delete the message from your system. If you have any questions about this e-mail please notify the sender immediately. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Sent from Gmail for mobile | mobile.google.com Mark J. Reed [EMAIL PROTECTED] -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation:
Re: file accessibility and copying/archive/...
Hugh Sasse wrote: Because it won't access things either? I can live without ntuser.dat but its knowing what the others are and why they fail that is part of the problem. It will be of no use because it still won't be able to access files that are opened with sharing disallowed. So I'd need to boot off something else to get everything then? No, just use a backup program and not a file copying program. Can it extract individual files from the backup? I don't want to copy old Windows System files on to the new machine when it appears. When you restore you can choose which files from the backup to include. Or, when you create the backup you can just exclude those files. Either way, it's a big tree-view with a checkbox next to each dir. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [Attn: alternatives maintainer] - ghostscript preremove breakage
I want to flag this for the sake of completeness Dr. Volker Zell wrote: alternatives --display gs path to alternate expected in /var/lib/alternatives/gs I have tried to reinstall ghostscrip* in a clean way. Since uninstalling does not remove /etc/postinstall/ghostscript*.done, /etc/preremove/ghostscrip*.done and the links that installation creates (gs-gs-x11, in my case), I have cleaned all these things. But reinstalling from scratch did not work until I removed also /var/lib/alternatives/gs. Only after this the links were recreated and now I have: $ /usr/sbin/alternatives --display gs gs - condizione automatica. il link attualmente indica a /usr/bin/gs-x11 /usr/bin/gs-native - priorit'a 10 /usr/bin/gs-x11 - priorit'a 20 La migliore versione attuale 'e /usr/bin/gs-x11. Cheers, Angelo. --- Facesti come quei che va di notte, che porta il lume dietro e se' non giova, ma dopo se' fa le persone dotte. - DANTE, Purgatorio, xxii 67-69 -- 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: file accessibility and copying/archive/...
On Wed, 16 Apr 2008, Brian Dessent wrote: Hugh Sasse wrote: Because it won't access things either? I can live without ntuser.dat but its knowing what the others are and why they fail that is part of the problem. It will be of no use because it still won't be able to access files that are opened with sharing disallowed. OK, thanks, and since that depends on the open command it could be any, and hard to tell what. [...] Can it extract individual files from the backup? I don't want to copy old Windows System files on to the new machine when it appears. When you restore you can choose which files from the backup to include. Or, when you create the backup you can just exclude those files. Either way, it's a big tree-view with a checkbox next to each dir. Great, thanks. The last time I tried to use native backup on it, it was from the disk-properties-tools, and it only allowed me to backup to ... floppy disk. For a 70GB drive that was marvellous. Now I know what to look for. Brian Thank you Hugh -- 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: file accessibility and copying/archive/...
Hugh Sasse wrote: Great, thanks. The last time I tried to use native backup on it, it was from the disk-properties-tools, and it only allowed me to backup to ... floppy disk. For a 70GB drive that was marvellous. Now I know what to look for. That's the same ntbackup. There is a box at the bottom where you enter the path and filename of where to create the .bkf file. It probably suggests the floppy as default, but you don't have to use it. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: file accessibility and copying/archive/...
Hugh Sasse wrote Can it extract individual files from the backup? I don't want to copy old Windows System files on to the new machine when it appears. Ahah! Finally, you tell us about what you intended to do in the first place! Could you be more specific, please? Sylvain RICHARD -- 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: Tail not reading to end of input
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to smr on 4/14/2008 11:56 AM: | Hi, I've just rebuilt my machine and done a clean install of the | latest Cygwin, and am having a problem with tail. I'm wanting to know | whether this is a known issue before digging deeper. Not known to me, but I (thankfully) don't use Vista. | | When running a command such as dir /s /a cygwin | tail -2 (from C:\) Is this in cmd.exe or a cygwin shell? At any rate, you haven't followed directions by posting 'cygcheck -svr' output as a text attachment, which might provide us more insight into your setup. | Problem reports: http://cygwin.com/problems.html | | If I first redirect the output of the dir command to a file and tail | that then all is well. Even running type filename | tail -2 works. | Also, if I dos2unix the stream inplace (ie. dir /s /a cygwin | | dos2unix | tail -2) it works correctly. Note that I installed with | Unix file type (as always). Unix file mode during cygwin's installation only affects regular files, not pipes. I don't know if the CR's being generated by the non-cygwin tools are interfering with tail, but tail attempts to always operate in binary mode, so I don't see how this could be broken. | 1. S_ISREG (stats.st_mode) returns 0 on XP, but 1 on Vista (I | haven't yet determined if this is an Enterprise-only or an SP1-only | issue) | 2. lseek() fails on XP, but succeeds on Vista. The SEEK_CUR below Are you sure this is on the same type of file? You can't lseek on pipes, and pipes are not regular files. So maybe there is some sort of issue where piped stdin inherited from a non-cygwin process on Vista wrongly looks like a regular file instead of a pipe, causing confusion within cygwin1.dll? - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkgF788ACgkQ84KuGfSFAYDSxQCgyo0/xK1ItHDLlXDHb/FfkNMO aPgAn2p/aBYhh+WJdrvJzmMIfhXpagFP =iGyp -END PGP SIGNATURE- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Tail not reading to end of input
On Apr 16 06:23, Eric Blake wrote: According to smr on 4/14/2008 11:56 AM: | Hi, I've just rebuilt my machine and done a clean install of the | latest Cygwin, and am having a problem with tail. I'm wanting to know | whether this is a known issue before digging deeper. Not known to me, but I (thankfully) don't use Vista. I can reproduce this problem on Windows 2008. Pipes created by cmd on Vista/2008 are for some reason not recognized as pipes when using Cygwin 1.5.25-11. This problem does not occur with the upcoming Cygwin 1.7.0 so it's fixed in CVS, apparently. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: file accessibility and copying/archive/...
On Wed, 16 Apr 2008, Sylvain RICHARD wrote: Hugh Sasse wrote Can it extract individual files from the backup? I don't want to copy old Windows System files on to the new machine when it appears. Ahah! Finally, you tell us about what you intended to do in the first place! Could you be more specific, please? I want to recover as much of the data I wrote to the old system onto a portable drive (which being new is big, I forget how big now but of the order of 200GB), and I want to put the files somewhere on my as yet unbuilt new machine, which will probably be running Vista dual boot with Ubuntu. I don't want to end up with an extra copy of XP on the destination system as Microsoft aren't exactly relaxed about licencing, so I'll need to be able to extract the specific files I want afterwards. What I did before was to write a recursive Ruby program to copy files and log what didn't get copied. Most other copying approaches to solving this die on the first error. I could get tar not to die, but couldn't get it to tell me much about what failed or why. I now know more about that and why it is likely to fail in lots of cases, not just ntuser.dat. Trying to use the backup provided with windows (My\ Computer - C: - Properties - Tools - Backup) which I see is ntbackup, was tricky in the past: it doesn't work with CD RWs, only floppy disks, or a big file, which I would have had to put on the same disk as I was trying to back up. With a new drive I shouldn't have that problem. (For some values of shouldn't.) So my current plan is to attempt to use NTbackup to do the job, possibly through the toos - backup dialogue in the first instance. Hopefully that hasn't bored you to the point where you are UNcomfortably numb... :-) Sylvain RICHARD Thank you Hugh -- 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: Tail not reading to end of input
On Apr 16 14:49, Corinna Vinschen wrote: On Apr 16 06:23, Eric Blake wrote: According to smr on 4/14/2008 11:56 AM: | Hi, I've just rebuilt my machine and done a clean install of the | latest Cygwin, and am having a problem with tail. I'm wanting to know | whether this is a known issue before digging deeper. Not known to me, but I (thankfully) don't use Vista. I can reproduce this problem on Windows 2008. Pipes created by cmd on Vista/2008 are for some reason not recognized as pipes when using Cygwin 1.5.25-11. This problem does not occur with the upcoming Cygwin 1.7.0 so it's fixed in CVS, apparently. The reason is that starting with Windows Vista/2008, anonymous pipes don't have a filename attached to them, so that the call to NtQueryObject in handle_to_fn fails with STATUS_OBJECT_PATH_INVALID. This is handled gracefully for pipes in CVS, but not yet in 1.5.25-11. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [Attn: alternatives maintainer] - ghostscript preremove breakage
Dr. Volker Zell wrote: Thanks, will you roll a new version ? try test version 1.3.30c-1. -- Chuck -- 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/
Static cygwin perl + Win32CORE
I've had a bit of a hack-day enabling static cygwin perl compilation (-Uusedl), esp. needed for bleadperl so that I can have more easily multiple versions around for testing. This is the Win32CORE hack for blead, perl-5.10 later. Don't apply yet, needs more testing. -- Reini Urban http://phpwiki.org/ http://murbreak.at/ difforig perl-current/ext/Win32CORE 2008-04-16 16:15:50 [EMAIL PROTECTED] Enable static Win32CORE compilation for -Uusedl (non-shared perl), esp. for cygwin. This enables static cygwin perl compilation. The EXTCONST hack is needed, because Win32CORE requires extern __declspec(dllimport) for the windows symbols, but no dllimport attribute for non-shared libperl symbols. diff -ub perl-current/ext/Win32CORE/Makefile.PL.orig --- perl-current/ext/Win32CORE/Makefile.PL.orig 2007-05-16 10:29:12.0 +0200 +++ perl-current/ext/Win32CORE/Makefile.PL 2008-04-16 15:46:29.46875 +0200 @@ -4,3 +4,17 @@ 'NAME' = 'Win32CORE', 'VERSION_FROM' = 'Win32CORE.pm', ); + +# undef USEIMPORTLIB for static compilation +sub MY::cflags { + package MY; # so that SUPER works right + my ($self, $libperl)[EMAIL PROTECTED]; + return '' unless $self-needs_linking(); + my $base = $self-SUPER::cflags($libperl); + #print STDERR cflags:\n$base; + if ($self-{LINKTYPE} eq 'static') { +#print STDERR LINKTYPE=static\n; +$base =~ s/CCFLAGS =(.*)$/CCFLAGS =\1 -UUSEIMPORTLIB -DLINKSTATIC/m; + } + return $base; +} diff -ub perl-current/ext/Win32CORE/Win32CORE.c.orig --- perl-current/ext/Win32CORE/Win32CORE.c.orig 2007-06-28 12:13:36.0 +0200 +++ perl-current/ext/Win32CORE/Win32CORE.c 2008-04-16 16:14:43.390625000 +0200 @@ -10,7 +10,13 @@ #define WIN32_LEAN_AND_MEAN #include windows.h +#if defined(__CYGWIN__) !defined(USEIMPORTLIB) + #undef WIN32 +#endif #include EXTERN.h +#if defined(__CYGWIN__) !defined(USEIMPORTLIB) + #define EXTCONST extern const +#endif #include perl.h #include XSUB.h @@ -62,7 +68,7 @@ * should never be called though, as Win32CORE.pm doesn't use DynaLoader. */ } -#ifdef __CYGWIN__ +#if defined(__CYGWIN__) defined(USEIMPORTLIB) __declspec(dllexport) #endif void diff -ub perl-current/ext/Win32CORE/t/win32core.t.orig -- 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/
Trouble installing DBD::Oracle on Cygwin
Hi I am having trouble installing DBD::Oracle on Cygwin Steps followed : Download from CPAN tar –zxvf DBD-Oracle-1.20.tar.gz cd DBD-Oracle-1.20 make realclean perl Makefile.pl make : *** [ Oracle.o ] Error 1 ; output attached (make_results.txt) perl – V (attached : perl_V.out) make realclean perl Makefile.pl -g make (Same error as above in Step 6) ) ; output attached (make_results_debugmode.txt) Oracle 10g Client at C:\oracle\product\10.2.0\client_2 ORACLE_HOME set to above SQLPLUS set to “C:\oracle\product\10.2.0\client_2\bin\sqllplus” and am able to connect to all databases in C:\oracle\product\10.2.0\client_2\network\ADMIN\tnsnames.ora from cygwin bash shell Cygwin Installation : A complete installation from latest build from Cygwin.com on April 10th 2008 DBI is installed, but attempting to run code that uses DBD::Oracle throws below errorinstall_driver(Oracle) failed: Can't locate DBD/Oracle..pm in @INC (@INC contains: %PERL5LIB%;C \Documents and Settings\dunston\My Documents\scripts\parse;C \Program Files\Mozilla Firefox\tpsf;C \Documents and Settings\dunston\My Documents\scripts\parse;C \Program Files\Mozilla Firefox\tpsf /usr/lib/perl5/5.8/cygwin /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/cygwin /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/cygwin /usr/lib/perl5/vendor_perl/5..8 /usr/lib/perl5/vendor_perl/5.8 .) at (eval 3) line 3. Would appreciate your input on installing this library in Cygwin Thanks -- gcc -g -c -IC:/oracle/product/10.2.0/client_2/oci/include -IC:/oracle/product/10.2.0/client_2/rdbms/demo -I/usr/lib/perl5/site_perl/5.8/cygwin/auto/DBI -g -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -Wdeclaration-after-statement -DUSEIMPORTLIB -DVERSION=\1.20\ -DXS_VERSION=\1.20\ -I/usr/lib/perl5/5.8/cygwin/CORE -Wall -Wno-comment -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\9.2.0.1\ Oracle.c In file included from Oracle.xs:1: Oracle.h:37:17: oci.h: No such file or directory Oracle.h:39:20: ocidfn.h: No such file or directory Oracle.h:40:18: orid.h: No such file or directory Oracle.h:41:17: ori.h: No such file or directory In file included from Oracle.h:53, from Oracle.xs:1: dbdimp.h:15: error: parse error before OCIEnv dbdimp.h:15: warning: no semicolon at end of struct or union dbdimp.h:22: error: parse error before '}' token dbdimp.h:36: error: parse error before OCIEnv dbdimp.h:36: warning: no semicolon at end of struct or union dbdimp.h:37: warning: type defaults to `int' in declaration of `errhp' dbdimp.h:37: warning: data definition has no type or storage class dbdimp.h:38: error: parse error before '*' token dbdimp.h:38: warning: type defaults to `int' in declaration of `srvhp' dbdimp.h:38: warning: data definition has no type or storage class dbdimp.h:39: error: parse error before '*' token dbdimp.h:39: warning: type defaults to `int' in declaration of `svchp' dbdimp.h:39: warning: data definition has no type or storage class dbdimp.h:40: error: parse error before '*' token dbdimp.h:40: warning: type defaults to `int' in declaration of `authp' dbdimp.h:40: warning: data definition has no type or storage class dbdimp.h:49: error: parse error before '}' token dbdimp.h:64: error: parse error before OCIEnv dbdimp.h:64: warning: no semicolon at end of struct or union dbdimp.h:65: warning: type defaults to `int' in declaration of `errhp' dbdimp.h:65: warning: data definition has no type or storage class dbdimp.h:66: error: parse error before '*' token dbdimp.h:66: warning: type defaults to `int' in declaration of `srvhp' dbdimp.h:66: warning: data definition has no type or storage class dbdimp.h:67: error: parse error before '*' token dbdimp.h:67: warning: type defaults to `int' in declaration of `svchp' dbdimp.h:67: warning: data definition has no type or storage class dbdimp.h:68: error: parse error before '*' token dbdimp.h:68: warning: type defaults to `int' in declaration of `stmhp' dbdimp.h:68: warning: data definition has no type or storage class dbdimp.h:69: error: parse error before '*' token dbdimp.h:69: warning: type defaults to `int' in declaration of `dschp' dbdimp.h:69: warning: data definition has no type or storage class dbdimp.h:102: error: parse error before '}' token dbdimp.h:121: error: parse error before OCIParam dbdimp.h:121: warning: no semicolon at end of struct or union dbdimp.h:122: warning: type defaults to `int' in declaration of `parmap' dbdimp.h:122: warning: data definition has no type or storage class dbdimp.h:123: error: parse error before '*' token dbdimp.h:123: warning: type defaults to `int' in declaration of `tdo' dbdimp.h:123: warning: data definition has no type or storage class dbdimp.h:124: error: parse error before typecode dbdimp.h:124: warning: type defaults to `int' in declaration of `typecode' dbdimp.h:124: warning: data definition has no type or
Re: file accessibility and copying/archive/...
Hugh Sasse wrote: I want to recover as much of the data I wrote to the old system onto a portable drive (which being new is big, I forget how big now but of the order of 200GB), and I want to put the files somewhere on my as yet unbuilt new machine, which will probably be running Vista dual boot with Ubuntu. If it's a once in a (PC's) lifetime job, then the knoppix offline way is the better way. The only guarantee M$ makes regarding shadow copy for non shadow copy awareapplications is that you get the same data that would reside on the disk after a PC crash. I got burnt when ntbackup copied an in-use svn repository (the with the Berkeley db backend). Any knoppix will do, you don't need the DVD. Just: 1) use hdparm to make sure DMA mode is enabled; 2) use fdisk to repartition your removable hardrive, creating a partition of same exact size as the old partition; 3) use dd_rescue to copy the whole partition. I suggest dd_rescue over dd because it will handle read errors graciously. Hint: specify the soft blocksize big enough to use caching (say around 4M). Setting it too high will cause floating point exceptions I've never really wanted to debug; 4) Enjoy. Note that the 3rd step may take some time. But you will get maximum performance from linear access and no other program trying to access the drives concurrently. OTOH, this method is certainly not the best if you need to copy say 4GB of data from a 150GB partition. Best regards, Sylvain RICHARD -- 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/
info needed
Hi I am afraid I am running for the most stupid question award but I give it a try anyway. I installed Cygwin on WindowsXP with the setup program from the Cygwin.COM. I used the program yesterday to get the latest updates. Now I try to compile PSPP (a statistical package) with Cygwin. But ./Configure reports: configure: error: The following required prerequisites are not installed. You must install them before PSPP can be built: gtk+ 2.0 v2.12.0 or later (or use --without-gui) libglade 2.0 (or use --withput-gui) The latest is a bug the report should say libglade 2.6. When I check the versions within cygwin: pkg-config --modversion gtk+-2.0 result: 2.6.10 pkg-config --modversion libglade-2.0 result: 2.5.1 After that I googled checked the mailing list etc. But I can't find a clue how to get the newer gtk+ en libglade version in my cygwin installation. Who can give me a hint how to update to the required versions? Thanks for any answer. -- 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: info needed
unknown-1 wrote: Hi I am afraid I am running for the most stupid question award but I give it a try anyway. I installed Cygwin on WindowsXP with the setup program from the Cygwin.COM. I used the program yesterday to get the latest updates. Now I try to compile PSPP (a statistical package) with Cygwin. But ./Configure reports: configure: error: The following required prerequisites are not installed. You must install them before PSPP can be built: gtk+ 2.0 v2.12.0 or later (or use --without-gui) libglade 2.0 (or use --withput-gui) The latest is a bug the report should say libglade 2.6. When I check the versions within cygwin: pkg-config --modversion gtk+-2.0 result: 2.6.10 pkg-config --modversion libglade-2.0 result: 2.5.1 After that I googled checked the mailing list etc. But I can't find a clue how to get the newer gtk+ en libglade version in my cygwin installation. Who can give me a hint how to update to the required versions? http://cygwin.com/cgi-bin2/package-grep.cgi?grep=gtk%2B-2.0 You have the latest versions available with Cygwin. You can either wait for the maintainer to update the packages to the version you want or pull the source from the GTK site and build it yourself. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: info needed
I'm trying to build this right now but I'm curious to know how you think this compares to something like R ? I was looking for source code to add to my code for doing right censored non-parametric significance tests that I can integrate with some wavelet code. I managed to get past ./configure --without-libplot and it now seems to have compiled ok. make check passed several tests and now seems to have failed command/sample.sh and now passing most of other tests = 1 of 93 tests failed Please report to [EMAIL PROTECTED] = make[2]: *** [check-TESTS] Error 1 make[2]: Leaving directory `/cygdrive/e/new/temp/pspp/pspp-0.4.0.1/tests' make[1]: *** [check-am] Error 2 make[1]: Leaving directory `/cygdrive/e/new/temp/pspp/pspp-0.4.0.1/tests' make: *** [check-recursive] Error 1 Unfortunately, as reported in the past, my configuration is really messed up and I don't think I can even determine what I have installed. Note also that hotmail is now the self appointed expert on reformatting text files so the attached cygcheck output is likely to have line breaks at the whim of said expert. Mike Marchywka 586 Saint James Walk Marietta GA 30067-7165 404-788-1216 (C)- leave message 989-348-4796 (P)- emergency only [EMAIL PROTECTED] Note: If I am asking for free stuff, I normally use for hobby/non-profit information but may use in investment forums, public and private. Please indicate any concerns if applicable. Note: Hotmail is possibly blocking my mom's entire ISP - try me on [EMAIL PROTECTED] if no reply here. Thanks. To: cygwin@cygwin.com From: [EMAIL PROTECTED] Subject: info needed Date: Wed, 16 Apr 2008 18:43:59 + Hi I am afraid I am running for the most stupid question award but I give it a try anyway. I installed Cygwin on WindowsXP with the setup program from the Cygwin.COM. I used the program yesterday to get the latest updates. Now I try to compile PSPP (a statistical package) with Cygwin. But ./Configure reports: configure: error: The following required prerequisites are not installed. You must install them before PSPP can be built: gtk+ 2.0 v2.12.0 or later (or use --without-gui) libglade 2.0 (or use --withput-gui) The latest is a bug the report should say libglade 2.6. When I check the versions within cygwin: pkg-config --modversion gtk+-2.0 result: 2.6.10 pkg-config --modversion libglade-2.0 result: 2.5.1 After that I googled checked the mailing list etc. But I can't find a clue how to get the newer gtk+ en libglade version in my cygwin installation. Who can give me a hint how to update to the required versions? Thanks for any answer. -- 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/ _ More immediate than e-mail? Get instant access with Windows Live Messenger. http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_instantaccess_042008 Cygwin Configuration Diagnostics Current System Time: Wed Apr 16 15:21:06 2008 Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4 Path: e:\new\exp\postgresql\PostgreSQL\8.2\bin e:\new\link\usr\local\bin C:\MiscPrograms\cygwin\cyg\bin C:\MiscPrograms\cygwin\cyg\bin e:\new\link\usr\X11R6\bin c:\Program Files\GASP Report 6\audit c:\WINNT\system32 c:\WINNT c:\WINNT\System32\Wbem c:\Program Files\ULTRAE~1 c:\PROGRA~1\CA\SHARED~1\SCANEN~1 c:\PROGRA~1\CA\ETRUST~1 c:\Program Files\Java\jdk1.5.0_14\bin e:\new\exp\caver\c\ c:\MyDocs\scripts c:\MyDocs\scripts\stocks Output from C:\MiscPrograms\cygwin\cyg\bin\id.exe (nontsec) UID: 500(Administrator) GID: 513(None) 0(root) 513(None) 544(Administrators) 545(Users) Output from C:\MiscPrograms\cygwin\cyg\bin\id.exe (ntsec) UID: 500(Administrator) GID: 513(None) 0(root) 513(None) 544(Administrators) 545(Users) SysDir: C:\WINNT\system32 WinDir: C:\WINNT USER = 'Administrator' PWD = '/cygdrive/e/new/temp/pspp/pspp-0.4.0.1' HOME = '/home/Administrator' MAKE_MODE = 'unix' Use '-r' to scan registry a: fd N/AN/A c: hd NTFS 4996Mb 92% CP CS UN PA FC d: cd N/AN/A e: hd NTFS 38162Mb 58% CP CS UN PA FC f: cd N/AN/A C:\MiscPrograms\cygwin\cyg / system binmode C:\MiscPrograms\cygwin\cyg/bin /usr/bin system binmode C:\MiscPrograms\cygwin\cyg/lib /usr/lib system binmode . /cygdrive system binmode,cygdrive Found: C:\MiscPrograms\cygwin\cyg\bin\awk.exe Found: C:\MiscPrograms\cygwin\cyg\bin\bash.exe Found:
Re: Trouble installing DBD::Oracle on Cygwin
2008/4/16, Dunston Rocks: Hilling DBD::Oracle on Cygwin Steps followed : Download from CPAN tar –zxvf DBD-Oracle-1.20.tar.gz cd DBD-Oracle-1.20 make realclean perl Makefile.pl make : *** [ Oracle.o ] Error 1 ; output attached (make_results.txt) perl – V (attached : perl_V.out) make realclean perl Makefile.pl -g make (Same error as above in Step 6) ) ; output attached (make_results_debugmode.txt) Oracle 10g Client at C:\oracle\product\10.2.0\client_2 ORACLE_HOME set to above SQLPLUS set to C:\oracle\product\10.2.0\client_2\bin\sqllplus and am able to connect to all databases in C:\oracle\product\10.2.0\client_2\network\ADMIN\tnsnames.ora from cygwin bash shell Cygwin Installation : A complete installation from latest build from Cygwin.com on April 10th 2008 DBI is installed, but attempting to run code that uses DBD::Oracle throws below errorinstall_driver(Oracle) failed: Can't locate DBD/Oracle..pm in @INC (@INC contains: %PERL5LIB%;C \Documents and Settings\dunston\My Documents\scripts\parse;C \Program Files\Mozilla Firefox\tpsf;C \Documents and Settings\dunston\My Documents\scripts\parse;C \Program Files\Mozilla Firefox\tpsf /usr/lib/perl5/5.8/cygwin /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/cygwin /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/cygwin /usr/lib/perl5/vendor_perl/5..8 /usr/lib/perl5/vendor_perl/5.8 .) at (eval 3) line 3. Change your PERL5LIB to a sane value. I know, Oracle 10 messes up the PERL5LIB environment variable, because they ship their own perl and apache. I just unset PERL5LIB and add the POSIX paths of the Oracle dirs to your perl Makefile.PL line. $ PERL5LIB= ORACLE_HOME=/cygdrive/oracle/product/10.2.0/client_2 perl Makefile.PL maybe add -h path to headers Also check out http://search.cpan.org/src/PYTHIAN/DBD-Oracle-1.21/README.wingcc.txt if the importlib was correctly created. Would appreciate your input on installing this library in Cygwin Thanks -- gcc -g -c -IC:/oracle/product/10.2.0/client_2/oci/include gcc cannot handle this path anymore! /cygdrive/c/oracle/product/10.2.0/client_2/oci/include is better. -IC:/oracle/product/10.2.0/client_2/rdbms/demo -I/usr/lib/perl5/site_perl/5.8/cygwin/auto/DBI -g -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -Wdeclaration-after-statement -DUSEIMPORTLIB-DVERSION=\1.20\ -DXS_VERSION=\1.20\ -I/usr/lib/perl5/5.8/cygwin/CORE -Wall -Wno-comment -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\9.2.0.1\ Oracle.c In file included from Oracle.xs:1: Oracle.h:37:17: oci.h: No such file or directory Oracle.h:39:20: ocidfn.h: No such file or directory Oracle.h:40:18: orid.h: No such file or directory Oracle.h:41:17: ori.h: No such file or directory -- Reini Urban http://phpwiki.org/ http://murbreak.at/ -- 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: info needed
Mike Marchywka marchywka at hotmail.com writes: I'm trying to build this right now but I'm curious to know how you think this compares to something like R ? I was looking for source code to add to my code for doing right censored non-parametric significance tests that I can integrate with some wavelet code. I have no idea. Never used R. But on the PSPP fora there is something written about it. I managed to get past ./configure --without-libplot and it now seems to have compiled ok. make check passed several tests and now seems to have failed command/sample.sh and now passing most of other tests = 1 of 93 tests failed Please report to bug-gnu-pspp at gnu.org = make[2]: *** [check-TESTS] Error 1 make[2]: Leaving directory `/cygdrive/e/new/temp/pspp/pspp-0.4.0.1/tests' g\bin\test.exe Not Found: vi Is there a special reason why you not try the latest alpha release 0.6 ? That compiles fine as long as you not try to compile the GUI. A place a howto compile pspp with cygwin in the pspp user forum. That is with libplot enabled. CU -- 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: Trouble installing DBD::Oracle on Cygwin
I can't seem to find any of the header files oci.h, Oracle.h:37:17: oci.h: No such file or directory Oracle.h:39:20: ocidfn.h: No such file or directory Oracle.h:40:18: orid.h: No such file or directory Oracle.h:41:17: ori.h: No such file or directory under C:\oracle\ I realize I should have checked for this before, but does anyone know where I can download them from? Dunston - Original Message From: Reini Urban [EMAIL PROTECTED] To: cygwin@cygwin.com Sent: Wednesday, April 16, 2008 3:19:54 PM Subject: Re: Trouble installing DBD::Oracle on Cygwin 2008/4/16, Dunston Rocks: Hilling DBD::Oracle on Cygwin Steps followed : Download from CPAN tar –zxvf DBD-Oracle-1.20.tar.gz cd DBD-Oracle-1.20 make realclean perl Makefile.pl make : *** [ Oracle.o ] Error 1 ; output attached (make_results.txt) perl – V (attached : perl_V.out) make realclean perl Makefile.pl -g make (Same error as above in Step 6) ) ; output attached (make_results_debugmode.txt) Oracle 10g Client at C:\oracle\product\10.2.0\client_2 ORACLE_HOME set to above SQLPLUS set to C:\oracle\product\10.2.0\client_2\bin\sqllplus and am able to connect to all databases in C:\oracle\product\10.2.0\client_2\network\ADMIN\tnsnames.ora from cygwin bash shell Cygwin Installation : A complete installation from latest build from Cygwin.com on April 10th 2008 DBI is installed, but attempting to run code that uses DBD::Oracle throws below errorinstall_driver(Oracle) failed: Can't locate DBD/Oracle..pm in @INC (@INC contains: %PERL5LIB%;C \Documents and Settings\dunston\My Documents\scripts\parse;C \Program Files\Mozilla Firefox\tpsf;C \Documents and Settings\dunston\My Documents\scripts\parse;C \Program Files\Mozilla Firefox\tpsf /usr/lib/perl5/5.8/cygwin /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5..8/cygwin /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/cygwin /usr/lib/perl5/vendor_perl/5..8 /usr/lib/perl5/vendor_perl/5.8 .) at (eval 3) line 3. Change your PERL5LIB to a sane value. I know, Oracle 10 messes up the PERL5LIB environment variable, because they ship their own perl and apache. I just unset PERL5LIB and add the POSIX paths of the Oracle dirs to your perl Makefile.PL line.. $ PERL5LIB= ORACLE_HOME=/cygdrive/oracle/product/10.2.0/client_2 perl Makefile.PL maybe add -h path to headers Also check out http://search.cpan.org/src/PYTHIAN/DBD-Oracle-1.21/README.wingcc.txt if the importlib was correctly created. Would appreciate your input on installing this library in Cygwin Thanks -- gcc -g -c -IC:/oracle/product/10.2.0/client_2/oci/include gcc cannot handle this path anymore! /cygdrive/c/oracle/product/10.2.0/client_2/oci/include is better. -IC:/oracle/product/10.2.0/client_2/rdbms/demo -I/usr/lib/perl5/site_perl/5.8/cygwin/auto/DBI -g -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -Wdeclaration-after-statement -DUSEIMPORTLIB-DVERSION=\1.20\ -DXS_VERSION=\1.20\ -I/usr/lib/perl5/5.8/cygwin/CORE -Wall -Wno-comment -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\9.2.0.1\ Oracle.c In file included from Oracle.xs:1: Oracle.h:37:17: oci.h: No such file or directory Oracle.h:39:20: ocidfn.h: No such file or directory Oracle.h:40:18: orid.h: No such file or directory Oracle.h:41:17: ori.h: No such file or directory -- Reini Urban http://phpwiki.org/ http://murbreak.at/ -- 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/ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -- 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: info needed
R ? I was looking for source code to add to my code for doing right censored non-parametric significance tests that I can integrate with some wavelet code. I have no idea. Never used R. But on the PSPP fora there is something written about it. fwiw, if I understand this, it looks like the simple non-parametric stuff is unimplmeneted?: ChangeLog: * examine.q Added some of the parametric calculations command.def:UNIMPL (COXREG, ERRO, ERRO, ERRO, ERRO, Cox proportional hazards regression) command.def:UNIMPL (NONPAR CORR,ERRO, ERRO, ERRO, ERRO, Nonparametric correlation) command.def:UNIMPL (NPAR TESTS, ERRO, ERRO, ERRO, ERRO, Nonparametric tests) command.def:UNIMPL (SURVIVAL, ERRO, ERRO, ERRO, ERRO, Survival analysis) Is there a special reason why you not try the latest alpha release 0.6 ? I went to their site and took the first thing I found, I was just curious to see what they had. This was the most recent thing I saw. If this has the above stuff implmented I can give it a try. That compiles fine as long as you not try to compile the GUI. A place a howto compile pspp with cygwin in the pspp user forum. That is with libplot enabled. That was just fwiw. I didn't know if your problem was equivalent to needing libplot or not as I thought that may just be a subset of the graphics stuff. In any case, you may be interested in the failed test I reported too. CU -- 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/ _ Pack up or back up–use SkyDrive to transfer files or keep extra copies. Learn how. http://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_packup_042008 -- 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: Tail not reading to end of input
Thanks very much Eric and Corinna for the responses -- glad to hear it's already fixed. On Wed, Apr 16, 2008 at 6:13 AM, Corinna Vinschen [EMAIL PROTECTED] wrote: On Apr 16 14:49, Corinna Vinschen wrote: On Apr 16 06:23, Eric Blake wrote: According to smr on 4/14/2008 11:56 AM: | Hi, I've just rebuilt my machine and done a clean install of the | latest Cygwin, and am having a problem with tail. I'm wanting to know | whether this is a known issue before digging deeper. Not known to me, but I (thankfully) don't use Vista. I can reproduce this problem on Windows 2008. Pipes created by cmd on Vista/2008 are for some reason not recognized as pipes when using Cygwin 1.5.25-11. This problem does not occur with the upcoming Cygwin 1.7.0 so it's fixed in CVS, apparently. The reason is that starting with Windows Vista/2008, anonymous pipes don't have a filename attached to them, so that the call to NtQueryObject in handle_to_fn fails with STATUS_OBJECT_PATH_INVALID. This is handled gracefully for pipes in CVS, but not yet in 1.5.25-11. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- 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: Tail not reading to end of input
On Wed, Apr 16, 2008 at 03:04:12PM -0700, smr wrote: Thanks very much Eric and Corinna for the responses -- glad to hear it's already fixed. FYI, this will even be fixed in the 1.5.25 series eventually. cgf -- 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: Tail not reading to end of input
Hi Christopher, is there currently an ETA for a release that would include this fix (whether that's 1.5.25-xx, or 1.6/1.7)? I've been out of the loop for a long time, so apologies if this is a question you've been badgered with recently. Thanks, Steven On Wed, Apr 16, 2008 at 4:44 PM, Christopher Faylor [EMAIL PROTECTED] wrote: On Wed, Apr 16, 2008 at 03:04:12PM -0700, smr wrote: Thanks very much Eric and Corinna for the responses -- glad to hear it's already fixed. FYI, this will even be fixed in the 1.5.25 series eventually. cgf -- 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/ -- 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/
[ANNOUNCEMENT] Updated: tar-1.20-1
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 A new release of tar, 1.20-1, is available, replacing 1.19.90-1 as the current version, and leaving 1.19-1 as previous. NEWS: = This is a new stable upstream release. It finalizes the new --lzma feature that can be used to achieve better compression ratios if you also install lzma. This release requires cygwin-1.5.25 or later. See also the upstream documentation in /usr/share/doc/tar-1.20/. DESCRIPTION: GNU Tar is an archiver program. It is used to create and manipulate files that are actually collections of many other files; the program provides users with an organized and systematic method of controlling a large amount of data. Despite its name, that is an acronym of tape archiver, GNU Tar is able to direct its output to any available devices, files or other programs, it may as well access remote devices or files. The main areas of usage for GNU Tar are: storage, backup and transportation. UPDATE: === To update your installation, click on the Install Cygwin now link on the http://cygwin.com/ web page. This downloads setup.exe to your system. Save it and run setup, answer the questions and pick up 'tar' from the 'Base' category (it should already be selected). DOWNLOAD: = Note that downloads from sources.redhat.com (aka cygwin.com) aren't allowed due to bandwidth limitations. This means that you will need to find a mirror which has this update, please choose the one nearest to you: http://cygwin.com/mirrors.html QUESTIONS: == If you want to make a point or ask a question the Cygwin mailing list is the appropriate place. - -- Eric Blake volunteer cygwin tar maintainer CYGWIN-ANNOUNCE UNSUBSCRIBE INFO: = To unsubscribe to the cygwin-announce mailing list, look at the List-Unsubscribe: tag in the email header of this message. Send email to the address specified there. It will be in the format: [EMAIL PROTECTED] If you need more information on unsubscribing, start reading here: http://sources.redhat.com/lists.html#unsubscribe-simple Please read *all* of the information on unsubscribing that is available starting at this URL. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkgGwkoACgkQ84KuGfSFAYDGRQCfZvj7w54QEiJE86pPTUHVy9IC 21EAnRVt3VcIokf+dmiFBsoIpaa99mcO =AgCB -END PGP SIGNATURE- version 1.20 - Sergey Poznyakoff, 2008-04-14 * New option --auto-compress (-a) With --create, selects compression algorithm basing on the suffix of the archive file name. * New option --lzma Selects LZMA compression algorithm * New option --hard-dereference During archive creation, dereferences hard links and stores the files they refer to, instead of creating usual hard link members (type '1'). * New option --checkpoint-action This action allows to specify an action to be executed upon hitting a checkpoint. Recognized actions are: dot, echo (the default), echo=string, ttyout=string, exec=cmdline, and sleep=value. Any number of `--checkpoint-action' options can be specified, the actions will be executed in order of their appearance in the command line. See chapter 3.8 Checkpoints for a complete description. * New options --no-check-device, --check-device. The `--no-check-device' option disables comparing device numbers during preparatory stage of an incremental dump. This allows to avoid creating full dumps if the device numbers change (e.g. when using an LVM snapshot). The `--check-device' option enables comparing device numbers. This is the default. This option is provided to undo the effect of the previous `--no-check-device' option, e.g. if it was set in TAR_OPTIONS environment variable. * The --transform option. Any number of `--transform' options can be given in the command line. The specified transformations will be applied in turn. The argument to `--transform' option can be a list of replace expressions, separated by a semicolon (as in `sed'). Filename transformations are applied to symbolic link targets during both creation and extraction. Tar 1.19 used them only during extraction. For a detailed description, see chapter 6.7 Modifying File and Member Names. * Info (end-of-volume) scripts The value of the blocking factor is made available to info and checkpoint scripts via environment variable TAR_BLOCKING_FACTOR. * Incremental archives Improved (sped up) extracting from incremental archives. * Bugfixes. ** Fix bug introduced in version 1.19: tar refused to update non-existing archives. -- 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: Tail not reading to end of input
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to smr on 4/16/2008 6:29 PM: Please don't top-post: http://cygwin.com/acronyms/#TOFU | Hi Christopher, is there currently an ETA for a release that would | include this fix (whether that's 1.5.25-xx, or 1.6/1.7)? In the classic open source style - when it's ready (and sooner, if you help). We won't promise a particular release date (that way, we won't break the promise if issues pop up). Meanwhile, snapshots of the future 1.7.0 are already available from cygwin.com, if you want to test the fix. | I've been | out of the loop for a long time, so apologies if this is a question | you've been badgered with recently. Yes, searching the archives would have shown you that this question has been asked more than enough times. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkgGxOsACgkQ84KuGfSFAYBrxgCgrUQ70pxhe0OyUMkG8LygRAwm FyIAn2y+/6PLEkUQf4p8NwSv2H7ooRLF =8S9i -END PGP SIGNATURE- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
PATCH: login under privileged user != SYSTEM
I've been trying to get all the bugs in inetutils-1.5 squashed, and I ran into an issue with rlogin when rlogind was running under a privileged user (that is, not SYSTEM), as is required for Windows Server 2003, 2008, and Vista. The problem was, although rsh would honor my .rhosts and allow passwordless operation, rlogin would not. It always asked for my password. Internally, rlogind *knew* that the incoming connection was authenticated via .rhosts, so it invoked login thus: login -p -h incoming hostname -f -- username where the '-f' SHOULD mean this is already authenticated, don't ask for the password again. But it wasn't working, because login was hardcoded to compare the current uid to 18 (that is, SYSTEM), before allowing passwordless auth. But rlogind/login were not running under SYSTEM. I don't think you can simply replace the code in login, the way we did in many of the servers, tho: #ifdef __CYGWIN__ -#define ROOT_UID18 +#define ROOT_UIDgetuid() #else #define ROOT_UID 0 #endif because then you'd allow passwordless auth no matter what account login was running under. Now, it might fail later, assuming we added code to check whether some future setuid() succeeded or not, but I think that's too late in the process. So, for *login*, I changed the code from if (uid == ROOT_UID) to if (is_a_ROOT_UID(uid)) and implemented a function that, depending on the underlying windows version, either (1) compares to 18 (2) checks that the account with the specified uid has the following privileges: +SeAssignPrimaryTokenPrivilege +SeCreateTokenPrivilege +SeTcbPrivilege +SeIncreaseQuotaPrivilege +SeServiceLogonRight (On NT/2k/XP, uid = 18 is an automatic yes, but if uid != 18, then we fall back to the Vista check-privileges procedure) With these changes, I can now get passwordless rlogin when inetd is running under a privileged user, and not SYSTEM. Most of the code was adapted from editrights/main.c... -- Chuck diff -urN old/login-1.9-7/Makefile new/login-1.9-7/Makefile --- old/login-1.9-7/Makefile2003-08-11 15:01:41.0 -0400 +++ new/login-1.9-7/Makefile2008-04-17 00:30:15.515625000 -0400 @@ -18,8 +18,8 @@ # CFLAGS=-O -SRCS= login.c -OBJS= login.o +SRCS= login.c testWindowsPrivileges.c +OBJS= login.o testWindowsPrivileges.o MAN= login.1 prefix=/usr docdir=/usr/share/doc/Cygwin @@ -27,28 +27,28 @@ DESTDIR= EXEEXT=.exe -all: login${EXEEXT} +all: login$(EXEEXT) -login${EXEEXT}: login.o - ${CC} -o $@ ${CFLAGS} $ -lcrypt +login$(EXEEXT): login.o testWindowsPrivileges.o + $(CC) -o $@ $(CFLAGS) $^ -lcrypt clean: - rm -f ${OBJS} core login${EXEEXT}.stackdump login${EXEEXT} + rm -f $(OBJS) core login$(EXEEXT).stackdump login$(EXEEXT) cleandir: clean - rm -f ${MAN} tags .depend + rm -f $(MAN) tags .depend -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} +depend: $(SRCS) + mkdep -p $(CFLAGS) $(SRCS) -install: login${EXEEXT} - -mkdir -p ${DESTDIR}${prefix}/bin ${DESTDIR}${docdir} ${DESTDIR}${mandir} - install -s -m 4755 login${EXEEXT} ${DESTDIR}${prefix}/bin/login${EXEEXT} - install -m 644 login.README ${DESTDIR}${docdir}/login.README - install -m 644 login.1 ${DESTDIR}${mandir}/login.1 +install: login$(EXEEXT) + -mkdir -p $(DESTDIR)$(prefix)/bin $(DESTDIR)$(docdir) $(DESTDIR)$(mandir) + install -s -m 4755 login$(EXEEXT) $(DESTDIR)$(prefix)/bin/login$(EXEEXT) + install -m 644 login.README $(DESTDIR)$(docdir)/login.README + install -m 644 login.1 $(DESTDIR)$(mandir)/login.1 -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} +lint: $(SRCS) + lint $(CFLAGS) $(SRCS) -tags: ${SRCS} - ctags ${SRCS} +tags: $(SRCS) + ctags $(SRCS) diff -urN old/login-1.9-7/login.README new/login-1.9-7/login.README --- old/login-1.9-7/login.README2002-08-07 14:14:53.0 -0400 +++ new/login-1.9-7/login.README2008-04-17 01:26:49.96875 -0400 @@ -8,9 +8,29 @@ == This version now supports login w/o password, supported beginning with -Cygwin version 1.3.6. Note that this is explicitely allowed for the -SYSTEM user only! This change now allows interactive login with rlogin(1) -and rsh(1) using rhosts authentication. +Cygwin version 1.3.6. Note that this is explicitely allowed only in +limited cases: + (1) NT/2k/XP: SYSTEM user, or a specially privileged user (see below) + (2) Windows Server 2003, 2008, and Vista: a specially privileged user + +The user account that login is invoked by must have the following +privileges: +SeAssignPrimaryTokenPrivilege +SeCreateTokenPrivilege +SeTcbPrivilege +SeIncreaseQuotaPrivilege +SeServiceLogonRight +On NT/2k/XP, the SYSTEM user (aka LocalSystem) has these privileges. +However, on newer versions of Windows, it
Updated: tar-1.20-1
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 A new release of tar, 1.20-1, is available, replacing 1.19.90-1 as the current version, and leaving 1.19-1 as previous. NEWS: = This is a new stable upstream release. It finalizes the new --lzma feature that can be used to achieve better compression ratios if you also install lzma. This release requires cygwin-1.5.25 or later. See also the upstream documentation in /usr/share/doc/tar-1.20/. DESCRIPTION: GNU Tar is an archiver program. It is used to create and manipulate files that are actually collections of many other files; the program provides users with an organized and systematic method of controlling a large amount of data. Despite its name, that is an acronym of tape archiver, GNU Tar is able to direct its output to any available devices, files or other programs, it may as well access remote devices or files. The main areas of usage for GNU Tar are: storage, backup and transportation. UPDATE: === To update your installation, click on the Install Cygwin now link on the http://cygwin.com/ web page. This downloads setup.exe to your system. Save it and run setup, answer the questions and pick up 'tar' from the 'Base' category (it should already be selected). DOWNLOAD: = Note that downloads from sources.redhat.com (aka cygwin.com) aren't allowed due to bandwidth limitations. This means that you will need to find a mirror which has this update, please choose the one nearest to you: http://cygwin.com/mirrors.html QUESTIONS: == If you want to make a point or ask a question the Cygwin mailing list is the appropriate place. - -- Eric Blake volunteer cygwin tar maintainer CYGWIN-ANNOUNCE UNSUBSCRIBE INFO: = To unsubscribe to the cygwin-announce mailing list, look at the List-Unsubscribe: tag in the email header of this message. Send email to the address specified there. It will be in the format: [EMAIL PROTECTED] If you need more information on unsubscribing, start reading here: http://sources.redhat.com/lists.html#unsubscribe-simple Please read *all* of the information on unsubscribing that is available starting at this URL. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkgGwkoACgkQ84KuGfSFAYDGRQCfZvj7w54QEiJE86pPTUHVy9IC 21EAnRVt3VcIokf+dmiFBsoIpaa99mcO =AgCB -END PGP SIGNATURE- version 1.20 - Sergey Poznyakoff, 2008-04-14 * New option --auto-compress (-a) With --create, selects compression algorithm basing on the suffix of the archive file name. * New option --lzma Selects LZMA compression algorithm * New option --hard-dereference During archive creation, dereferences hard links and stores the files they refer to, instead of creating usual hard link members (type '1'). * New option --checkpoint-action This action allows to specify an action to be executed upon hitting a checkpoint. Recognized actions are: dot, echo (the default), echo=string, ttyout=string, exec=cmdline, and sleep=value. Any number of `--checkpoint-action' options can be specified, the actions will be executed in order of their appearance in the command line. See chapter 3.8 Checkpoints for a complete description. * New options --no-check-device, --check-device. The `--no-check-device' option disables comparing device numbers during preparatory stage of an incremental dump. This allows to avoid creating full dumps if the device numbers change (e.g. when using an LVM snapshot). The `--check-device' option enables comparing device numbers. This is the default. This option is provided to undo the effect of the previous `--no-check-device' option, e.g. if it was set in TAR_OPTIONS environment variable. * The --transform option. Any number of `--transform' options can be given in the command line. The specified transformations will be applied in turn. The argument to `--transform' option can be a list of replace expressions, separated by a semicolon (as in `sed'). Filename transformations are applied to symbolic link targets during both creation and extraction. Tar 1.19 used them only during extraction. For a detailed description, see chapter 6.7 Modifying File and Member Names. * Info (end-of-volume) scripts The value of the blocking factor is made available to info and checkpoint scripts via environment variable TAR_BLOCKING_FACTOR. * Incremental archives Improved (sped up) extracting from incremental archives. * Bugfixes. ** Fix bug introduced in version 1.19: tar refused to update non-existing archives.