Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Since upgrading from Debian Lenny to Squeeze, I've had the following problem with mrtg:

root@turtle:~# env LANG=C /usr/bin/mrtg
Constant subroutine SNMP_Session::AF_INET6 redefined at /usr/share/perl/5.10/ line 67 at /usr/share/perl5/ line 149
Prototype mismatch: sub SNMP_Session::AF_INET6 () vs none at /usr/share/perl/5.10/ line 67 at /usr/share/perl5/ line 149
Constant subroutine SNMPv1_Session::AF_INET6 redefined at /usr/share/perl/5.10/ line 67 at /usr/share/perl5/ line 608
Prototype mismatch: sub SNMPv1_Session::PF_INET6 () vs none at /usr/share/perl/5.10/ line 67 at /usr/share/perl5/ line 608

To clarify, I have mrtg 2.16.3-3, Perl 5.10.1 and libsnmp-session-perl is 1.13-1.

There seems to be a similar bug in Gentoo Linux, but I don't really understand the resolution to that and whether there's something wrong with my system.

I tried going to the Debian mrtg package page and looking at the bug reports but it only seems to list bugs for unstable (sid).

Anyone able to talk me through how to fix this?

Edit: For the record I also already have the libsocket6-perl 0.23-1 package. Earlier version of question also had reference to missing eaccelerator module - since fixed (due to having a symlink in the PHP5 cli directory to the same conf.d as used by the apache version.

share|improve this question

migrated from May 30 '11 at 18:59

This question came from our site for professional and enthusiast programmers.

up vote 0 down vote accepted

This is a bug in libsnmp-session-perl, the Debian bug report is at (it has links to other pages about it).

You could try the patch given at if the problem is actually stopping things working (if it's just producing log noise you may prefer to put up with it for the time being). The cost would be keeping your modified libsnmp-session-perl up to date in the face of any updates Debian may apply to it.

share|improve this answer
Thanks - what I did was add MAILTO='' to the particular cron file to suppress the notifications every 5 minutes. The graphs are still fine.. – William Turrell Jun 8 '11 at 16:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .