From: Graham B. <gb...@po...> - 2001-01-29 12:23:46
|
Convert::ASN is known not to work with threads as it uses a feature of perl that is known not to work when threads is enabled. However due to recent discussion on perl5-porters about how broken perls threads are and that they should be removed (if they could be) I am reluctant to spend the time to code the algorithm a different way. So all can say is, don't use a perl compiled with threads enabled. Graham. On Sat, Jan 27, 2001 at 01:44:55AM -0700, Guruprasad S wrote: > Hi, > I am running Perl5.6.0 on NT. Whenever I build with USE_MULTI uncommented and USE_ITHREAD commented, I can access the directory. But when I uncomment UCS_ITHREAD as well, my script fails by saying > > decode error at c:/perl/site/5.6.0/lib/Convert/ASN1/_decode.pm line 136. > 84 > decode error at c:/perl/site/5.6.0/lib/Convert/ASN1/_decode.pm line 136. > ...propagated at ldap1.pl line 12. > > Can any of you help me out. > > My script looks like this: > > use Net::LDAP; > $ldap = Net::LDAP->new('blr-nb7.blr.novell.com') or die "$@"; > > $mesg = $ldap->bind or die "Failed to bind\n"; > if ($mesg->code) { > print $mesg->error, $mesg->code,"\n"; > die; > } > > $mesg = $ldap->search( # perform a search > base => "o=novell", > filter => "sn=*", > ) or die "Failed to search\n"; > > if ($mesg->code) { > print $mesg->error, $mesg->code,"\n"; > die; > } > > > Thanks > Guru > > |