http://bugzilla.spamassassin.org/show_bug.cgi?id=3101

           Summary: Makefile problem on Win32 (with nmake)
           Product: Spamassassin
           Version: 2.63
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Building & Packaging
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to