Hi there, On Wednesday 25 July 2007 02:24, Brendan O'Dea wrote: > On Tue, Jul 24, 2007 at 09:01:51PM +0100, Marcos Marado wrote: > >OK, the "working" machine outputs nothing, but the "non-working" says: > > > >$ perl -e "use Scalar::Util 'weaken'" > >Weak references are not implemented in the version of perl at -e line 1 > >BEGIN failed--compilation aborted at -e line 1. > > > >The "bad" machine has this includes that aren't in the "good" machine: > > > > 'Config.pm' => '/usr/lib/perl/5.8/Config.pm', > > 'Exporter/Heavy.pm' => '/usr/share/perl/5.8/Exporter/Heavy.pm', > > 'AutoLoader.pm' => '/usr/share/perl/5.8/AutoLoader.pm', > > 'DynaLoader.pm' => '/usr/lib/perl/5.8/DynaLoader.pm', > > > >Can you please give me any more help in this issue? > > Please provide the output of the following commands:
Sure, > dpkg -l perl-base perl perl-modules Both machines (good and bad) output the same thing here: # dpkg -l perl-base perl perl-modules Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-=====================-=====================-========================================================== ii perl 5.8.8-7 Larry Wall's Practical Extraction and Report Language ii perl-base 5.8.8-7 The Pathologically Eclectic Rubbish Lister ii perl-modules 5.8.8-7 Core Perl modules > strace -etrace=open perl -MScalar::Util=weaken -e 1 Here they are different: 1) machine with no problems: # strace -etrace=open perl -MScalar::Util=weaken -e 1 open("/etc/ld.so.cache", O_RDONLY) = 3 open("/lib/tls/i686/cmov/libdl.so.2", O_RDONLY) = 3 open("/lib/tls/i686/cmov/libm.so.6", O_RDONLY) = 3 open("/lib/tls/i686/cmov/libpthread.so.0", O_RDONLY) = 3 open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3 open("/lib/tls/i686/cmov/libcrypt.so.1", O_RDONLY) = 3 open("/dev/urandom", O_RDONLY|O_LARGEFILE) = 3 open("/dev/null", O_RDONLY|O_LARGEFILE) = 3 open("/usr/lib/perl/5.8/Scalar/Util.pm", O_RDONLY|O_LARGEFILE) = 4 open("/usr/share/perl/5.8/strict.pm", O_RDONLY|O_LARGEFILE) = 5 open("/usr/share/perl/5.8/vars.pm", O_RDONLY|O_LARGEFILE) = 5 open("/usr/share/perl/5.8/warnings/register.pm", O_RDONLY|O_LARGEFILE) = 6 open("/usr/share/perl/5.8/warnings.pm", O_RDONLY|O_LARGEFILE) = 6 open("/usr/share/perl/5.8/Carp.pm", O_RDONLY|O_LARGEFILE) = 7 open("/usr/share/perl/5.8/Exporter.pm", O_RDONLY|O_LARGEFILE) = 7 open("/usr/lib/perl/5.8/List/Util.pm", O_RDONLY|O_LARGEFILE) = 4 open("/usr/lib/perl/5.8/XSLoader.pm", O_RDONLY|O_LARGEFILE) = 4 open("/usr/lib/perl/5.8/auto/List/Util/Util.so", O_RDONLY) = 4 Process 10540 detached 2) machine with problems: # strace -etrace=open perl -MScalar::Util=weaken -e 1 open("/etc/ld.so.cache", O_RDONLY) = 3 open("/lib/tls/i686/cmov/libdl.so.2", O_RDONLY) = 3 open("/lib/tls/i686/cmov/libm.so.6", O_RDONLY) = 3 open("/lib/tls/i686/cmov/libpthread.so.0", O_RDONLY) = 3 open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3 open("/lib/tls/i686/cmov/libcrypt.so.1", O_RDONLY) = 3 open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3 open("/dev/urandom", O_RDONLY|O_LARGEFILE) = 3 open("/dev/null", O_RDONLY|O_LARGEFILE) = 3 open("/usr/local/share/perl/5.8.8/Scalar/Util.pm", O_RDONLY|O_LARGEFILE) = 4 open("/usr/share/perl/5.8/strict.pm", O_RDONLY|O_LARGEFILE) = 5 open("/usr/share/perl/5.8/vars.pm", O_RDONLY|O_LARGEFILE) = 5 open("/usr/share/perl/5.8/warnings/register.pm", O_RDONLY|O_LARGEFILE) = 6 open("/usr/share/perl/5.8/warnings.pm", O_RDONLY|O_LARGEFILE) = 6 open("/usr/share/perl/5.8/Carp.pm", O_RDONLY|O_LARGEFILE) = 7 open("/usr/share/perl/5.8/Exporter.pm", O_RDONLY|O_LARGEFILE) = 7 open("/usr/local/share/perl/5.8.8/List/Util.pm", O_RDONLY|O_LARGEFILE) = 4 open("/usr/lib/perl/5.8/XSLoader.pm", O_RDONLY|O_LARGEFILE) = 4 open("/usr/lib/perl/5.8/DynaLoader.pm", O_RDONLY|O_LARGEFILE) = 4 open("/usr/lib/perl/5.8/Config.pm", O_RDONLY|O_LARGEFILE) = 5 open("/usr/share/perl/5.8/AutoLoader.pm", O_RDONLY|O_LARGEFILE) = 4 open("/usr/lib/perl/5.8/auto/List/Util/Util.so", O_RDONLY) = 4 open("/usr/share/perl/5.8/Exporter/Heavy.pm", O_RDONLY|O_LARGEFILE) = 4 open("/usr/share/perl/5.8/Carp/Heavy.pm", O_RDONLY|O_LARGEFILE) = 4 Weak references are not implemented in the version of perl at -e line 0 BEGIN failed--compilation aborted. Process 21421 detached ============= Also, other packages that depend on libapt-pkg-perl have the same behaviour, even if not in the instalation. For instance, apt-file does not yell at instalation time, but running it also outputs the same errors: # apt-file Weak references are not implemented in the version of perl at /usr/lib/perl5/AptPkg/hash.pm line 8 BEGIN failed--compilation aborted at /usr/lib/perl5/AptPkg/hash.pm line 8. Compilation failed in require at /usr/lib/perl5/AptPkg/Config.pm line 9. BEGIN failed--compilation aborted at /usr/lib/perl5/AptPkg/Config.pm line 9. Compilation failed in require at /usr/bin/apt-file line 30. BEGIN failed--compilation aborted at /usr/bin/apt-file line 30. Please feel free to ask anything else, and thanks for your help, -- Marcos Marado -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]