This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problem compiling perl module Term::ReadKey under cygwin

Steve -
  Worked for me -- but I had to create E:\tmp. A few clues about my

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


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?


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]