smbldap-tools 0.8.7 FreeBSD 5.4-RC2 Samba 3.1.14 Perl 5.8.2 When I try to use any of the tools, the following message appears. Any hints on how to fix it are welcome. Bareword "print_banner" not allowed while "strict subs" in use at /usr/local/sbin/smbldap-useradd line 43. Execution of /usr/local/sbin/smbldap-useradd aborted due to compilation errors. Per olof
<quote who="Per olof Ljungmark">> smbldap-tools 0.8.7 > FreeBSD 5.4-RC2 > Samba 3.1.14 > Perl 5.8.2 > > When I try to use any of the tools, the following message appears. Any > hints on how to fix it are welcome. > > Bareword "print_banner" not allowed while "strict subs" in use at > /usr/local/sbin/smbldap-useradd line 43. > Execution of /usr/local/sbin/smbldap-useradd aborted due to compilation > errors. >They've probably missed a $ off of print_banner. Have you looked at line 43? Gavin. -- Kind Regards, Gavin Henry. Managing Director. T +44 (0) 1224 279484 M +44 (0) 7930 323266 F +44 (0) 1224 742001 E ghenry@suretecsystems.com Open Source. Open Solutions(tm). http://www.suretecsystems.com/
Le Wed, Apr 27, 2005 at 01:05:05PM +0200, Per olof Ljungmark a ecrit:> Bareword "print_banner" not allowed while "strict subs" in use at > /usr/local/sbin/smbldap-useradd line 43. > Execution of /usr/local/sbin/smbldap-useradd aborted due to compilation > errors.at the beginning of smbldap_tools.pm, do you have the print_banner function declared ? Like this : @EXPORT = qw( get_user_dn get_group_dn ... print_banner %config ); -- Jerome