* [gentoo-user] Perl module problem
@ 2007-10-05 20:00 Naga Toro
2007-10-07 18:21 ` [gentoo-user] " Moshe Kamensky
2007-10-12 17:09 ` [gentoo-user] [Solved] " Naga Toro
0 siblings, 2 replies; 5+ messages in thread
From: Naga Toro @ 2007-10-05 20:00 UTC (permalink / raw
To: gentoo-user
Hi,
I have two machines that uses x11-terms/rxvt-unicode-8.3. One is ~amd64 and
one is ~x86, both have the same version of perl and
perl-core/Scalar-List-Utils. One can use the perl extensions (~amd64 one) and
one gives this error on startup:
----
urxvt: perl hook 0 evaluation error: Undefined subroutine
&Scalar::Util::weaken called at /usr/lib/urxvt/urxvt.pm line 1191
----
nonworking:
$ strace urxvt 2>&1 | egrep 'open.*perl'
/usr/lib/perl5/5.8.8/Scalar/Util.pm
/usr/lib/perl5/5.8.8/List/Util.pm
----
working:
$ strace urxvt 2>&1 | egrep 'open.*perl'
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/Scalar/Util.pm
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/List/Util.pm
/usr/lib64/perl5/5.8.8/x86_64-linux/XSLoader.pm
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/auto/List/Util/Util.so
----
This indicates that the working uses perl-core/Scalar-List-Utils but the
nonworking uses dev-lang/perl, but why?
Does anyone have an idea as to how I can debug this?
--
Naga
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-user] Re: Perl module problem
2007-10-05 20:00 [gentoo-user] Perl module problem Naga Toro
@ 2007-10-07 18:21 ` Moshe Kamensky
2007-10-10 18:09 ` Naga Toro
2007-10-12 17:09 ` [gentoo-user] [Solved] " Naga Toro
1 sibling, 1 reply; 5+ messages in thread
From: Moshe Kamensky @ 2007-10-07 18:21 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1487 bytes --]
Hi,
Does /usr/lib/perl5/vendor_perl/5.8.8/Scalar/Util.pm exist? What is the
output of
perl -le 'print foreach @INC'
By the way, I run urxvt fine with the Scalar::Util that comes with perl.
do you have something like
/usr/lib/perl5/5.8.8/i686-linux-thread-multi/auto/List/Util/Util.so
Moshe
* Naga Toro <nagatoro@gmail.com> [05/10/07 16:06]:
> Hi,
>
> I have two machines that uses x11-terms/rxvt-unicode-8.3. One is ~amd64 and
> one is ~x86, both have the same version of perl and
> perl-core/Scalar-List-Utils. One can use the perl extensions (~amd64 one) and
> one gives this error on startup:
> ----
> urxvt: perl hook 0 evaluation error: Undefined subroutine
> &Scalar::Util::weaken called at /usr/lib/urxvt/urxvt.pm line 1191
> ----
> nonworking:
> $ strace urxvt 2>&1 | egrep 'open.*perl'
> /usr/lib/perl5/5.8.8/Scalar/Util.pm
> /usr/lib/perl5/5.8.8/List/Util.pm
> ----
> working:
> $ strace urxvt 2>&1 | egrep 'open.*perl'
> /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/Scalar/Util.pm
> /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/List/Util.pm
> /usr/lib64/perl5/5.8.8/x86_64-linux/XSLoader.pm
> /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/auto/List/Util/Util.so
> ----
> This indicates that the working uses perl-core/Scalar-List-Utils but the
> nonworking uses dev-lang/perl, but why?
>
> Does anyone have an idea as to how I can debug this?
>
> --
> Naga
> --
> gentoo-user@gentoo.org mailing list
>
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Re: Perl module problem
2007-10-07 18:21 ` [gentoo-user] " Moshe Kamensky
@ 2007-10-10 18:09 ` Naga Toro
2007-10-10 21:12 ` Moshe Kamensky
0 siblings, 1 reply; 5+ messages in thread
From: Naga Toro @ 2007-10-10 18:09 UTC (permalink / raw
To: gentoo-user
On Sunday 07 October 2007 20.21.57 Moshe Kamensky wrote:
> Hi,
>
> Does /usr/lib/perl5/vendor_perl/5.8.8/Scalar/Util.pm exist? What is the
> output of
>
> perl -le 'print foreach @INC'
$ perl -le 'print foreach @INC'
/etc/perl
/usr/lib/perl5/vendor_perl/5.8.8/i686-linux
/usr/lib/perl5/vendor_perl/5.8.8
/usr/lib/perl5/vendor_perl
/usr/lib/perl5/site_perl/5.8.8/i686-linux
/usr/lib/perl5/site_perl/5.8.8
/usr/lib/perl5/site_perl
/usr/lib/perl5/5.8.8/i686-linux
/usr/lib/perl5/5.8.8
/usr/local/lib/site_perl
.
Same on both machines.
> By the way, I run urxvt fine with the Scalar::Util that comes with perl.
> do you have something like
> /usr/lib/perl5/5.8.8/i686-linux-thread-multi/auto/List/Util/Util.so
/usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/List/Util/Util.so
/usr/lib/perl5/5.8.8/i686-linux/auto/List/Util/Util.so
Same on both machines (except that i686 == x86_64 on the working one).
>
> Moshe
>
> * Naga Toro <nagatoro@gmail.com> [05/10/07 16:06]:
> > Hi,
> >
> > I have two machines that uses x11-terms/rxvt-unicode-8.3. One is ~amd64
> > and one is ~x86, both have the same version of perl and
> > perl-core/Scalar-List-Utils. One can use the perl extensions (~amd64 one)
> > and one gives this error on startup:
> > ----
> > urxvt: perl hook 0 evaluation error: Undefined subroutine
> > &Scalar::Util::weaken called at /usr/lib/urxvt/urxvt.pm line 1191
> > ----
> > nonworking:
> > $ strace urxvt 2>&1 | egrep 'open.*perl'
> > /usr/lib/perl5/5.8.8/Scalar/Util.pm
> > /usr/lib/perl5/5.8.8/List/Util.pm
> > ----
> > working:
> > $ strace urxvt 2>&1 | egrep 'open.*perl'
> > /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/Scalar/Util.pm
> > /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/List/Util.pm
> > /usr/lib64/perl5/5.8.8/x86_64-linux/XSLoader.pm
> > /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/auto/List/Util/Util.so
> > ----
> > This indicates that the working uses perl-core/Scalar-List-Utils but the
> > nonworking uses dev-lang/perl, but why?
> >
> > Does anyone have an idea as to how I can debug this?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-user] Re: Perl module problem
2007-10-10 18:09 ` Naga Toro
@ 2007-10-10 21:12 ` Moshe Kamensky
0 siblings, 0 replies; 5+ messages in thread
From: Moshe Kamensky @ 2007-10-10 21:12 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2599 bytes --]
* Naga Toro <nagatoro@gmail.com> [10/10/07 14:15]:
> On Sunday 07 October 2007 20.21.57 Moshe Kamensky wrote:
> > Hi,
> >
> > Does /usr/lib/perl5/vendor_perl/5.8.8/Scalar/Util.pm exist? What is the
> > output of
> >
> > perl -le 'print foreach @INC'
>
> $ perl -le 'print foreach @INC'
> /etc/perl
> /usr/lib/perl5/vendor_perl/5.8.8/i686-linux
> /usr/lib/perl5/vendor_perl/5.8.8
> /usr/lib/perl5/vendor_perl
> /usr/lib/perl5/site_perl/5.8.8/i686-linux
> /usr/lib/perl5/site_perl/5.8.8
> /usr/lib/perl5/site_perl
> /usr/lib/perl5/5.8.8/i686-linux
> /usr/lib/perl5/5.8.8
> /usr/local/lib/site_perl
> .
>
> Same on both machines.
>
Strange. Can you edit /usr/lib/urxvt/urxvt.pm and add the line
warn $INC{'Scalar/Util.pm'};
just before line 1191? Then run urxvt from a terminal, and see what it
says.
> > By the way, I run urxvt fine with the Scalar::Util that comes with perl.
> > do you have something like
> > /usr/lib/perl5/5.8.8/i686-linux-thread-multi/auto/List/Util/Util.so
>
> /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/List/Util/Util.so
> /usr/lib/perl5/5.8.8/i686-linux/auto/List/Util/Util.so
What about /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/Scalar/Util.pm ?
Moshe
>
> Same on both machines (except that i686 == x86_64 on the working one).
>
> >
> > Moshe
> >
> > * Naga Toro <nagatoro@gmail.com> [05/10/07 16:06]:
> > > Hi,
> > >
> > > I have two machines that uses x11-terms/rxvt-unicode-8.3. One is ~amd64
> > > and one is ~x86, both have the same version of perl and
> > > perl-core/Scalar-List-Utils. One can use the perl extensions (~amd64 one)
> > > and one gives this error on startup:
> > > ----
> > > urxvt: perl hook 0 evaluation error: Undefined subroutine
> > > &Scalar::Util::weaken called at /usr/lib/urxvt/urxvt.pm line 1191
> > > ----
> > > nonworking:
> > > $ strace urxvt 2>&1 | egrep 'open.*perl'
> > > /usr/lib/perl5/5.8.8/Scalar/Util.pm
> > > /usr/lib/perl5/5.8.8/List/Util.pm
> > > ----
> > > working:
> > > $ strace urxvt 2>&1 | egrep 'open.*perl'
> > > /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/Scalar/Util.pm
> > > /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/List/Util.pm
> > > /usr/lib64/perl5/5.8.8/x86_64-linux/XSLoader.pm
> > > /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/auto/List/Util/Util.so
> > > ----
> > > This indicates that the working uses perl-core/Scalar-List-Utils but the
> > > nonworking uses dev-lang/perl, but why?
> > >
> > > Does anyone have an idea as to how I can debug this?
> --
> gentoo-user@gentoo.org mailing list
>
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] [Solved] Perl module problem
2007-10-05 20:00 [gentoo-user] Perl module problem Naga Toro
2007-10-07 18:21 ` [gentoo-user] " Moshe Kamensky
@ 2007-10-12 17:09 ` Naga Toro
1 sibling, 0 replies; 5+ messages in thread
From: Naga Toro @ 2007-10-12 17:09 UTC (permalink / raw
To: gentoo-user
The problem was that libperl had a reference to /usr/lib/perl5/.../i486-linux/
when it should be /usr/lib/perl5/.../i686-linux/. So a reemerge of libperl
later the problem is gone.
--
Naga
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-10-12 17:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-05 20:00 [gentoo-user] Perl module problem Naga Toro
2007-10-07 18:21 ` [gentoo-user] " Moshe Kamensky
2007-10-10 18:09 ` Naga Toro
2007-10-10 21:12 ` Moshe Kamensky
2007-10-12 17:09 ` [gentoo-user] [Solved] " Naga Toro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox