delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/30/12:31:47

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4B3B8DC7.7030704@cygwin.com>
Date: Wed, 30 Dec 2009 12:28:39 -0500
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Symbolic links problem with cygwin 1.7.1 in 64-bit Win7 Command Prompt
References: <aba0e6770912300530t25e03d0fhb9d258e95571eb5 AT mail DOT gmail DOT com>
In-Reply-To: <aba0e6770912300530t25e03d0fhb9d258e95571eb5@mail.gmail.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 12/30/2009 08:30 AM, tuli tanssi wrote:
> Hi,
>
> I've been using gcc and other tools in older versions of cygwin with
> 32-bit Windows XP and Vista from windows command prompt (cmd.exe)
> without problems. But now I'm using 64-bit Windows 7, and some command
> line tools like gcc.exe do not work anymore (from cmd.exe). They do
> work ok from Cygwin's bash.
>
> The message I get when trying to run gcc in cmd.exe is: "Access is denied."
>
> Anyway, only some tools don't work, e.g. 'ls' works ok from cmd.exe.
>
> I noticed that all cygwin tools that are actually symbolic links to
> somehere else (just like /bin/gcc.exe and some others) are the
> problematic tools.
> Also /bin/gcc.exe has System rights (as seen by Attrib command of
> windows), while tools that do work have only Archive rights.
>
> So the I guess the problem is related to how symbolic links are
> created and with what rights.
>
> Anyone else tried this? Any solutions?

This is a known limitation of the symbolic links in Cygwin 1.7.  The solution
is to invoke the command directly ('gcc-3.exe' or 'gcc-4.exe' in this case) or
create your own batch file wrappers or DOS aliases to point to the proper
alternative.  Another might be to set "winsymlinks" in the CYGWIN environment
variable <http://cygwin.com/cygwin-ug-net/using-cygwinenv.html> and recreate
the symlinks you want that way.  The clear downside to this approach is that
it won't handle international characters in file names/paths properly.  As a 
result
one might guess this is not the recommended solution.  And one would be
right! ;-)

-- 
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?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019