glide has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I'm having problems with the installation of the module Class::Std::Utils in some Linux systems. With the make test failing in a single test:

~/.cpan/build/Class-Std-Utils-v0.0.3# prove t/ident.t t/ident......1/? # Failed test 'ident acts like int on Regexp' # at t/ident.t line 15. # got: '0' # expected: '8789600' # Looks like you failed 1 test of 15.

This problem, apparently, only occur in perl built for x86_64-linux-gnu-thread-multi.

Can, someone, confirm this problem? Any suggestion to resolve it?

I've made tests in the systems listed below:

many thanks

Replies are listed 'Best First'.
Re: Class::Std::Utils install problem
by gamache (Friar) on Dec 26, 2007 at 16:32 UTC
    Just another data point:

    perl, v5.8.8 built for x86_64-netbsd-thread-multi, NetBSD 4.0 - OK

Re: Class::Std::Utils install problem
by KurtSchwind (Chaplain) on Dec 26, 2007 at 16:55 UTC

    perl, v5.8.8 built for x86_64-linux-thread-multi, SuSE - OK

    My system is similar to yours.

    --
    I used to drive a Heisenbergmobile, but every time I looked at the speedometer, I got lost.
Re: Class::Std::Utils install problem
by glide (Pilgrim) on Dec 26, 2007 at 18:07 UTC

    Is the problem in the pre-compiled module Scalar::Util?! That came with both Linux distributions (Ubuntu 7.10 and Fedora 7).

    Basically the ident function only call the Scalar::Util::refaddr, and ..
    perl -e 'use Scalar::Util; $ref = qr//; print "$ref\n"; print Scalar:: +Util::refaddr($ref)."\n";' (?-xism:) 0
    And after recompilation and installation of the module (same version, 1.19)
    perl -e 'use Scalar::Util; $ref = qr//; print "$ref\n"; print Scalar:: +Util::refaddr($ref)."\n";' (?-xism:) 135576940
    And the tests for the Class::Std::Utils module
    Class-Std-Utils-v0.0.3# prove t/ident.t t/ident......ok All tests successful.