Marc Tardif wrote:
[...]
The problem is that if I uncomment the require line in the handler, I
get the following error message in /tmp/mod_perl.error.log:
Error loading Mozilla::LDAP::API: perldap_init failed
The solution might be related to the following XS code in API.xs:
BOOT:
if ( perldap_init() != 0) {
fprintf(stderr,
"Error loading Mozilla::LDAP::API: perldap_init failed\n");
exit(1);
}
So, perhaps perldap_init() is being called multiple times. Is there
something I can try in mod_perl to avoid this kind of problem? Can I
provide more information to help solve this problem?
I'd try to add some debug prints in perldap_init() function and see where
it fails (or step through with debugger).
If it was a problem at the startup and if perldap uses some static C
variables, you could have used
http://perl.apache.org/docs/2.0/user/handlers/server.html#Dealing_with_Restarts
However it looks like a runtime problem.
What if you preload Mozilla::LDAP::API at the server startup?
Are you using threads? Can you please send the complete bug report as
explained at http://perl.apache.org/bugs/?
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com