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;