delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/02/25/20:21:19

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: Sebastien DOT Barre AT utc DOT fr (Sébastien Barré)
Cc: cygwin AT sourceware DOT cygnus DOT com
Newsgroups: comp.lang.perl.misc
Subject: pb with Cwd::getcwd() ! [perl 5.005_02 / Cygwin32 B.20.1]
Date: Fri, 26 Feb 1999 01:19:38 GMT
Reply-To: Sebastien DOT Barre AT utc DOT fr
Message-ID: <36d9f665.6589134@news.club-internet.fr>
X-Mailer: Forte Agent 1.5/32.451
MIME-Version: 1.0

(crossposted to the cygwin32 mailing list also)

I'm trying to build/install Perl 5.005_02 for Cygwin32 B20.1
(NT4.0/SP4), and it fails while installing the HTML-pod pages.

After some investigation in the installperl script, I found that the
Cwd::getcwd() (= get pathname of current working directory) was
responsible :

Use ::Cwd;
print getcwd();

=> 
readdir(./..): No such file or directory at yo.pl line 2

If I try to use using cwd() (= same as getcwd but is
implemented using the most natural and safe form for the current
architecture) instead of getcwd();

Use ::Cwd;
print cwd();

=>
/d/devel/gnuwin32/root/tmp/perl5.005_02

which seems OK, although /d/devel/gnuwin32/root is mounted to /, hence
it should better returns /tmp/perl5.005_02.

The problem is, getcwd() seems to be used in many other files in the
distribution, therefore I'd like to fix/understand it in a more general
way before starting to replace all instance of getcwd() with cwd().

Thanks a lot.
-- 
Sebastien Barre : http://www.hds.utc.fr/~barre/

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