bdegan2 has asked for the wisdom of the Perl Monks concerning the following question:

We managed to upgrade Net::SMTP to 3.11 and IO::Socket::SSL to 2.052

But we are getting these warning messages out when we call either of these modules:

perl -MNet::SMTP -e 'print "$Net::SMTP::VERSION\n"' Constant subroutine IO::Socket::INET6::AF_INET6 redefined at /usr/lib/perl5/5.8.8/Exporter.pm line 65. at /usr/lib/perl5/vendor_perl/5.8.8/IO/Socket/INET6.pm line 16 Prototype mismatch: sub IO::Socket::INET6::AF_INET6 () vs none at /usr/lib/perl5/5.8.8/Exporter.pm line 65. at /usr/lib/perl5/vendor_perl/5.8.8/IO/Socket/INET6.pm line 16 Constant subroutine IO::Socket::INET6::PF_INET6 redefined at /usr/lib/perl5/5.8.8/Exporter.pm line 65. at /usr/lib/perl5/vendor_perl/5.8.8/IO/Socket/INET6.pm line 16 Prototype mismatch: sub IO::Socket::INET6::PF_INET6 () vs none at /usr/lib/perl5/5.8.8/Exporter.pm line 65. at /usr/lib/perl5/vendor_perl/5.8.8/IO/Socket/INET6.pm line 16 3.11

We did have this issue during the upgrade:

Went back through the install screens. even though I got an ok at the end, I found a MakeMaker version issue. I had to force install Make::Maker Net::SMTP is now installed,

Our server is : uname -a Linux oh01lx04.workflowone.net 2.6.18-53.1.6.el5 #1 SMP Wed Jan 16 03:56:15 EST 2008 x86_64 x86_64 x86_64 GNU/Linux

Can these warning messages be disregarded ?? thank you

Replies are listed 'Best First'.
Re: Net::SMTP upgraded but with warnings
by thanos1983 (Parson) on Nov 16, 2017 at 18:06 UTC

    Hello bdegan2,

    There is an old bug report related with your problem at Red Hat Bugzilla – Bug 437681 Constant subroutine IO::Socket::INET6::AF_INET6 redefined.

    The proposed solution is:

    There was patch from Net::DNS upstream, which resolve all mentioned is +sues for me. I push it to updates, please test and let us know. CPAN Ticket http://rt.cpan.org/Public/Bug/Display.html?id=35752

    I would not recommend to force install module(s). There is a reason that the module was failing and this was because of IO::Socket::INET6. I would recommend to update your IO::Socket::INET6 and Net::DNS module also. It should fix your problem.

    Hope this helps, BR.

    Seeking for Perl wisdom...on the process of learning...not there...yet!

      Hello again

      The IO::Socket::INET6 upgrade was successful:

      perl -MIO::Socket::INET6 -e 'print "$IO::Socket::INET6::VERSION\n"' 2.72

      And all the warning messages that we had previously received using Net::SMTP have stopped.

      Everything is working.

      Thank you for all your assistance on this

      Thank you for your quick response

      I passed it along to the admin and will let you know the results. Thanks again