[Dovecot] Antispam plugin, compile under Solaris

Martijn de Munnik martijn at youngguns.nl
Thu Jul 10 19:02:12 EEST 2008


Hi,

I would like to use the antispam plugin with dovecot on Solaris. I'm  
mainly using blastwave packages and tried to compile the plugin  
without success so far.

I use the following .config file;

BACKEND=mailtrain
DOVECOT=/opt/csw/include/dovecot
INSTALLDIR=/opt/csw/lib/dovecot/modules/imap
USER=root
GROUP=root
DEBUG=syslog
PLUGINNAME=antispam

and I modified this line in Makefile;

CFLAGS += -fPIC -shared -DPLUGINNAME=$(PLUGINNAME)

I use the Sun Studio Compiler (cc: Sun C 5.9 SunOS_i386 Patch  
124868-04 2008/03/11) and gmake (also from blastwave). When I try to  
compile I got these errors;

[munnik at stevie]{~/software/dovecot-antispam}>/opt/csw/bin/gmake
cc -DHAVE_CONFIG_H -I/opt/csw/include/dovecot/ -I/opt/csw/include/ 
dovecot/src/ -I/opt/csw/include/dovecot/src/lib/ -I/opt/csw/include/ 
dovecot/src/lib-storage/ -I/opt/csw/include/dovecot/src/lib-mail/ -I/ 
opt/csw/include/dovecot/src/lib-imap/ -I/opt/csw/include/dovecot/src/ 
lib-dict/ -I/opt/csw/include/dovecot/src/lib-index/ -I/opt/csw/include/ 
dovecot/src/imap/ -o dovecot-version dovecot-version.c
"/opt/csw/include/dovecot/config.h", line 525: warning: macro  
redefined: _FILE_OFFSET_BITS
./dovecot-version > dovecot-version.h
cc -c  -DCONFIG_DEBUG -DDEBUG_SYSLOG -fPIC -shared - 
DPLUGINNAME=antispam -DHAVE_CONFIG_H -I/opt/csw/include/dovecot/ -I/ 
opt/csw/include/dovecot/src/ -I/opt/csw/include/dovecot/src/lib/ -I/ 
opt/csw/include/dovecot/src/lib-storage/ -I/opt/csw/include/dovecot/ 
src/lib-mail/ -I/opt/csw/include/dovecot/src/lib-imap/ -I/opt/csw/ 
include/dovecot/src/lib-dict/ -I/opt/csw/include/dovecot/src/lib- 
index/ -I/opt/csw/include/dovecot/src/imap/ -o debug.o debug.c
"antispam-plugin.h", line 4: cannot find include file: "lib.h"
"antispam-plugin.h", line 5: cannot find include file: "str.h"
"antispam-plugin.h", line 6: cannot find include file: "client.h"
"antispam-plugin.h", line 7: cannot find include file: "ostream.h"
"antispam-plugin.h", line 8: cannot find include file: "imap-search.h"
"antispam-plugin.h", line 21: warning: no explicit type given
"antispam-plugin.h", line 21: syntax error before or at:  
antispam_plugin_id
"antispam-plugin.h", line 21: warning: old-style declaration or  
incorrect type for: antispam_plugin_id
"antispam-plugin.h", line 30: syntax error before or at: pool
"antispam-plugin.h", line 30: warning: undefined or missing type for:  
pool
"antispam-plugin.h", line 39: warning: dubious tag declaration: struct  
mailbox_transaction_context
"antispam-plugin.h", line 41: warning: dubious tag declaration: struct  
mail
"antispam-plugin.h", line 42: warning: dubious tag declaration: struct  
mailbox
"antispam-plugin.h", line 44: warning: dubious tag declaration: struct  
mailbox_transaction_context
"antispam-plugin.h", line 66: warning: dubious tag declaration: struct  
mail_storage
"antispam-plugin.h", line 67: warning: dubious tag declaration: struct  
mail_storage
"antispam-plugin.h", line 68: warning: old-style declaration or  
incorrect type for: bool
"antispam-plugin.h", line 68: syntax error before or at: mailbox_is_spam
"antispam-plugin.h", line 68: warning: dubious tag declaration: struct  
mailbox
"antispam-plugin.h", line 68: warning: old-style declaration or  
incorrect type for: mailbox_is_spam
"antispam-plugin.h", line 69: warning: old-style declaration or  
incorrect type for: bool
"antispam-plugin.h", line 69: syntax error before or at:  
mailbox_is_trash
"antispam-plugin.h", line 69: warning: dubious tag declaration: struct  
mailbox
"antispam-plugin.h", line 69: warning: old-style declaration or  
incorrect type for: mailbox_is_trash
"antispam-plugin.h", line 70: warning: old-style declaration or  
incorrect type for: bool
"antispam-plugin.h", line 70: syntax error before or at:  
mailbox_is_unsure
"antispam-plugin.h", line 70: warning: dubious tag declaration: struct  
mailbox
"antispam-plugin.h", line 70: warning: old-style declaration or  
incorrect type for: mailbox_is_unsure
"antispam-plugin.h", line 72: warning: old-style declaration or  
incorrect type for: bool
"antispam-plugin.h", line 72: syntax error before or at:  
antispam_can_append_to_spam
"antispam-plugin.h", line 72: warning: old-style declaration or  
incorrect type for: antispam_can_append_to_spam
"antispam-plugin.h", line 73: warning: old-style declaration or  
incorrect type for: bool
"antispam-plugin.h", line 73: syntax error before or at: keyword_is_spam
"antispam-plugin.h", line 73: warning: old-style declaration or  
incorrect type for: keyword_is_spam
"antispam-plugin.h", line 75: warning: no explicit type given
"antispam-plugin.h", line 75: syntax error before or at:  
need_keyword_hook
"antispam-plugin.h", line 75: warning: old-style declaration or  
incorrect type for: need_keyword_hook
"antispam-plugin.h", line 76: warning: no explicit type given
"antispam-plugin.h", line 76: syntax error before or at:  
need_folder_hook
"antispam-plugin.h", line 76: warning: old-style declaration or  
incorrect type for: need_folder_hook
"antispam-plugin.h", line 116: warning: dubious tag declaration:  
struct mail
"antispam-plugin.h", line 118: warning: implicit function declaration:  
mail_get_stream
"antispam-plugin.h", line 118: warning: improper pointer/integer  
combination: op "="
"antispam-plugin.h", line 122: warning: dubious tag declaration:  
struct mail
"antispam-plugin.h", line 124: warning: implicit function declaration:  
mail_get_headers
"antispam-plugin.h", line 124: warning: improper pointer/integer  
combination: op "="
"antispam-plugin.h", line 128: syntax error before or at: pool_t
"antispam-plugin.h", line 128: warning: undefined or missing type for:  
pool_t
"antispam-plugin.h", line 130: warning: implicit function declaration:  
o_stream_create_file
"antispam-plugin.h", line 130: undefined symbol: pool
"antispam-plugin.h", line 130: undefined symbol: TRUE
"antispam-plugin.h", line 130: warning: improper pointer/integer  
combination: op "="
"debug.c", line 11: warning: implicit function declaration: t_push
"debug.c", line 13: warning: implicit function declaration: t_strconcat
"debug.c", line 13: warning: improper pointer/integer combination: op  
"="
"debug.c", line 23: warning: implicit function declaration: t_pop
cc: acomp failed for debug.c
gmake: *** [debug.o] Error 2

Martijn


More information about the dovecot mailing list