Skip Menu |

This queue is for tickets about the version CPAN distribution.

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

People
Owner: Nobody in particular
Requestors: paul [...] city-fan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.79
Fixed in: (no value)



Subject: Assertion problems in 0.79
A couple of problems with the PERL_ARGS_ASSERT_PRESCAN_VERSION assertion in 0.79: 1. saw_period has been renamed elsewhere in the code to saw_decimal, resulting in "undefined" errors in the resulting C code 2. assert(strict) is a problem since the only use of this macro is in a call from vutil.c in which "strict" is explicitly set to FALSE. Attached patch fixes these problems for me; I'm seeing the problems on lots of old versions of Fedora/Red Hat Enterprise Linux, though somehow it seems to build OK on more up to date releases.
Subject: perl-version-0.79-assert.patch
--- version-0.79/vutil/vutil.h 2010-01-10 14:08:42.000000000 +0000 +++ version-0.79/vutil/vutil.h 2010-01-11 14:00:25.700941525 +0000 @@ -41,7 +41,7 @@ (a != Perl_prescan_version(aTHX_ a, b, NULL, NULL, NULL, NULL)) #define PERL_ARGS_ASSERT_PRESCAN_VERSION \ - assert(s); assert(strict); assert(sqv); assert(ssaw_period);\ + assert(s); assert(sqv); assert(ssaw_decimal);\ assert(swidth); assert(salpha); #define PERL_ARGS_ASSERT_SCAN_VERSION \ assert(s); assert(rv)
From: farhany [...] xaviya.com
On Mon Jan 11 09:56:56 2010, paul@city-fan.org wrote: Show quoted text
> Attached patch fixes these problems for me; I'm seeing the problems on > lots of old versions of Fedora/Red Hat Enterprise Linux, though somehow > it seems to build OK on more up to date releases.
I am seeing the exact problem with version-0.79.tar.gz on Red Hat EL 4. Version 0.76 seems to compile fine. Not to be redundant, but I'm including my specific build machine info incase it helps: # perl -v This is perl, v5.8.5 built for i386-linux-thread-multi # uname -a Linux testbox 2.6.9-89.0.19.ELsmp #1 SMP Wed Dec 30 12:53:30 EST 2009 i686 i686 i386 GNU/Linux # lsb_release -a LSB Version: :core-3.0-ia32:core-3.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch Distributor ID: RedHatEnterpriseAS Description: Red Hat Enterprise Linux AS release 4 (Nahant Update 8) Release: 4 Codename: NahantUpdate8
Fixed in 0.80 (just released to CPAN). 0.81 will be out shortly which will match the version.pm that will ship with Perl 5.12.0 (major rewrite)