Bug 6598 - spamd --version throws errors
Summary: spamd --version throws errors
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: spamc/spamd (show other bugs)
Version: SVN Trunk (Latest Devel Version)
Hardware: PC Windows 7
: P2 normal
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-24 18:23 UTC by Kevin A. McGrail
Modified: 2017-11-04 04:13 UTC (History)
2 users (show)



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin A. McGrail 2011-05-24 18:23:32 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.
Comment 1 Giovanni Bechis 2017-11-03 15:12:05 UTC
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)
------------------------------------
Comment 2 Kevin A. McGrail 2017-11-03 16:22:19 UTC
Agreed.  Can you identify what minimum version fixes the issue so we can configure the minimum version check?  KAM
Comment 3 Giovanni Bechis 2017-11-03 16:51:54 UTC
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.
Comment 4 Kevin A. McGrail 2017-11-04 04:13:43 UTC
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.