WebminCore INET6 perl error

Webmin: 1.791
Virtualmin: 5.01.gpl

Most of the webmin perl jobs (like monitor.pl, awstats.pl, etc.) return following errors in console:

Constant subroutine WebminCore::AF_INET6 redefined at /usr/lib/perl5/5.8.8/Exporter.pm line 65.
at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Socket6.pm line 2.
Prototype mismatch: sub WebminCore::AF_INET6 () vs none at /usr/lib/perl5/5.8.8/Exporter.pm line 65.
at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Socket6.pm line 2.
Constant subroutine WebminCore::PF_INET6 redefined at /usr/lib/perl5/5.8.8/Exporter.pm line 65.
at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Socket6.pm line 2.
Prototype mismatch: sub WebminCore::PF_INET6 () vs none at /usr/lib/perl5/5.8.8/Exporter.pm line 65.
at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Socket6.pm line 2.

Not sure if it makes those jobs broken or not, but this creates some huge email traffic in order to notify user. Especially from /etc/webmin/status/monitor.pl which runs each 5 minutes.
Please advise.

Thank you.

Status: 
Closed (fixed)

Comments

It looks like those errors are coming from inside the Socket6 perl module - so I'm not sure if Webmin can do anything to fix them.

Which perl version and/or linux distro version are you running there?

It's pretty old box with CentOS 5.11 32bit. Perl version is v5.8.8 built for i386-linux-thread-multi

As far as I understand, the error appeared after webmin was upgraded in Feb 2016

That's odd, because we didn't change anything related to the Socket6 module in this release.

Did you change anything related to it in your previous release? I wasn't upgrading for a while. And upgraded at least twice during past month or so.
So can you replicate it with perl 5.8.8?

I had a look at the code that uses AF_INET6 in Webmin, and it hasn't changed since 2010!

I see. Ok, I spoke to a few perl developers and they're saying that Socket6 itself was a temporary workaround. So a one should use Socket instead, since it fully supports v6 now.

The issue is still present in Virtualmin 5.03/Webmin 1.801. The scripts like /etc/webmin/virtualmin-awstats/awstats.pl, /etc/webmin/webalizer/webalizer.pl and some others - yield those INET6 errors. Did you try to fix that? Thanks.

The next Webmin release will change all of these from Socket6::PF_INET6() to just PF_INET6() , which should solve this issue.

Status: Active ยป Fixed