Bug 3101 - Makefile problem on Win32 (with nmake)
Summary: Makefile problem on Win32 (with nmake)
Status: RESOLVED DUPLICATE of bug 2862
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Building & Packaging (show other bugs)
Version: 2.63
Hardware: PC Windows 2000
: P5 normal
Target Milestone: 3.0.0
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-27 02:05 UTC by Olivier Boudry
Modified: 2004-02-27 02:19 UTC (History)
0 users



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 Olivier Boudry 2004-02-27 02:05:18 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.
Comment 1 Sidney Markowitz 2004-02-27 11:19:53 UTC
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 ***