On Wed, 29 Dec 2004, David Totten wrote:
> I recently saw on search.cpan.org, that Storable 2.13 is now thread
> safe. I also saw that with the new release of ActivePerl 5.8.6,
> Storable 2.13 was included. I just wanted to let people know of
> something that I found. We at work here are still using PerlEx, and
> when running our application that needs Storable in the new ActivePerl
> 5.8.6 build, I got an error. Here is what the perl error log recorded:
>
[...]
>
> The syntax error line was a little odd to me, so I checked it out.
> There was nothing too horrible looking about it, except that it called
> logcroak. I searched for the definition of the logcroak subroutine,
> and couldn't find it. What I did find though is a comment that said
> that Storable tries to use Log::Agent if it is available, which
> provides logcroak. I looked for a ppm of Log::Agent, but I couldn't
> find one, so I downloaded it from search.cpan.org. Once it was
> installed, everything seems to be working fine.
>
> Could Log::Agent be installed as part of the ActivePerl installation?
It looks like the PerlEx Precompiler and the Perl Autoloader interact in
a weird way. An easier workaround would be to comment out both the
use AutoLoader;
and the first
__END__
line in the Storable.pm module. Alternatively you could add
parentheses around the logcroak() arguments to tell Perl that this is
a subroutine call.
Cheers,
-Jan
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs