Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Delivered-To: mailing list cygwin@cygwin.com Message-Id: <4.3.1.2.20011217134259.0227c008@pop.ma.ultranet.com> X-Sender: lhall@pop.ma.ultranet.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Mon, 17 Dec 2001 13:52:16 -0500 To: Suman Kumar Ray , cygwin@cygwin.com From: "Larry Hall (RFK Partners, Inc)" Subject: Re: cygwin1.dll (file version 1003.6.0.0) dup problem with gcc In-Reply-To: <20011217184025.92271.qmail@web10402.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 01:40 PM 12/17/2001, Suman Kumar Ray wrote: >Hi, > In the mailing list, I have found this problem with >earlier dll but with no solution or information >whether this is a bug of cygwin. >If I use cygwin.dll file version 1003.6.0.0, then when >a windows GUI based IDE is calling gcc through >createprocess and pass a file for compilation error >message appears as >fhandler_base::dup: dup(unknown disk file) failed, >handle 0, Win32 error 6. If I use cygwin1.dll file >version 1003.2.0.0 ( I mean I put gcc in separate >directory and put 1003.2.0.0 cygwin1.dll there), no >problem in calling gcc from IDE. Interestingly, if I >open cygwin shell, within that I can compile using any >of the above dlls. > Can somebody please tell me, what is the problem, and >how to rectify it ? > I have tried following command after reading one >e-mail, but no success. > mount -b --change-cygdrive-prefix /cygdrive Right. This isn't a cygdrive issue so I wouldn't expect to see any significant change by altering the mount option here. Clearly, fhandler::dup() is getting an invalid handle ('net helpmsg 6' tells you that). Given that the handle is 0, I think it's clear that this complaint is valid. Beyond that though, you're going to need to dig a little deeper to find the root of the problem. The issue is internal, which would require debugging to find the cause and correct it. If you can, debugging Cygwin via gdb would be the best way to go. Alternatively, if you can't do that, calling gcc indirectly through strace in your IDE environment would provide some trace information that might help you or others better understand the problem. Good luck, Larry Hall lhall@rfk.com RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/