I've got a program that uses the Net::LDAP libraries.  When I run the
.pl script, it works fine.  When I run the PAR-compiled version, I get
the following errors:

> "LDAP_SUCCESS" is not exported by the Net::LDAP::Constant module at
> Net/LDAP/Message.pm line 7
> "LDAP_COMPARE_TRUE" is not exported by the Net::LDAP::Constant module
> at Net/LDAP/Message.pm line 7
> "LDAP_COMPARE_FALSE" is not exported by the Net::LDAP::Constant module
> at Net/LDAP/Message.pm line 7
> Can't continue after import errors at Net/LDAP/Message.pm line 7
> BEGIN failed--compilation aborted at Net/LDAP/Message.pm line 7,
> <DATA> line 20.
>
> Compilation failed in require at Net/LDAP.pm line 13, <DATA> line 20.
> BEGIN failed--compilation aborted at Net/LDAP.pm line 13, <DATA> line
20.
> Compilation failed in require at script/mypal.pl line 5, <DATA> line
20.
> BEGIN failed--compilation aborted at script/mypal.pl line 5, <DATA>
line 20.

(The unpacked version of the script in my temp directory also works
fine.)

I've found a couple of references to these error messages in a Google
search, saying that the same thing occurs with both PAR and perl2exe.
For the latter, there's apparently a workaround by adding
"#perl2exe_noopt Net::LDAP::Constant" to your script.  Is there a
similar workaround for pp?  Any other suggestions for troubleshooting?

(PAR is version 0.89, using Numen Inest Perl 5.8.7)


--
Mark Roedel
Web Programmer / Analyst
LeTourneau University

Reply via email to