Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
From: Chris Faylor <cgf@cygnus.com>
Date: Thu, 15 Jun 2000 01:41:21 -0400
To: Cygwin <cygwin@sourceware.cygnus.com>
Subject: Re: Problem compiling perl module Term::ReadKey under cygwin
Message-ID: <20000615014121.A4453@cygnus.com>
Reply-To: cygwin@sourceware.cygnus.com
Mail-Followup-To: Cygwin <cygwin@sourceware.cygnus.com>
References: <3947B531.D14BF8DD@adaptivesilicon.com> <3947BBE9.5B33C61E@ece.gatech.edu> <3947BFE4.E7B8E655@adaptivesilicon.com> <39485E8F.3399612C@ece.gatech.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2i
In-Reply-To: <39485E8F.3399612C@ece.gatech.edu>; from cwilson@ece.gatech.edu on Thu, Jun 15, 2000 at 12:41:51AM -0400

On Thu, Jun 15, 2000 at 12:41:51AM -0400, Charles S. Wilson wrote:
>Steve -
>  Worked for me -- but I had to create E:\tmp. A few clues about my
>setup:
>
>F:\cygwin == /
>E:\ = /e
>$HOME = /e/Users/cwilson
>
>I ran cpan as 'cwilson', building in /e/Users/cwilson/.cpan/*.  So, the
>'CURRENT DRIVE' was E: even though perl is installed into /usr/local
>(F:\cygwin\usr\local).
>
>CYGWIN LIST:
>
>I tracked down the problem: the choose_temp_base() routine in libiberty
>(which is linked by dllwrap.exe) defines '\\' as the path separator on
>all _WIN32 platforms. This routine checks the environment variable
>$TMPDIR, $TMP, and $TEMP, followed by {DIRSEP}tmp, and
>{DIRSEP}usr{DIRSEP}tmp. So, in my case $TEMP=/tmp. Then, the routine
>adds {DIRSEP}ccXXXXXX where 'X' is a digit.
>
>Therefore, '/tmp\ccXXXXXX'.
>
>To whom should a patch for libiberty be sent?

This is the code in the current libiberty:

ifndef IN_GCC
#if defined (__MSDOS__) || (defined (_WIN32) && ! defined (__CYGWIN__) && ! defined (_UWIN))
#define DIR_SEPARATOR '\\'
#endif
#endif

It should do the correct thing for cygwin now, so there's no need to send
a patch to anyone.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

