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:
*** 'D:\Skylights7.x\cgi-bin\skylights.cgi' log message at: 2004/12/28 11:46:00
String found where operator expected at ..\..\lib\Storable.pm
(autosplit into ..\..\lib\auto\Storable\_store.al) line 192, near
"logcroak "not a reference""
(Do you need to predeclare logcroak?)
String found where operator expected at ..\..\lib\Storable.pm
(autosplit into ..\..\lib\auto\Storable\_store.al) line 193, near
"logcroak "wrong argument number""
(Do you need to predeclare logcroak?)
String found where operator expected at ..\..\lib\Storable.pm
(autosplit into ..\..\lib\auto\Storable\_store.al) line 196, near
"logcroak "can't write into $file: $!""
(Do you need to predeclare logcroak?)
String found where operator expected at ..\..\lib\Storable.pm
(autosplit into ..\..\lib\auto\Storable\_store.al) line 198, near
"logcarp "Storable::lock_store: fcntl/flock emulation broken on $^O""
(Do you need to predeclare logcarp?)
String found where operator expected at ..\..\lib\Storable.pm
(autosplit into ..\..\lib\auto\Storable\_store.al) line 202, near
"logcroak "can't get exclusive lock on $file: $!""
(Do you need to predeclare logcroak?)
String found where operator expected at ..\..\lib\Storable.pm
(autosplit into ..\..\lib\auto\Storable\_store.al) line 206, near
"logcroak "can't create $file: $!""
(Do you need to predeclare logcroak?)
Precompiler: CORE::require failed $@ = 'syntax error at
..\..\lib\Storable.pm (autosplit into
..\..\lib\auto\Storable\_store.al) line 192, near "logcroak "not a
reference""
syntax error at ..\..\lib\Storable.pm (autosplit into
..\..\lib\auto\Storable\_store.al) line 196, near "logcroak "can't
write into $file: $!""
syntax error at ..\..\lib\Storable.pm (autosplit into
..\..\lib\auto\Storable\_store.al) line 198, near "logcarp
"Storable::lock_store: fcntl/flock emulation broken on $^O""
syntax error at ..\..\lib\Storable.pm (autosplit into
..\..\lib\auto\Storable\_store.al) line 202, near "logcroak "can't get
exclusive lock on $file: $!""
syntax error at ..\..\lib\Storable.pm (autosplit into
..\..\lib\auto\Storable\_store.al) line 206, near "logcroak "can't
create $file: $!""
Compilation failed in require at D:/Perl/lib/AutoLoader.pm line 92.
' result = ''
Precompiler: Execute Error:
Filename:[D:\Skylights7.x\cgi-bin\skylights.cgi]
Package:[PerlEx::Precompiler::d_::skylights7_x::cgi2dbin::skylights_cgi]
Params[]
syntax errorsyntax error at ..\..\lib\Storable.pm (autosplit into
..\..\lib\auto\Storable\_store.al) line 196, near "logcroak "can't
write into $file: $!""
syntax error at ..\..\lib\Storable.pm (autosplit into
..\..\lib\auto\Storable\_store.al) line 198, near "logcarp
"Storable::lock_store: fcntl/flock emulation broken on $^O""
syntax error at ..\..\lib\Storable.pm (autosplit into
..\..\lib\auto\Storable\_store.al) line 202, near "logcroak "can't get
exclusive lock on $file: $!""
syntax error at ..\..\lib\Storable.pm (autosplit into
..\..\lib\auto\Storable\_store.al) line 206, near "logcroak "can't
create $file: $!""
Compilation failed in require at D:/Perl/lib/AutoLoader.pm line 92.
at ..\..\lib\Storable.pm (autosplit into
..\..\lib\auto\Storable\lock_store.al) line 175
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?
Dave Totten
Navitaire, Inc.
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs