Package: collectd-core
Version: 5.5.1-2
Severity: normal

Hi!

The Collectd.pm perl module emits perl warnings, which makes checking
depending perl modules difficult to check for cleanliness:

  ,--- Test.pm ---
  use strict;
  use warnings;
  use Collectd;
  1;
  `---

  ,---
  $ perl -cw Test.pm
  Bareword "LOG_ERR" not allowed while "strict subs" in use at 
/usr/share/perl5/Collectd.pm line 165.
  Bareword "TYPE_CONFIG" not allowed while "strict subs" in use at 
/usr/share/perl5/Collectd.pm line 119.
  Bareword "TYPE_INIT" not allowed while "strict subs" in use at 
/usr/share/perl5/Collectd.pm line 119.
  Bareword "TYPE_READ" not allowed while "strict subs" in use at 
/usr/share/perl5/Collectd.pm line 119.
  Bareword "TYPE_WRITE" not allowed while "strict subs" in use at 
/usr/share/perl5/Collectd.pm line 119.
  Bareword "TYPE_SHUTDOWN" not allowed while "strict subs" in use at 
/usr/share/perl5/Collectd.pm line 119.
  Bareword "TYPE_LOG" not allowed while "strict subs" in use at 
/usr/share/perl5/Collectd.pm line 119.
  Bareword "TYPE_NOTIF" not allowed while "strict subs" in use at 
/usr/share/perl5/Collectd.pm line 119.
  Bareword "TYPE_FLUSH" not allowed while "strict subs" in use at 
/usr/share/perl5/Collectd.pm line 119.
  Bareword "FC_MATCH" not allowed while "strict subs" in use at 
/usr/share/perl5/Collectd.pm line 130.
  Bareword "FC_TARGET" not allowed while "strict subs" in use at 
/usr/share/perl5/Collectd.pm line 130.
  Bareword "FC_MATCH" not allowed while "strict subs" in use at 
/usr/share/perl5/Collectd.pm line 135.
  Bareword "FC_TARGET" not allowed while "strict subs" in use at 
/usr/share/perl5/Collectd.pm line 135.
  Bareword "FC_CB_EXEC" not allowed while "strict subs" in use at 
/usr/share/perl5/Collectd.pm line 140.
  Bareword "FC_CB_CREATE" not allowed while "strict subs" in use at 
/usr/share/perl5/Collectd.pm line 140.
  Bareword "FC_CB_DESTROY" not allowed while "strict subs" in use at 
/usr/share/perl5/Collectd.pm line 140.
  Compilation failed in require at Test.pm line 3.
  BEGIN failed--compilation aborted at Test.pm line 3.
  `---

Thanks,
Guillem

Reply via email to