SA Bugzilla – Bug 3101
Makefile problem on Win32 (with nmake)
Last modified: 2004-02-27 02:19:53 UTC
When trying to compile version 2.63 of SpamAssassin on Windows 2000 I got lots of errors of that kind: "Backslash found where operator expected" I identified the problem. It's in line 180 of the Makefile.PL: 'PM_FILTER' => '$(PERL) build/preprocessor -Mconditional $(FIXBYTES) -Mvars -DVERSION="$(VERSION)" -DPREFIX="$(I_PREFIX)"', On windows one have to use " to quote strings and as there are quotes in this string one has to escape them like this: 'PM_FILTER' => '$(PERL) build/preprocessor -Mconditional $(FIXBYTES) -Mvars -DVERSION=\"$(VERSION)\" -DPREFIX=\"$(I_PREFIX)\"', With this modification to the Makefile.PL I was able to compile SpamAssassin without problems on Windows 2000. Of course this modification would probably cause problems on Unix machines and I know Windows is not the primary OS for SpamAssassin. But maybe there is a way to accomodate for both kind of OS. Regards, Olivier Boudry.
bug #2862 is fixed in current head. It will not be backported to 2.63. Just changing the makefile to allow it to build is not enough. *** This bug has been marked as a duplicate of 2862 ***