delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/20/08:44:03

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 20 Sep 2002 08:48:05 -0400
From: Jason Tishler <jason AT tishler DOT net>
Subject: Re: Building SpamAssassin for Cygwin
In-reply-to: <02Sep19.100358-0700_pdt.290499-31649+137@lmg.ahnet.net>
To: cygwin AT cygwin DOT com
Mail-followup-to: cygwin AT cygwin DOT com
Message-id: <20020920124805.GD1852@tishler.net>
MIME-version: 1.0
User-Agent: Mutt/1.4i
References: <02Sep19.100358-0700_pdt.290499-31649+137 AT lmg DOT ahnet DOT net>

--Boundary_(ID_eLSlv6JxYIchQt79lkKwxQ)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline

On Thu, Sep 19, 2002 at 06:59:06PM +0200, news AT garydjones DOT mailshell DOT com wrote:
> make -f binaries.mk spamd/spamc
> make[1]: Entering directory /home/eye/develop/Mail-SpamAssassin-2.41'
> gcc -g -O2 spamd/spamc.c spamd/libspamc.c spamd/utils.c \
>         -o spamd/spamc  
> make[1]: Leaving directory /home/eye/develop/Mail-SpamAssassin-2.41'
> cp spamd/spamc blib/script/spamc
> /usr/bin/perl -I/usr/lib/perl5/5.6.1/cygwin-multi -I/usr/lib/perl5/5.6.1
> -MExtUtils::MakeMaker -e "MY->fixin(shift)" blib/script/spamc
> Can't process 'blib/script/spamc': No such file or directory at -e line 1
> make: *** [blib/script/spamc] Error 255

I got the exact same error when building 2.31.

> What I think is happening is that the .exe suffix is being added to the
> binary (I'm assuming this is one of the executable files), but something
> then can't find the executable file as a result. The /usr/bin/perl line,
> correct? Can anyone who has got it working give me a few clues please?

I "fixed" problem with the (first hunk of the) first patch.  Since I'm
not a Perl person, I haven't figured out the right way to fix the
problem -- for example, patching Makefile.PL or whatever generates the
offending line in Makefile.  Does anyone know the right way to do this?

BTW, I needed the second patch to stop spamassassin from thinking that
Perl was running under Windows instead of Cygwin.

Jason

--Boundary_(ID_eLSlv6JxYIchQt79lkKwxQ)
Content-type: text/plain; charset=us-ascii; NAME=Makefile.diff
Content-transfer-encoding: 7BIT
Content-disposition: attachment; filename=Makefile.diff

--- Makefile.orig	2002-08-29 08:39:39.000000000 -0400
+++ Makefile	2002-08-29 08:51:21.000000000 -0400
@@ -524,8 +524,8 @@ realclean ::
 $(INST_SCRIPT)/spamc: spamd/spamc Makefile $(INST_SCRIPT)/.exists
 	@rm -f $(INST_SCRIPT)/spamc
 	cp spamd/spamc $(INST_SCRIPT)/spamc
-	$(FIXIN) $(INST_SCRIPT)/spamc
-	-@$(CHMOD) $(PERM_RWX) $(INST_SCRIPT)/spamc
+	$(FIXIN) $(INST_SCRIPT)/spamc$(EXE_EXT)
+	-@$(CHMOD) $(PERM_RWX) $(INST_SCRIPT)/spamc$(EXE_EXT)
 
 $(INST_SCRIPT)/spamd: spamd/spamd Makefile $(INST_SCRIPT)/.exists
 	@rm -f $(INST_SCRIPT)/spamd
@@ -850,7 +850,7 @@ CFLIBS		= -lgdbm -lcrypt
 CFLDFLAGS	=  -s -L/usr/local/lib
 
 DEF_RULES_DIR	= $(PREFIX)/share/spamassassin
-LOCAL_RULES_DIR	= /etc/mail/spamassassin
+LOCAL_RULES_DIR	= $(SYSCONFDIR)/mail/spamassassin
 
 
 

--Boundary_(ID_eLSlv6JxYIchQt79lkKwxQ)
Content-type: text/plain; charset=us-ascii; NAME=spamassassin.raw.diff
Content-transfer-encoding: 7BIT
Content-disposition: attachment; filename=spamassassin.raw.diff

--- spamassassin.raw.orig	2002-08-29 10:53:34.000000000 -0400
+++ spamassassin.raw	2002-08-29 10:53:45.000000000 -0400
@@ -19,7 +19,7 @@ BEGIN {
 
   if ($^O eq 'MacOS') {
     $slash = ':'; $dirtrailer = ':';
-  } elsif ($^O =~ /(win|os2)/) {
+  } elsif ($^O =~ /(win|os2)/ && $^O ne 'cygwin') {
     $slash = '\\';
   }
 


--Boundary_(ID_eLSlv6JxYIchQt79lkKwxQ)
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
--Boundary_(ID_eLSlv6JxYIchQt79lkKwxQ)--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019