Bug 257821

Summary: perl doesn't support weak references
Product: [Fedora] Fedora Reporter: Christopher Beland <beland>
Component: perlAssignee: Marcela Mašláňová <mmaslano>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 8CC: kasal, rc040203, tcallawa
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: perl-5.8.8-36.fc8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-03-07 15:30:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christopher Beland 2007-08-27 19:41:49 UTC
I was trying to start a Catalyst app which works fine with Perl packages as
downloaded from CPAN using the "cpan" command-line interface.

Instead of using CPAN packages, I decided to try the modules supplied as RPMs by
Fedora.  Upon startup, the app complains:

 Weak references are not implemented in the version of perl at
  /usr/lib/perl5/vendor_perl/5.8.8/Catalyst.pm line 22

This is apparently due to a missing Scalar::Util::weaken, as described at: 
 http://search.cpan.org/dist/Task-Weaken/lib/Task/Weaken.pm

RPM versions:
perl-5.8.8-18.fc7
perl-Catalyst-Runtime-5.7007-4.fc7

Comment 1 Marcela Mašláňová 2008-02-26 12:26:20 UTC
Did it work when you use Scalar::Util from RPM? 

Thank you for the above link, but I checked perl packages which includes the
Scalar::Util and here is XS compiled. Also the package Scalar::Util use XS support. 

Comment 2 Christopher Beland 2008-03-01 03:26:18 UTC
I'm afraid I don't entirely understand what you are saying.  Scalar::Util is
included in the "perl" RPM.  So for example when I upgraded to perl-5.8.8-33.fc8
from the previous Fedora 8 perl RPM, I started getting the "Weak references are
not implemented" error until I force-installed Scalar::Util from CPAN.


Comment 3 Marcela Mašláňová 2008-03-07 15:30:13 UTC
The package perl-5.8.8-36 upgrade the Scalar::Util on the latest version. The
problem with XS support, weaken and other functions provided by Scalar::Util
should be fixed by this update.
If you problem persist, please feel free to reopen the bug.