Bug#411903: Debian MRTG missing required libraries for logging

Adam Majer adamm at zombino.com
Thu Aug 7 17:19:48 UTC 2008

I'm cc'ing perl maintainers list. Maybe they'll have an idea why this
bug even appears.

The lines in question that cause the below error are,

if (eval {require Socket6;} &&
    eval {require IO::Socket::INET6; IO::Socket::INET6->VERSION("1.26");}) {

Simon A. Boggis wrote:
> Hi,
> I've also just stumbled across this problem with mrtg (2.14.7-2) on my
> etch system.
> 2008-08-07 15:29:10 -- Can't locate IO/Socket/INET6.pm in @INC (@INC
> contains: /usr/bin/../lib/mrtg2 /usr/bin /etc/perl
> /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5
> /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
> /usr/local/lib/site_perl .) at line 138.

This is definitely something to do with Perl in Etch. You should never
get this error and I cannot reproduce this error in Etch or current

The error is from eval statements inside the if(...) that checks IF you
have those IPv6 packages installed. If you do not, it sets a flag that
you do not and does not use them later in the module.

The trigger is in libsnmp-session-perl, not in mrtg, but then I don't
know why you would get it. The script I posted was directly from this
file and I wanted to figure out if there is something weird about the
way perl runs on your system, but it apparently didn't cause the error
like the libsnmp-session-perl.

I'm stumped. We may need a perl expert to resolve this.

> Running the test script yielded the same results as the previous poster.
> I can confirm that mrtg does _not_ run when it produces the above error
> (nothing gets updated).
> After taking a few educated guesses, I installed
>   libio-socket-inet6-perl
> which improved things, but changed my error to one concerning missing
> rrdtool binaries, so installed:
>   rrdtool
> which changed the error to one about missing rrd libraries for perl, so
> installed:
>   librrds-perl
> after which mrtg ran without error, and is still running.

More information about the pkg-perl-maintainers mailing list