Shawn Walker wrote:
James Carlson wrote:
I'm using OpenSolaris installed from 2009.06 and upgraded to the
current /dev branch. Perl's Scalar::Util doesn't seem to work right:
I'll assume build 117 then?
Yes.
> x86 or SPARC? 32-bit or 64-bit?
It's an AMD Opteron 64-bit system. I don't think the user space bits
are 64-bit ... though I haven't really looked.
% uname -a
SunOS carlson 5.11 snv_117 i86pc i386 i86pc
% isainfo -k
amd64
pldd on a running /usr/bin/perl process seems to suggest that it's a
32-bit program, so I don't quite see what the kernel type has to do with it.
% /usr/bin/perl
use Scalar::Util qw( weaken );
weaken is only available with the XS version of Scalar::Util at - line 1
BEGIN failed--compilation aborted at - line 1.
This *does* work with blastwave's Perl. Is something amiss with the
way this is being compiled, or am I somehow doing something wrong?
I've tried both my 111b and 117 on my 64-bit x86 systems and neither of
them seem to have this issue.
Have you tried "pkg verify SUNWperl584core" to see if everything is ok?
Yep. And "pkg fix SUNWperl584core". It's fine. It just doesn't work.
The web seems to suggest that this means that this module was compiled
without "XS" ... whatever the heck that is.
% find /usr/perl5 -print | fgrep Scalar/Util
/usr/perl5/5.8.4/lib/Scalar/Util.pm
/usr/perl5/5.8.4/lib/i86pc-solaris-64int/Scalar/Util
/usr/perl5/5.8.4/lib/i86pc-solaris-64int/Scalar/Util/PP.pm
/usr/perl5/5.8.4/lib/i86pc-solaris-64int/Scalar/Util.pm
% pkg verify SUNWperl584core
% /usr/bin/perl -e 'use Scalar::Util qw( weaken );'
weaken is only available with the XS version of Scalar::Util at -e line 1
BEGIN failed--compilation aborted at -e line 1.
% /opt/csw/bin/perl -e 'use Scalar::Util qw( weaken );'
%
I *did* install some updated libraries using cpan into site_perl,
because the system doesn't seem to come with FileHandle::Unget and
other things that common programs (such as grepmail) need ...
could that be breaking things, even though "pkg verify" doesn't
show any damage?
Sure is hard to use ...
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code