image
Physics Forums Logo
image
image
* Register * Upgrade Blogs Library Staff Rules Mark Forums Read
image
image   image
image

Go Back   Physics Forums > Other Sciences > Computing & Technology > Math & Science Software


Reply

image Cygwin, why does my lab recommend to NOT use it? Share It Thread Tools Search this Thread image
Old Feb12-09, 03:50 PM                  #1
profroopchan

profroopchan is Offline:
Posts: 13
Cygwin, why does my lab recommend to NOT use it?

I have been using cygwin since a long time now, but my system administrator recommend that we no longer have cygwin installed on the lab computers because it is "in bad shape". I have also seen this on ROOT's website. "Note that cygwin/gcc is currently in a very poor status."

What is this poor state that they speak of? What harm will come if I install it on my home laptop? I have been Googling, but I havent found anything about this.
  Reply With Quote
Old Feb12-09, 03:58 PM                  #2
CRGreathouse

CRGreathouse is Offline:
Posts: 3,358
Recognitions:
Homework Helper Homework Helper
Science Advisor Science Advisor
Re: Cygwin, why does my lab recommend to NOT use it?

I don't know about cygwin. The recent versions of gcc are fair-to-poor on Windows systems, though -- there are programs I can't compile properly anymore.
  Reply With Quote
Old Feb12-09, 04:15 PM                  #3
profroopchan

profroopchan is Offline:
Posts: 13
Re: Cygwin, why does my lab recommend to NOT use it?

I think they say it have something to do with some backdoor open or a Trojan built into it or something along that lines.
  Reply With Quote
Old Feb12-09, 07:22 PM                  #4
CRGreathouse

CRGreathouse is Offline:
Posts: 3,358
Recognitions:
Homework Helper Homework Helper
Science Advisor Science Advisor
Re: Cygwin, why does my lab recommend to NOT use it?

Originally Posted by profroopchan View Post
I think they say it have something to do with some backdoor open or a Trojan built into it or something along that lines.
Nonsense.
  Reply With Quote
Old Feb12-09, 07:51 PM                  #5
mgb_phys

Engineer 2009

mgb_phys is Offline:
Posts: 8,874
Recognitions:
Homework Helper Homework Helper
Science Advisor Science Advisor
Re: Cygwin, why does my lab recommend to NOT use it?

gcc is one of the best compilers, it is generally far more standards compliant than MS.
The only issue with cygwin is that if you are using many different old apps compiled for different versions of the cygwin library it can be a pain to make sure they all get the correct one.

There is also mingw-msys which is gcc but using windows runtime libraries.
  Reply With Quote
Old Feb13-09, 08:20 AM                  #6
profroopchan

profroopchan is Offline:
Posts: 13
Re: Cygwin, why does my lab recommend to NOT use it?

Why does Root (which is the standard analysis software for CERN experiment), have on their website that cygwin is in very poor shape?
  Reply With Quote
Old Feb13-09, 03:45 PM                  #7
profroopchan

profroopchan is Offline:
Posts: 13
Re: Cygwin, why does my lab recommend to NOT use it?

Okay, so I spoke to my system administrator, and he says that cygwin has a problem where a lot of the mirror sites have been infected with trojans. He said the only trusted one used to be Aargon, but then they started having problems as well, so he just say that we should not use it on our PCs in the office.
  Reply With Quote
Old Feb13-09, 11:31 PM                  #8
DaveK.cygwin

DaveK.cygwin is Offline:
Posts: 2
Re: Cygwin, why does my lab recommend to NOT use it?

Originally Posted by profroopchan View Post
Okay, so I spoke to my system administrator, and he says that cygwin has a problem where a lot of the mirror sites have been infected with trojans. He said the only trusted one used to be Aargon, but then they started having problems as well, so he just say that we should not use it on our PCs in the office.
Hello profroopchan.
I think your system administrator must have a misunderstanding. If there are trojans or even just corrupt files on any mirror site, they will fail either the md5 checksum test or the setup.ini digital signature check; setup.exe will refuse to install an invalid or tampered package.

What has probably caused your admin to think this is that some of the most common antivirus packages have been repeatedly hitting false positives on standard Cygwin utilities quite a bit over the past year - AVG in particular has had multiple failures in this regard. So it's easy to think that something downloaded from a mirror site was trojanned, when in fact the mirror site is carrying a perfectly valid file and it's just the anti-virus at the receiving PC making a mistake.
  Reply With Quote
