I am running RT 3.2.2 on SuSE 9.0 with perl 5.8.5. RT starts and seems to run
correctly, except when I click the “Tools” link (Admin/index.html). I get the
following error:
System error:�
Undefined subroutine &Scalar::Util::weaken called at /opt/rt3/lib/RT/Action/
Generic.pm line 104.
context:�
…�
100:�$self->{‘TransactionObj’} = $args{‘TransactionObj’};
101:�$self->{‘TemplateObj’} = $args{‘TemplateObj’};
102:�$self->{‘Type’} = $args{‘Type’};
103:�$self->CurrentUser( $args{‘CurrentUser’});
104:�Scalar::Util::weaken($self->{‘ScripObj’});
105:�Scalar::Util::weaken($self->{‘TicketObj’});
106:�Scalar::Util::weaken($self->{‘TemplateObj’});
107:�Scalar::Util::weaken($self->{‘TransactionObj’});
108:�
…�
code stack:�
/opt/rt3/lib/RT/Action/Generic.pm:104
/opt/rt3/lib/RT/Action/Generic.pm:79
/opt/rt3/share/html/Tools/Offline.html:107
/opt/rt3/share/html/autohandler:221
I have the perl package Scalar-List-Utils-1.14 installed, which is what cpan
downloaded when I requested Scalar::Util.
Running ‘Scalar::Util’ before I downloaded the package said that everything
was “found”. However, obviously something is missing, but what?
Any help is greating appreaciated.
Regards,
Jim Mohr
“Be more concerned with your character than with your reputation. Your
character is what you really are while your reputation is merely what others
think you are.” – John Wooden
Be sure to visit the Linux Tutorial: http://www.linux-tutorial.info
It outputs nothing. The return code is 0.
Output is OK.
IMHO it is your perl problem on SuSE 9.0, I really don’t know why it
happens. Is it distro package or built from sources? Could you rebuild
your perl from sources?
I recommend try rebuild distro package first. if it doesn’t help, try
build vanilla perl. Don’t skip ‘make test’ step.
Hi all,
I found this Posting on gmane.org, but I don’t know if the Problem is
solved.
I have the same problem on SuSE 10.0, perl 5.8.7, RT 3.6.1
The output of the code above states that “Weak references are not
supported in
the version of perl…”
Is there some workaround? Or has someone an idea where to get a perl version
that fits and installs on SuSE 10 without internet connection ?
Regards, Andreas
Ruslan U. Zakirov <Ruslan.Zakirov acronis.com> writes:
Please, try next code:
perl -MScalar::Util=weaken -w -e ‘use strict; my $a = {}; weaken($a);’
What does it output?
James Mohr wrote:
Hi All!
I am running RT 3.2.2 on SuSE 9.0 with perl 5.8.5. RT starts and
seems to run
correctly, except when I click the “Tools” link (Admin/index.html).
I get the
following error: