Skip Menu |

This queue is for tickets about the version CPAN distribution.

Report information
The Basics
Id: 18377
Status: resolved
Priority: 0/
Queue: version

People
Owner: Nobody in particular
Requestors: tobez [...] freebsd.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.57
Fixed in: (no value)



Subject: version.pm with older perls?
Hi, I am wondering what is the state of version.pm's support for older perls? First, with regard to 5.005_03. Since version.pm uses Module::Build, which wants Archive::Tar, which does not quite work with anything less then 5.6.0 due to its use of 3-argument open(), it appears that there is not much hope here, short of replacing Build.PL with Makefile.PL that does not require Module::Build::Compat. Secondly, with regard to 5.6.X. I am getting test failures like this with 0.57: t/01base.......dubious Test returned status 1 (wstat 256, 0x100) t/02derived....dubious Test returned status 1 (wstat 256, 0x100) # Tests with base class # tests with bare numbers # tests with quoted numbers # tests with stringify # test illegal formats /libexec/ld-elf.so.1: /usr/ports/devel/p5-version/work/version-0.57/blib/arch/auto/version/vxs/vxs.so: Undefined symbol "packWARN" Unquoted string "version" may clash with future reserved word at t/02derived.t line 16. # Tests with empty derived class # tests with bare numbers # tests with quoted numbers # tests with stringify # test illegal formats /libexec/ld-elf.so.1: /usr/ports/devel/p5-version/work/version-0.57/blib/arch/auto/version/vxs/vxs.so: Undefined symbol "packWARN" FAILED--2 test scripts could be run, alas--no output ever seen Which looks like a 5.8.X-specific thing to me. Is this something which can perhaps be easily fixed? Thank you in advance, \Anton. -- An undefined problem has an infinite number of solutions. -- Robert A. Humphrey
Anton Berezin wrote: Show quoted text
> I am wondering what is the state of version.pm's support for older > perls? > > First, with regard to 5.005_03. Since version.pm uses Module::Build, > which wants Archive::Tar, which does not quite work with anything less > then 5.6.0 due to its use of 3-argument open(), it appears that there > is not much hope here, short of replacing Build.PL with Makefile.PL > that does not require Module::Build::Compat.
I can't support 5.005_03 (because it doesn't build with modern compilers), but I was planning on still supporting 5.005_04 (which has been fixed). I suppose I'll have to revive a traditional Makefile.PL, but it is going to be a pain because of the need to support both a pure Perl and/or an XS implementation. Show quoted text
> Secondly, with regard to 5.6.X. I am getting test failures like this > with 0.57:
Hrm. I suspect I need to get a newer copy of ppport.h in the distro; let me play around. Thanks for the report... John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748
On Sun Mar 26 17:21:31 2006, JPEACOCK wrote: Show quoted text
> I can't support 5.005_03 (because it doesn't build with modern > compilers), but I was planning on still supporting 5.005_04 (which has > been fixed). I suppose I'll have to revive a traditional Makefile.PL, > but it is going to be a pain because of the need to support both a pure > Perl and/or an XS implementation.
I went through and installed 5.005_04 on my machine and tried to install Module::Build. It turns out the dependency on Archive::Tar is an optional one, and M::B actually works fine with 5.005_04. I'm working my way through the compatiblity issues. The biggest pain so far on the Perl side is that I'm using 'no warnings' to suppress some unnecessary noise when loading the module. Don't know yet how I am going to get around that. I've made a couple of minor changes and have figured out how to support 5.6.x at least (tested with 5.6.2, if that matters). I also loaded your original message and my reply into RT, so you can just reply to these messages instead... John
From: simon [...] novacaster.com
On Sun Mar 26 17:30:51 2006, JPEACOCK wrote: Show quoted text
> I've made a couple of minor changes and have figured out how to support > 5.6.x at least (tested with 5.6.2, if that matters).
I've just run into a similar problem whilst following a dependency tree down from Config::Std (the box's default Perl is 5.6.1 - it's an old RedHat 7.3 machine): Running make test /usr/bin/perl Build --makefile_env_macros 1 test t/01base.......ok 1/0# Tests with base class # tests with bare numbers # tests with quoted numbers # tests with stringify # test illegal formats /usr/bin/perl: relocation error: /home/sb/.cpan/build/version-0.57/blib/arch/auto/version/vxs/vxs.so: undefined symbol: packWARN t/01base.......dubious Test returned status 127 (wstat 32512, 0x7f00) t/02derived....Unquoted string "version" may clash with future reserved word at t/02derived.t line 16. t/02derived....ok 1/0# Tests with empty derived class # tests with bare numbers # tests with quoted numbers # tests with stringify # test illegal formats /usr/bin/perl: relocation error: /home/sb/.cpan/build/version-0.57/blib/arch/auto/version/vxs/vxs.so: undefined symbol: packWARN t/02derived....dubious Test returned status 127 (wstat 32512, 0x7f00) FAILED--2 test scripts could be run, alas--no output ever seen make: *** [test] Error 11 /usr/bin/make test -- NOT OK Appreciate you're already on the case and making progress, hopefully you can come up with a fix for 5.6.1 too. Regards Simon
I just released version-0.58 to CPAN; you should see it on your local mirror within a day. It fixes all of the problems with 5.6.x (both XS and pure Perl works) and partially fixes 5.005_x (only the pure Perl module works). It still requires Module::Build, but as I explained, you can install Module::Build without the optional dependencies and it still works. I'll fix the XS release for 5.005_x later; there is some weird dependency thing going on that I cannot figure out. Thanks John