Description of problem: Version-Release number of selected component (if applicable): The one that just rolled out, 5.8.5-36. How reproducible: Not hard to find. Steps to Reproduce: 1. perl -MScalar::Util=weaken -e 'weaken($var);' 2. 3. Actual results: <snip> Weak references are not implemented in the version of perl at -e line 0 BEGIN failed--compilation aborted. </snip> (no too great) Expected results: <snip> </snip> (it works) Additional info: I'm curious as to the reason for this? According to some others I spoke to this is not the first time this has happened. Also, I believe, although I didn't verify, that this build rolled Storable back on my box. I had the current v2.7 installed. But when I ran CPAN.pm to install a normal Scalar::Util Storable reported that it was 2.6 but the file was 2.7.
wrt to the Scalar::Util issue - I can't reproduce it on any of my RHEL4 machines - [rnorwood@metropolis ~]$ perl -MScalar::Util=weaken -e 'weaken($var);' [rnorwood@metropolis ~]$ rpm -q perl perl-5.8.5-36.RHEL4 [rnorwood@metropolis ~]$ rpm -V perl [rnorwood@metropolis ~]$ cat /etc/redhat-release Red Hat Enterprise Linux AS release 4 (Nahant Update 4) Can you give me some hints to reproduce this - or perhaps there's something 'up' with your test system. Thanks, -RN
Happened here, too. Red Hat Enterprise Linux ES release 4 (Nahant Update 4) perl -e 'use Scalar::Util qw/weaken/;' results: Weak references are not implemented in the version of perl at -e line 0 BEGIN failed--compilation aborted. (same as above) The simple fix -- sudo cpan -f Scalar::Util (perl obligingly replaces the broken Scalar::Util with an up-to-date one.)
Uh, OK... Yeah, that's what I did before I submitted this bug report to get my installs working. But that's not a fix - its a work around. The bug is that the Redhat packaged version of Scalar::Util is built incorrectly. Thanks for documenting the workaround. I probably should have included it in the original report so other people could get past this faster.
I encountered this, on a box where someone had probably used CPAN. There were two versions of Scalar::Util and List::Util in @INC. The first was the CPAN version, the second was the RPM version. Removing the CPAN version solved the problem for me. You can pretty easily find the files to remove by running something like this: find /usr/lib* -path '*/Scalar/Util.pm' | xargs rpm -qf | grep 'not owned' find /usr/lib* -path '*/List/Util.pm' | xargs rpm -qf | grep 'not owned'
#4 that's correct. The mixed up executables from cpan and rpm are the problem. The correct solution is change installation paths, which is impossible for stable major releases. So I can update those two often mentioned modules on the latest version.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
Development Management has reviewed and declined this request. You may appeal this decision by reopening this request.