Bug 257821 - perl doesn't support weak references
Summary: perl doesn't support weak references
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl
Version: 8
Hardware: All
OS: All
medium
medium
Target Milestone: ---
Assignee: Marcela Mašláňová
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-08-27 19:41 UTC by Christopher Beland
Modified: 2008-03-07 15:30 UTC (History)
3 users (show)

Fixed In Version: perl-5.8.8-36.fc8
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-03-07 15:30:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.



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