delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/15/00:45:25

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <39485EF9.E4D10A2D@ece.gatech.edu>
Date: Thu, 15 Jun 2000 00:43:37 -0400
From: "Charles S. Wilson" <cwilson AT ece DOT gatech DOT edu>
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Steve Kelem <kelem AT adaptivesilicon DOT com>
CC: Cygwin <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: Problem compiling perl module Term::ReadKey under cygwin
References: <3947B531 DOT D14BF8DD AT adaptivesilicon DOT com> <3947BBE9 DOT 5B33C61E AT ece DOT gatech DOT edu> <3947BFE4 DOT E7B8E655 AT adaptivesilicon DOT com>

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?

--Chuck


Steve Kelem wrote:
> 
> "Charles S. Wilson" wrote:
> 
> > *I* know of no problems using cpan updates with my perl -- it works fine
> > for me. I haven't tried Term::ReadKey though.
> 
> Can you give it a try? If it works for you, then the problem is something on
> my system.  If it fails for you,
> then it's probably a more general problem.  I run:
> 
> perl -MCPAN -e shell
> install Term::ReadKey
> 
> > However, your problem is different. It's because of a recent change to
> > cygwin -- see the recent cygwin mailing list thread entitled 'Wierd
> > patch problem' starting with
> > http://sourceware.cygnus.com/ml/cygwin/2000-05/msg00671.html
> >
> > The change to cygwin is that ANY path that contains a backslash is
> > interpreted as a windows path, so /tmp\cc001120.base becomes "CURRENT
> > DRIVE:\\tmp\\cc001181.base".
> >
> > I think you need to create a \tmp directory in the root of the drive in
> > which you're building. So, if you're building in /usr/local/ and /usr is
> > mounted from F:\cygwin, then create F:\tmp
> 
> I have cygwin installed in H:\. There is a tmp directory in H:\..  There is no
> special mount for /tmp.
> $TMP points to C:\TEMP, which also exists.
> 
> Steve

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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