Skip Menu |

This queue is for tickets about the perl-ldap CPAN distribution.

Report information
The Basics
Id: 79456
Status: resolved
Priority: 0/
Queue: perl-ldap

People
Owner: Nobody in particular
Requestors: me [...] eboxr.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.45
Fixed in: (no value)



Subject: Net::LDAP compilation problem due to done alias
The last version of Net::LDAP cannot be installed due to tests failure 13/17 fails when importing Net::LDAP ( tested with perl 5.8.8 to 5.14.2 ) t/04refloop.t ..... Can't call method "message" on an undefined value at /Users/me/workspace/Net-LDAP/blib/lib/Net/LDAP.pm line 329, <DATA> line 558. Compilation failed in require at t/04refloop.t line 3, <DATA> line 558. BEGIN failed--compilation aborted at t/04refloop.t line 3, <DATA> line 558. The error comes from the done alias definition. Here is a simple patch that solve this problem diff --git lib/Net/LDAP.pm lib/Net/LDAP.pm index b3d0fe7..06d1c5d 100644 --- lib/Net/LDAP.pm +++ lib/Net/LDAP.pm @@ -341,7 +341,7 @@ sub unbind { } # convenience alias -*done = &unbind; +*done = \&unbind; sub ldapbind { require Carp;
Hi, On Wed Sep 05 12:20:48 2012, atoomic wrote: Show quoted text
> The last version of Net::LDAP cannot be installed due to tests failure > 13/17 fails when > importing Net::LDAP ( tested with perl 5.8.8 to 5.14.2 )
... Show quoted text
> # convenience alias > -*done = &unbind; > +*done = \&unbind;
... Thanks for the info & the patch. perl-ldap 0.46 has already been uploaded to CPAN [using a different patch ;-] It should show up on the mirrors within the next hours. I hope it it OK for you if I close the bug. Peter
problem solved by 0.46