sidney at sidney
Jan 4, 2004, 1:58 PM
Post #25 of 35
Malte S. Stretz wrote:
Re: [Bug 2862] Port of spamc to Win32 environment
[In reply to]
> I guess only spamd needs Net::DNS, right? :) And is Net::DNS really required
> by the Win version or is it only optional (like under Unix) but *if* it's
> installed, at least v0.44 is needed?
Net::DNS is only used for perl network stuff. In Win32 it is only needed
if you are going to run spamassassin with network tests. spamd doesn't
run in Win32, and spamc isn't written in perl.
Net::DNS is nice to have if you are building Spamassassin under Win32,
even if all you want to get out of it is the spamc.exe executable,
because then it is possible to get a clean 'nmake test'. I can see it
being typical, though, for someone to download just the binary
executable spamc.exe for their Win32 system, have it talk to a spamd
running under Cygwin or on a different machine altogether, and not even
need to install perl.
Now that I think about it, it might be worth documenting how to build
spamc without needing perl... In addition to the compiler environment
requirements that are already documented, it just requires renaming
either the win32.config file to config.h, and then using nmake -f on
either win32ssl.mak or win32nossl.mak. But the tests still require perl.
> And a question about the Makefile(s): Doesn't configure work under cygwin?
> If not, what doesn't work?
Yes, configure works under cygwin. I don't think I had to change
anything in spamc for Cygwin, only for Win32. The only problems I had
with Cygwin were getting spamd to work because of Net::DNS bugs.