Bug 1085579 - perl-Moose compiled for perl API v5.16.0; fedora perl now at v5.18.0
Summary: perl-Moose compiled for perl API v5.16.0; fedora perl now at v5.18.0
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-Moose
Version: 20
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Iain Arnell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-09 00:46 UTC by simon.galton
Modified: 2014-04-09 14:01 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-04-09 08:18:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description simon.galton 2014-04-09 00:46:35 UTC
Description of problem: perl scripts which use the Moose module fail with the following error:
Perl API version v5.16.0 of Moose does not match v5.18.0 at /usr/lib64/perl5/DynaLoader.pm line 213.

Version-Release number of selected component (if applicable): 
perl-5.18.2-289.fc20.x86_64
perl-Moose-2.1005-1.fc20.x86_64

How reproducible: install perl and perl-Moose packages then add "use Moose;" to the top of any perl script


Steps to Reproduce:
1. yum -y install perl perl-Moose
2. add "use Moose;" to a perl script
3. try to run the perl script

Actual results:

The script will abort with the following complaints:
Perl API version v5.16.0 of Moose does not match v5.18.0 at /usr/lib64/perl5/DynaLoader.pm line 213.
Compilation failed in require at /usr/local/lib64/perl5/Moose/Exporter.pm line 13.
BEGIN failed--compilation aborted at /usr/local/lib64/perl5/Moose/Exporter.pm line 13.
Compilation failed in require at /usr/local/lib64/perl5/Moose.pm line 18.
BEGIN failed--compilation aborted at /usr/local/lib64/perl5/Moose.pm line 18.

Expected results:

The script should run without error

Additional info:

Will have to roll back to (now unsupported) Fedora 18 (the last known working configuration)

Comment 1 Petr Pisar 2014-04-09 08:18:15 UTC
(In reply to simon.galton from comment #0)
> Description of problem: perl scripts which use the Moose module fail with
> the following error:
> Perl API version v5.16.0 of Moose does not match v5.18.0 at
> /usr/lib64/perl5/DynaLoader.pm line 213.
> 
> Version-Release number of selected component (if applicable): 
> perl-5.18.2-289.fc20.x86_64
> perl-Moose-2.1005-1.fc20.x86_64
> 
> How reproducible: install perl and perl-Moose packages then add "use Moose;"
> to the top of any perl script
> 
I cannot reproduce it:

$ rpm -q perl perl-Moose
perl-5.18.2-289.fc20.x86_64
perl-Moose-2.1005-1.fc20.x86_64
$ perl -e 'use Moose'
$ echo $?
0


> The script will abort with the following complaints:
> Perl API version v5.16.0 of Moose does not match v5.18.0 at
> /usr/lib64/perl5/DynaLoader.pm line 213.
> Compilation failed in require at /usr/local/lib64/perl5/Moose/Exporter.pm
> line 13.
> BEGIN failed--compilation aborted at
> /usr/local/lib64/perl5/Moose/Exporter.pm line 13.
> Compilation failed in require at /usr/local/lib64/perl5/Moose.pm line 18.
> BEGIN failed--compilation aborted at /usr/local/lib64/perl5/Moose.pm line 18.
> 
If you read the error message carefully, you will see the Moose.pm is loaded from /usr/local. This not a file delivered by Fedora. That's your own local installation.

You have to remove the files or reinstall them from cpan to get rebuild against current perl.

Comment 2 simon.galton 2014-04-09 13:50:10 UTC
Thanks -- will check on the other systems.

Comment 3 simon.galton 2014-04-09 14:01:44 UTC
I can confirm that the issue was local to one system -- our bad!
Thanks!


Note You need to log in before you can comment on or make changes to this bug.