Adam Majer wrote:
Ok, I've looked at that code and you should NOT get that error message.
The issue is NOT even triggered by mrtg, it is triggered by the
SNMP_Session.pm code, and it should not be. It is essentially the following,

if (eval {require Socket6;} &&
    eval {require IO::Socket::INET6; IO::Socket::INET6->VERSION("1.26");}) {
        printf( "YOU HAVE IPV6\n" );
}
else {
        printf( "NO IPV6\n" );
}


I'm curious, does mrtg still run in spite of these errors? It seems you
are getting errors from within the eval{} and you should not be. What
the SNMP_Session is doing is trying to evaluate IF you have the Socket6
AND the IO::Socket::INET6 available.

Anyway, please save the above snippet to some file, like /tmp/test.pl
and then run it as `perl /tmp/test.pl`. Do you get an error from that?

- Adam


With the package "libio-socket-inet6-perl":
##
$ perl test.pl
YOU HAVE IPV6
##

And without the package:
##
$ perl test.pl
NO IPV6
##

Regards,
 Sumit




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to