Package: libnet-server-perl
Hello.
I am trying to install postfwd on a debian trixie mail server and got
an error/warning message about Net/Server/Multiplex.pm.
# postfwd --version
Attempt to call undefined import method with arguments ("1.05") via package
"IO::Multiplex" (Perhaps you forgot to load the package?) at
/usr/share/perl5/Net/Server/Multiplex.pm line 26.
postfwd2 1.35 (Net::DNS 1.50, Net::Server 2.014, Sys::Syslog 0.36, Time::HiRes
1.9777, Storable: 3.32, Perl 5.040001 on linux)
Line 26 of /usr/share/perl5/Net/Server/Multiplex.pm says
# nl -ba /usr/share/perl5/Net/Server/Multiplex.pm | grep -w "26" -C1
25 use Carp qw(confess);
26 eval { require IO::Multiplex; import IO::Multiplex 1.05; };
27 $@ && warn "Module IO::Multiplex is required for Multiplex.";
# nl -ba /usr/share/perl5/IO/Multiplex.pm | grep VERSION -C1
5
6 our $VERSION = '1.16';
7
I have an older mail server running debian bullseye. Line 26 of
/usr/share/perl5/Net/Server/Multiplex.pm and Line 6 of
/usr/share/perl5/IO/Multiplex.pm are identical in bullseye and in
trixie, but the error/warning with postfwd comes only in trixie, not in
bullseye.
A fix suggested by chatgpt and gemini is to replace line 26 with
eval { require IO::Multiplex; IO::Multiplex->VERSION(1.05);
IO::Multiplex->import() };
(I am not an expert on perl to say whether this is a correct solution.)
Thank you.
With regards,
Manoj.