Sisyphus wrote:
----- Original Message -----
everything worked ok. Thought it would be better if I could deploy
just an executable pogram and tried to use PAR.
Tried both PAR 0.75 (activestate repository) and PAR 0.89
(www.bribes.org repository).
I did 'pp -o send_data.exe send_data.pl' and it created send_data.exe
as requested.
Unfortunately, when I tried to run send_data.exe as next step, I got
a popup -
"send_data.exe - Entry point not defined"
'The procedure entry point PL_memory_wrap could not be located in the
dynamic link library perl58.dll'
... and also errors on cmd window:
Can't load
'C:\DOCUME~1\kasutaja\LOCALS~1\Temp\par-kasutaja\cache-1125923635\6b24f9a6.d
ll'
for module Socket: load_file:The specified procedure could
not be found at C:/aperl58/lib/DynaLoader.pm line 230.
at ../blib/lib/PAR/Heavy.pm line 107
Can you post a very stripped down script that exhibits the problem?
Fortunately(?) the test program is ... umm ... quite short. It's like
this:
#-------------- start ------
use Net::LDAP;
#-------------- end ------
And, before anybody asks - I _can_ produce also working .exe's. These
obviously
do not use Net::LDAP...
Priit
Hi,
For me (having installed the perl-ldap ppm from the uwinnipeg repository):
D:\pscrpt>perl -e "print $]"
5.008007
D:\pscrpt>perl -MNet::LDAP -e "print $Net::LDAP::VERSION"
0.29
D:\pscrpt>perl -MPAR -e "print $PAR::VERSION"
0.89
D:\pscrpt>type try.pl
use warnings;
use Net::LDAP;
print "DONE\n";
D:\pscrpt>perl try.pl
DONE
D:\pscrpt>pp -o try.exe try.pl
D:\pscrpt>try.exe
DONE
I'm now wondering if the problem is that this version of PAR was built using
a version of perl that is somewhere in the range 5.8.0 to 5.8.6 - and that
it therefore will be reliable only on versions of perl within that range. If
I'm right about this (which is *not* guaranteed), then the fix is either for
you to switch to a version of perl that's in the range 5.8.0 to 5.8.6, or
for you to start using a PAR that was built on perl 5.8.7. I guess you could
also try the PAR-0.85 ppm from bribes, or the PAR-0.88 ppm from uwinnipeg.
Whatever ... it looks to me that it's fairly certain that the bribes build
of PAR-0.89 is unreliable on perl 5.8.7.
Thank you for the hint. I re-installed PAR from uwinnipeg repository
and re-installed Net::LDAP (it still barfed about some LDAP constants
not being exported after PAR reinstallation). Now the .exe works as
expected.
So it seems one has to be extremely picky about packages when using PAR...
As I wrote earlier - I tried both Activestate version of PAR(from
default repositories)
and www.bribes.org version(as suggested in PAR FAQ).
Looks like these are somewhat 'out of sync' with latest Activestate perl?
Thank you (and all the other helpful people who replied).
Priit