Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

bugzilla jobqueue.pl is exiting with the following error:
jobqueue.pl[10731]: ESC[31mUndefined subroutine &Carp::shortmess_heavy + called at /usr/lib/perl5/5.8.8/Carp.pm line 260.ESC[0m
But there is a subroutine shortmess_heavy available in Carp/Heavy.pm. What is the problem here ? Can somebody please help to fix this ?
  • Comment on bugzilla - jobqueue.pl exits with error - Undefined subroutine &Carp::shortmess_heavy
  • Download Code

Replies are listed 'Best First'.
Re: bugzilla - jobqueue.pl exits with error - Undefined subroutine &Carp::shortmess_heavy
by afoken (Chancellor) on Jun 15, 2012 at 19:46 UTC

    "Carp.pm" ne "Carp/Heavy.pm".

    Your version of bugzilla seems to expect a different version of Carp.pm that contains shortmess_heavy(). The current one (1.25) does have this function. Do you need to upgrade Perl? Post the output of "perl -V" (uppercase V!) and "perl -MCarp -e 'print $Carp::VERSION'" (if you use Windows, use "perl -MCarp -e "print $Carp::VERSION"" instead). Also, report the bugzilla version you attempt to use.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
Re: bugzilla - jobqueue.pl exits with error - Undefined subroutine &Carp::shortmess_heavy
by Don Coyote (Hermit) on Jun 15, 2012 at 14:17 UTC

    Carp appears to export the optional method &Carp::shortmess.

    Does this need to call &Carp::Heavy::shortmess_heavy?

Re: bugzilla - jobqueue.pl exits with error - Undefined subroutine &Carp::shortmess_heavy
by Anonymous Monk on Jun 18, 2012 at 09:24 UTC
    Thanks for the reply...

    Yes, Carp latest version was not available in the system which I have installed and this problem has not happen again. Thanks a lot.

      Bugzilla's checksetup.pl should have noticed this. So you either found a bug in Bugzilla (please report it!) or you did not install Bugzilla as documented.

      Alexander

      --
      Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)