[imapfilter-devel] Cygwin Compiling

Cyrille Lefevre cyrille.lefevre-lists at laposte.net
Wed Aug 12 05:58:25 EEST 2009


Lefteris Chatzimparmpas a écrit :
> Hello,
> 
> Since it seems nobody has done that, I just want to note that I haven't tried it myself or checked if this is possible with small or bigger changes, but it's something I wanted to have a look in the past, but haven't had the time as of yet...
> 
> L.
> 
> 
> Benjamin None wrote:
>> Hello,
>> I'm trying to get imapfilters compiled on cygwin.  I've gotten it mostly
>> working, but I'm running into this error:
snip
>> Has anyone tried with cygwin?  I see there was a patch in 2004, but
>> nothing since.  Any suggestions for this error?

well, it's possible under cygwin 1.5 using the following library w/o 
changes :

http://www.sra.co.jp/people/m-kasahr/getaddrinfo/index.html
=> getaddrinfo-1.6.3.tar.gz

then add the follownig lines to socket.c

#include "../getaddrinfo/dummyin6.h"
#include "../getaddrinfo/getaddrinfo.h"

between #include <sys/select.h> and #include "imapfilter.h"

and modify the following lines to Makefile

INCDIRS = -I/usr/local/include -I../getaddrinfo
BIN = imapfilter.exe
OBJ = auth.o buffer.o cert.o core.o file.o imap.o imapfilter.o list.o 
log.o \
         lua.o memory.o misc.o namespace.o pcre.o regexp.o request.o \
         response.o session.o signal.o socket.o system.o \
         ../getaddrinfo/dummyin6.o ../getaddrinfo/getaddrinfo.o

and that's all.

alternative, use cygwin2 : http://cygwin.com/setup-1.7.exe
no changes are required :-)

Cordialement,

Cyrille Lefevre
-- 
mailto:Cyrille.Lefevre-lists at laposte.net




More information about the Imapfilter-devel mailing list