Old Feb13-09, 11:39 PM                  #9
DaveK.cygwin

DaveK.cygwin is Offline:
Posts: 2
Re: Cygwin, why does my lab recommend to NOT use it?

Originally Posted by CRGreathouse View Post
I don't know about cygwin. The recent versions of gcc are fair-to-poor on Windows systems, though -- there are programs I can't compile properly anymore.
There are a number of known problems in current GCC when compiled for windows, relating mostly to exception handling with DLLs in use. (There are also a lot of backwardly-incompatible changes in recent GCC that make it more demanding of strict standards compliance in C++ usage than it used to be, and these are also a very common cause of being unable to compile old programs with newer versions; it's worth making sure that the old code wasn't just slightly invalid in some technical way or other). There aren't as many of us working on the windows ports as there are on e.g. linux, so it doesn't get as much attention.
However, please do report bugs that you find to the GCC mailing list, as we will try and take care of them. There is an effort under way to bring the windows versions up-to-date and get everything working properly for them.
  Reply With Quote
Old Feb14-09, 02:37 PM                  #10
cplager

cplager is Offline:
Posts: 3
Re: Cygwin, why does my lab recommend to NOT use it?

Originally Posted by profroopchan View Post
I have been using cygwin since a long time now, but my system administrator recommend that we no longer have cygwin installed on the lab computers because it is "in bad shape". I have also seen this on ROOT's website. "Note that cygwin/gcc is currently in a very poor status."

What is this poor state that they speak of? What harm will come if I install it on my home laptop? I have been Googling, but I havent found anything about this.
The Root website first put up that warning about Cygwin's gcc when it was gcc version 3.2. Cygwin currently uses gcc 3.4 which is a much better compiler (largely due to Dave Korn, who also posted on this forum). It's also true that some of the people who have been contributing to Cygwin's mailing list are people trying to get Root to behave better on Windows.

I have had cygwin on my laptops for many years now, and have had Root compiled with gcc for more than 6 years. From root versions 4.00.08 to 5.20. I've compiled it myself on occasion (to get Ruby and Python binding support), but of late have been using the precompile binaries as they come with everything I've needed.

I've complained on the Root websites about this (mostly) unfounded prejudice without much luck. They push Microsoft's VC++ compiler, but that means giving up posix paths, the same Makefiles, etc... I use the same Makefile to compile stand-alone executables that dynamically link against the root libraries on Cygwin/gcc and linux with no problems.

The only issue that is true is that it compiling with gcc on Cygwin can be quite a bit slower than compiling using VC++. This almost never matters, but you'll notice it when building very large packages.

Long-story-short: I highly recommend using Cygwin/gcc's version of Root.

Cheers,
Charles Plager

p.s. The warnings about viruses and mal-ware are, well, crap.
  Reply With Quote
Old Feb18-09, 11:24 AM                  #11
michinobu

michinobu is Offline:
Posts: 53
Re: Cygwin, why does my lab recommend to NOT use it?

Originally Posted by profroopchan View Post
I think they say it have something to do with some backdoor open or a Trojan built into it or something along that lines.
Why would a library have a trojan built into it? It seems that it'd likely be related to the work everyone else at your company is working on. Cygwin and MinGW do take two different approaches. I recall from a time when I had an assignment which used POSIX threads, that it didn't seem that I could compile it using MinGW. But, I wasn't really trying to get it compiles on Windows and was only curious.

But, in anycase, I don't know why people use either of the two on Windows, when Windows has the POSIX-certified Interix. Yet, I don't have an intimate knowledge of any of the three.
  Reply With Quote
Old Feb18-09, 11:41 AM                  #12
cplager

cplager is Offline:
Posts: 3
Re: Cygwin, why does my lab recommend to NOT use it?

