delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/07/13/09:30:13

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,TW_LV,TW_PH,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
From: Adam Dinwoodie <Adam DOT Dinwoodie AT metaswitch DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: test -f //dot
Date: Fri, 13 Jul 2012 13:27:33 +0000
Deferred-Delivery: Fri, 13 Jul 2012 13:27:00 +0000
Message-ID: <CE9C056E12502146A72FD81290379E9A4362FE10@ENFIRHMBX1.datcon.co.uk>
References: <500008DB DOT 9030604 AT codeplay DOT com>
In-Reply-To: <500008DB.9030604@codeplay.com>
MIME-Version: 1.0
X-IsSubscribed: yes
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q6DDU8FV027827

Paul Keir wrote:
>While running configure on llvm I get a hang on:
>
>...
>checking for Graphviz... echo Graphviz
>checking for dot...
>
>The configure script has a line starting:
>if { test -f "$as_dir/$ac_word$ac_exec_ext" && ...
>
>The problem occurs when $as_dir is /
>
>test -f //dot

This will be to do with how Windows and Linux handle UNC paths. On Windows and                                                                               Cygwin, //dot refers to a network share called "dot". On Linux (or at least the
RHEL6.2 system I just checked) //dot is a different way of expressing /dot.

On RHEL:

    # mkdir /dot
    # [[ /dot -ef //dot ]] && echo They look the same to me
    They look the same to me

On Cygwin:

    $ mkdir /dot
    $ [[ /dot -ef //dot ]] || echo "But Cygwin thinks they're different"
    But Cygwin thinks they're different

>...also hangs (at least 15 mins.). I tested it on Linux and another-
>cygwin machine, and test returns promptly there.

So what's the difference between the two Cygwin setups? The versions of
cygwin1.dll are probably most useful, although bear in mind "x worked with some
old version of Cygwin" tends to gather little sympathy unless the behaviour is
clearly a bug -- this isn't. At least to me.

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