If I run the following code:
use Prima;
use Compress::Zlib;
then no problem. However, if I run
use Compress::Zlib;
use Prima;
then I get an error message - Can't locate ordinal 10 in compress.zlib.
This is on Win2k (haven't tested it on any other machine yet - I also have
RedHat8 machine and an old Win95 machine I can try this on.
It looks like a Windows error message (i.e., comes up in an Windows message
box) rather than a Perl error message.
I've done some tracing with the debugger and it happens in
DynaLoader::dl_load_file while it's loading Prima. Why at this point, when
Compress::Zlib has already been loaded, is it looking for something in
zlib.dll?
Anyway, the surface fix is really easy - use Prima first. But I'm trying to
use PAR to make an executable, and PAR loads Compress::Zlib automatically,
before it even reads your script. (It has to, since it creates the
executable by appending compressed files onto the end of a pre-existing
executable - read the PAR docs for more details.)
Anyway, I can't step through the execution of dl_load_file with the perl
debugger, because it's an XS sub, so someone with a C++ compiler is going to
need to check this out..
Sean
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
Received on Wed 13 Aug 2003 - 15:24:47 CEST
This archive was generated by hypermail 2.2.0 : Sat 19 Mar 2011 - 18:35:04 CET