----- Original Message ----- 
From: "Sisyphus" <[EMAIL PROTECTED]>
To: "perl-win32-users" <perl-win32-users@listserv.ActiveState.com>
Sent: Monday, October 09, 2006 1:16 PM
Subject: Problem loading Archive::Tar


> Hi,
> On AS build 817:
>
> -----------------------
>  E:\>perl -MArchive::Tar -e "print $Archive::Tar::VERSION"
> &Config::AUTOLOAD failed on Config::launcher at E:/Perl817/lib/Config.pm
> line 72.
> BEGIN failed--compilation aborted at E:/Perl817/site/lib/Archive/Tar.pm
line
> 34.
>
> Compilation failed in require.
> BEGIN failed--compilation aborted.
> ---------------------
>

Finally remembered that I have another 817 installation on my laptop - and
it I find it works fine. It's just the desktop version that's broken.
Both the desktop and laptop have identical renditions of both Config.pm and
Config_heavy.pl (according to 'diff -u').

It seems to come down to sub AUTOLOAD in Config.pm:

sub AUTOLOAD {
    my $config_heavy = 'Config_heavy.pl';
    if (defined &ActivePerl::_CONFIG_HEAVY) {
       $config_heavy = ActivePerl::_CONFIG_HEAVY();
    }
    require $config_heavy;
    goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/;
    die "&Config::AUTOLOAD failed on $Config::AUTOLOAD";
}

If I comment out the 'require $Config_heavy;' in that sub on the laptop's
Config.pm, then I get an identical error to that which I get on the
desktop - presented in my original post and reproduced above, in *this*
post.

I've also verified that on the (broken) desktop, Config_heavy.pl's
launcher() subroutine is never run - even though $Config::AUTOLOAD does not
match /launcher$/ .

Go figure ... it's beat the hell out of me. Something is jiggered (possibly
by me), but I'm damned if I can (yet) work out what.

I get the feeling that if I can get Config_heavy.pl's launcher() subroutine
to load, then my problem will go away. But I haven't yet worked out what
could possibly be preventing it from being run.

Cheers,
Rob

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to