Re: Spamassassin and openssl
[email protected] (Michael Papet)
| Newsgroups | perl.win32.vanilla |
|---|---|
| Message-ID | <[email protected]> |
--- On Sat, 4/10/10, kmx <[email protected]> wrote: > From: kmx <[email protected]> > Subject: Re: Spamassassin and openssl > To: [email protected] > Date: Saturday, April 10, 2010, 12:19 AM > Hi Michael, > > you need to patch Makefile.PL (for both > Crypt-OpenSSL-Random and > Crypt-OpenSSL-RSA) in this way: > > - 'LIBS' => ['-lssl -lcrypto'], > + 'LIBS' => ($^O eq 'MSWin32') ? > ['-lssl32 -leay32'] : ['-lssl > -lcrypto'], > > With this patch both modules work nice on my MS Windows box > with Januar > 2010 Strawberry Perl. Works for me too. Thank you! > > I have created the following bug reports: > 1/ http://rt.cpan.org/Public/Bug/Display.html?id=56454 > 2/ http://rt.cpan.org/Public/Bug/Display.html?id=56455 > feel free to post some supportive comments to those RTs > > -- > kmx > I've opened a bug report for the SpamAssassin (SA) TextCat plugin. TextCat breaks SA because it cannot find the language file. The file exists in C:\strawberry\perl\site\share\spamassassin\. I even copied it into another path C:\strawberry\perl\site\usr\share\spamassassin\. Still it can neither find the file nor load the contents of the file on Windows 2003. The dirty hack I used to get it working: Find the code starting with "if (! @nm)" and replace it with: if (! @nm) { warn "textcat: no language models loaded\n"; if ($^O eq 'MSWin32') { $ngram->{"language"} = "en"; push (@nm, $ngram); warn "forced load of en because TextCat doesn't work on Win32 \n"; } } else { dbg("textcat: loaded " . scalar(@nm) . " language models"); } I am hacking up spamd to work on win32 too. FYI spamd uses Unix signals for threading so it won't build or even come close to working from CPAN. I'm porting the signals to Perl's semaphores. It will be a little while.