I must be doing something wrong -- help me out please. Trying to build
PAR-Packer-0.991 on Win32.
nmake par
fails with this error:
Cannot copy PAR-Packer-0.991-MSWin32-x86-multi-thread-5.10.0.par: Bad file
descriptor at C:/Perl/site/lib/PAR/Dist.pm line 275.
The offending line in makefile was:
PAR-Packer-0.991-MSWin32-x86-multi-thread-5.10.0.par: all test
$(NOECHO) $(PERL) "-Minc::Module::Install" -e
"make_par(q(PAR-Packer-0.991-MSWin32-x86-multi-thread-5.10.0.par))"
PAR::Dist , at line 271, says:
if ($dist and $file ne $dist) {
if ( File::Copy::copy($file, $dist) ) {
unlink $file;
} else {
die "Cannot copy $file: $!";
}
executing with the debugger, I find the following values:
$file = 'PAR-Packer-0.991-MSWin32-x86-multi-thread-5.10.0.par'
$dist = 'C:\\SRC\\PAR
stuf\\PAR-Packer-0.991\\PAR-Packer-0.991-MSWin32-x86-multi-thread-5.10.0.par'
and the cwd is C:\SRC\PAR stuf\PAR-Packer-0.991
thus the File::Copy::copy is trying to copy a file onto itself. Thus the error.
Bob
for reference, perl -v output:
This is perl, v5.10.0 built for MSWin32-x86-multi-thread
(with 5 registered patches, see perl -V for more detail)
Copyright 1987-2007, Larry Wall
Binary build 1004 [287188] provided by ActiveState http://www.ActiveState.com
Built Sep 3 2008 13:16:37