When using MHonArc (v2.0.0 beta 3), downloaded and installed without making
Undefined subroutine &main::expired_time called at
/usr/groups/nic/bin/MHonArc2/mhonarc line 1234, <FILE> chunk 34
That subroutine is defined in mhutil.pl, and I noticed that when I run the
mhonarc executable, that file does NOT show up among those in the list of
files shown after "Requiring ...."
The "Requiring ..." output only shows content filters and charset
filters. Support libraries are not echoed.
Is this a known bug in MHonArc, or ... ? TIA for any tips,
Nope, and you are the first. MhonArc will abort if it cannot
require support libraries. Here is the line for reading mhutil.pl:
require 'mhutil.pl' || die("ERROR: Unable to require mhutil.pl\n");
And this statement is executed before "Requiring ..." stuff.
o mhutil.pl exists in the installed library location.
o Look at the installed mhonarc source and see if their
is an unshift(@INC, ...) statement at the top of
the file. The path should point to location of the
installed library location.
o See if mhutil.pl is intact. Ie. The mhutil.pl was not
corrupted (check the install location).
o See if there is another file called mhutil.pl that may
conflict with mhonarc's mhutil.pl. Ie. Is there a Perl
library on your system with the same name.
o Add a print statement in mhutil.pl to verify that
Perl is requiring the right file. For example:
print STDERR "Reading MHonArc's mhutil.pl\n";
Put at the top of mhutil.pl.
If the problem was inherent in mhonarc, all users of v2.0b3 would
have reported the problem (and I should have seen somthing before
I distributed it). Try the above and see if something comes up.