Hi,
As this is my first post to this list, let me start by thanking
Autrijus for PAR: what a fabulous pieces of hackery.
I'd like to report difficulty installing PAR 0.86 and 0.87 (and the
svn archive as of this moment) on an Ubuntu/Debian system. PAR 0.85
installs fine.
Here's the output of 'perl Makefile.PL' and of 'make'. Somehow,
something, somewhere decides that a small chunk of File::Path is
invalid:
----
[penguin: PAR-0.87]# perl Makefile.PL
*** ExtUtils::AutoInstall version 0.61
*** Checking for dependencies...
[Core Features]
- File::Temp ...loaded. (0.16 >= 0.05)
- Compress::Zlib ...loaded. (1.33 >= 1.3)
- Archive::Zip ...loaded. (1.14 >= 1)
- Module::ScanDeps ...loaded. (0.51 >= 0.45)
- PAR::Dist ...loaded. (0.07 >= 0.06)
[Digital signature support]
- Digest ...loaded. (1.06)
- Module::Signature ...loaded. (0.44 >= 0.35)
*** ExtUtils::AutoInstall configuration finished.
Checking if your kit is complete...
Looks good
Writing Makefile for the par program
Writing Makefile for PAR
[penguin: PAR-0.87]# make
cp lib/PAR/Packer.pm blib/lib/PAR/Packer.pm
cp lib/PAR/Filter/PodStrip.pm blib/lib/PAR/Filter/PodStrip.pm
cp lib/PAR/Filter/Obfuscate.pm blib/lib/PAR/Filter/Obfuscate.pm
cp lib/App/Packer/PAR.pm blib/lib/App/Packer/PAR.pm
cp lib/PAR/Filter.pm blib/lib/PAR/Filter.pm
cp lib/PAR.pm blib/lib/PAR.pm
cp lib/PAR/Filter/PatchContent.pm blib/lib/PAR/Filter/PatchContent.pm
cp lib/PAR/Filter/Bytecode.pm blib/lib/PAR/Filter/Bytecode.pm
cp lib/PAR/Tutorial.pod blib/lib/PAR/Tutorial.pod
cp lib/PAR/FAQ.pod blib/lib/PAR/FAQ.pod
cp lib/PAR/Heavy.pm blib/lib/PAR/Heavy.pm
cp lib/PAR/Filter/Bleach.pm blib/lib/PAR/Filter/Bleach.pm
make[1]: Entering directory `/home/khkramer/.cpan/build/PAR-0.87/myldr'
/usr/bin/perl ./file2c.pl /usr/lib/libperl.so.5.8 my_perl.c load_me_0 1 30000
cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.8/CORE main.c
/usr/bin/perl ./file2c.pl ../script/par.pl my_par_pl.c load_me_2 1
cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.8/CORE my_par_pl.c
cc main.o my_par_pl.o -s -Wl,-E -L/usr/local/lib
/usr/lib/perl/5.8.4/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.8/CORE
-lperl -ldl -lm -lpthread -lc -lcrypt --output ./par
/usr/bin/perl ./file2c.pl ./par my_par.c load_me_1 1 30000
cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.8/CORE static.c
cc static.o -s -Wl,-E -L/usr/local/lib
/usr/lib/perl/5.8.4/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.8/CORE -ldl
-lm -lpthread -lc -lcrypt --output ./static
/usr/bin/perl parlsig.pl ./static ./par 1 30000
./static -I"/home/khkramer/.cpan/build/PAR-0.87/inc" -I"/etc/perl"
-I"/usr/local/lib/perl/5.8.4" -I"/usr/local/share/perl/5.8.4"
-I"/usr/lib/perl5" -I"/usr/share/perl5" -I"/usr/lib/perl/5.8.4"
-I"/usr/share/perl/5.8.4" -I"/usr/local/lib/site_perl"
-I"/home/khkramer/.cpan/build/PAR-0.87" -I"." -I../myldr/.. -I../blib/lib -q -B
-O../script/parl
Found = in conditional, should be == at /usr/share/perl/5.8.4/File/Path.pm line
266.
Bareword "getcwd" not allowed while "strict subs" in use at
/usr/share/perl/5.8.4/File/Path.pm line 266.
Compilation failed in require at /usr/share/perl5/Archive/Zip.pm line 416.
BEGIN failed--compilation aborted at /usr/share/perl5/Archive/Zip.pm line 416.
Compilation failed in require at -e line 389.
BEGIN failed--compilation aborted at -e line 835.
make[1]: *** [../script/parl] Error 255
make[1]: Leaving directory `/home/khkramer/.cpan/build/PAR-0.87/myldr'
make: *** [subdirs] Error 2
----
Here are the relevant lines (266-269) from File::Path:
----
my $oldpwd = getcwd or do {
carp "Can't fetch initial working directory";
return;
};
----
File::Path actually does work fine in other contexts. Please let me
know what I can do to help track this problem back to its root.
Again, thanks ...
Kwindla