delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/15/08:43:35

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: <20000615124432.22399.qmail@web106.yahoomail.com>
Date: Thu, 15 Jun 2000 05:44:32 -0700 (PDT)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: earnie_boyd AT yahoo DOT com
Subject: Re: Problem compiling perl module Term::ReadKey under cygwin
To: "Charles S. Wilson" <cwilson AT ece DOT gatech DOT edu>,
Steve Kelem <kelem AT adaptivesilicon DOT com>
Cc: Cygwin <cygwin AT sourceware DOT cygnus DOT com>
MIME-Version: 1.0

--- "Charles S. Wilson" <cwilson AT ece DOT gatech DOT edu> wrote:
-8<-
> 
> 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.
> 

The code I'm looking at, which I updated from CVS yesterday uses a '/' for
DIR_SEPARATOR if __CYGWIN__ is defined.  The macro DIRSEP doesn't exist.  Thbe
relavent code is:

-----8<--------
#ifndef IN_GCC
#if defined (__MSDOS__) || (defined (_WIN32) && ! defined (__CYGWIN__) && !
defi
ned (_UWIN))
#define DIR_SEPARATOR '\\'
#endif
#endif

#ifndef DIR_SEPARATOR
#define DIR_SEPARATOR '/'
#endif
-----8<--------

> Therefore, '/tmp\ccXXXXXX'.
> 
> To whom should a patch for libiberty be sent?
> 

I don't think one is needed.

Regards,

=====
---
   Earnie Boyd: <mailto:earnie_boyd AT yahoo DOT com>
            __Cygwin: POSIX on Windows__
Cygwin Newbies: <http://www.freeyellow.com/members5/gw32/index.html>
           __Minimalist GNU for Windows__
  Mingw32 List: <http://www.egroups.com/group/mingw32/>
    Mingw Home: <http://www.mingw.org/>

__________________________________________________
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com

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