Originally Posted by michinobu View Post
But, in anycase, I don't know why people use either of the two on Windows, when Windows has the POSIX-certified Interix. Yet, I don't have an intimate knowledge of any of the three.
I'm not convinced that Interix (now Microsoft's SUA) is POSIX-certified (although that's somewhat irrelevant). Second, Root is built for Cygwin and not for SUA/Interix. And is SUA/Interix still being maintained?

Charles
  Reply With Quote
Old Feb18-09, 11:41 AM                  #13
mgb_phys

Engineer 2009

mgb_phys is Offline:
Posts: 8,874
Recognitions:
Homework Helper Homework Helper
Science Advisor Science Advisor
Re: Cygwin, why does my lab recommend to NOT use it?

Originally Posted by michinobu View Post
when Windows has the POSIX-certified Interix.
POSIX certified doesn't mean very much. You can specify subsets of POSIX for machines which don't have a filesystem, don't have threads, or a network etc.
So you can be perfectly POSIX compliant by having a header file just saying - no fileio, no stdio, no network, no memory etc.

This is what NT did, it was POSIX compliant (in order to sell to government) but the POSIX sub-system couldn't use the network, threads, windows or most of the features of NTFS. So it was officially POSIX and totally useless.

The bad memory of this and since MS doesn't exactly go out of it's way to promote it, means that the new POSIX stuff in server2003 (Interix became services for unix) gets ignored.

MS pulled a similar trick with Orange book/C2 security. They submitted a machine without networking under the section which assumes physical security of the console. They then advertised NT as military grade secure - yes it was assuming the machine wasn't on a network and had an armed guard on the keyboard !
  Reply With Quote
Old Jan3-10, 09:23 AM                  #14
philoveritas

philoveritas is Offline:
Posts: 1
Re: Cygwin, why does my lab recommend to NOT use it?

Originally Posted by DaveK.cygwin View Post
Hello profroopchan.
I think your system administrator must have a misunderstanding. If there are trojans or even just corrupt files on any mirror site, they will fail either the md5 checksum test or the setup.ini digital signature check; setup.exe will refuse to install an invalid or tampered package.

What has probably caused your admin to think this is that some of the most common antivirus packages have been repeatedly hitting false positives on standard Cygwin utilities quite a bit over the past year - AVG in particular has had multiple failures in this regard. So it's easy to think that something downloaded from a mirror site was trojanned, when in fact the mirror site is carrying a perfectly valid file and it's just the anti-virus at the receiving PC making a mistake.
the false positives are coz cygwin works sort of like rootkit.
as the correct md5/sha hashes are available, they're no big deal.

the real problem is cygwin tends to fail mysteriously.
for example, their official site list some major programs known not to work along with it.

and it's not surprising if a physicist (like the professor of the OP) prefers the minimalist way (the mingw fork) to cygwin.

let me end this with a reference to the discussion on reddit (not necessarily my viewpoint):

http://www.reddit.com/r/linux/commen..._linux/c0eapi1
  Reply With Quote
Old May28-10, 01:46 PM                  #15
cplager

cplager is Offline:
Posts: 3
Re: Cygwin, why does my lab recommend to NOT use it?

Originally Posted by philoveritas View Post
the false positives are coz cygwin works sort of like rootkit.
as the correct md5/sha hashes are available, they're no big deal.
Cygwin is nothing like a root kit. This statement is just silly.

Originally Posted by philoveritas View Post
the real problem is cygwin tends to fail mysteriously.
for example, their official site list some major programs known not to work along with it.
There are several programs that are known to interfere with Cygwin. These programs interfere with many others and not just Cygwin and are generally doing bad things. I have never heard of any program that is interfered with by Cygwin.


Originally Posted by philoveritas View Post
and it's not surprising if a physicist (like the professor of the OP) prefers the minimalist way (the mingw fork) to cygwin.
There are several good reasons to prefer Cygwin. It has an environment that is much more similar to linux and that makes porting code to Cygwin much easier than MingW. It has precompiled versions of Root, for example. ...

Cheers,
Charles
  Reply With Quote
image image
Reply
Thread Tools


Similar Threads for: Cygwin, why does my lab recommend to NOT use it?
Thread Thread Starter Forum Replies Last Post
Fortran - Cygwin, gfortran and emacs! DieCommie Programming & Comp Sci 6 Sep2-08 10:33 AM
Cygwin Nusc Computing & Technology 2 Mar3-07 01:50 PM
what would you recommend me..? eljose Academic Guidance 1 Apr12-06 05:37 AM
Cygwin scienceguy Computing & Technology 1 Dec7-04 02:37 PM
Cygwin and Radware Simon Finnigan General Physics 0 May22-04 04:49 AM

Powered by vBulletin Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. © 2010 Physics Forums
Sciam | physorgPhysorg.com Science News Partner
image
image   image