SA Bugzilla – Bug 6598
spamd --version throws errors
Last modified: 2017-11-04 04:13:43 UTC
With SSL support enabled and IO::Socket::SSL 1.43, I see errors in spamd --version such as these: May 24 13:19:44.990 [20183] error: Can't locate Socket6.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.8.6/i686-linux /usr/local/lib/perl5/site_perl/5.8.6 /usr/local/lib/perl5/5.8.6/i686-linux /usr/local/lib/perl5/5.8.6 /usr/local/lib/perl5/site_perl) at /usr/local/lib/perl5/site_perl/5.8.6/IO/Socket/SSL.pm line 73. If I install Socket6, I see this error: May 24 14:02:13.213 [27178] error: Can't locate IO/Socket/INET6.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.8.6/i686-linux /usr/local/lib/perl5/site_perl/5.8.6 /usr/local/lib/perl5/5.8.6/i686-linux /usr/local/lib/perl5/5.8.6 /usr/local/lib/perl5/site_perl) at /usr/local/lib/perl5/site_perl/5.8.6/IO/Socket/SSL.pm line 75. reverted to IO::Socket::SSL 0.96 and the error goes away. Not sure if this is a module dependency issue or a workaround. There are some ugly hacks to avoid IPv6 errors on requires that might be rearing up here.
Works with "modern" IO::Socket::SSL: ------------------------------------ $ /usr/local/bin/spamd --version SpamAssassin Server version 3.4.1 running on Perl 5.24.2 with SSL support (IO::Socket::SSL 2.051) with zlib support (Compress::Zlib 2.069001) ------------------------------------
Agreed. Can you identify what minimum version fixes the issue so we can configure the minimum version check? KAM
Looking at IO::Socket:SSL changelog, 1.76 is the minimum version but I would use at least 1.964 (released on January 2014) because from there on there is a better ssl handling.
Checking Centos, they ship with IO::Socket::SSL v1.94 so likely difficult to justify that high but let's aim for 1.76. That led to discovering an issue where the META.yml appears to be from 3.4.0. Trunk: r1814250 | kmcgrail | 2017-11-04 00:01:13 -0400 (Sat, 04 Nov 2017) | 1 line Remove META.yml file from MANIFEST. It is added with make dist automatically. Added .gitignore and build/pga dir to MANIFEST.SKIP. Removed META.yml from svn, it is created from make dist. Requiring MakeMaker v6.17 to make. Cleaned up some meta file information. Set the minimum version for IO::Socket::SSL to 1.76. & 3.4: Committed revision 1814251.