[Dovecot] Antispam plugin, compile under osx

Bradley Giesbrecht bradley.giesbrecht at gmail.com
Mon Apr 12 00:22:05 EEST 2010


Any help with the below build failure would be greatly appreciated. If  
the information I am providing is deficient to diagnose the problem  
please tell me how to provide better information.

Trying to build dovecot-antispam plugin 1.3 from;
http://johannes.sipsolutions.net/download/dovecot-antispam/

Dovecot 1.2.11 installed and was configured with --enable-header- 
install. I also have dovecot compiled with sieve, managesieve and  
mysql support.

Dspam 3.9.0 installed.

I'm using the following .config file;
BACKEND=dspam-exec
DOVECOT=/opt/local/include/dovecot
INSTALLDIR=/opt/local/lib/dovecot/imap
USER=root
GROUP=root
PLUGINNAME=antispam

make fails with;
cc -DHAVE_CONFIG_H -I/opt/local/include/dovecot/ -I/opt/local/include/ 
dovecot/src/ -I/opt/local/include/dovecot/src/lib/ -I/opt/local/ 
include/dovecot/src/lib-storage/ -I/opt/local/include/dovecot/src/lib- 
mail/ -I/opt/local/include/dovecot/src/lib-imap/ -I/opt/local/include/ 
dovecot/src/lib-dict/ -I/opt/local/include/dovecot/src/lib-index/ -I/ 
opt/local/include/dovecot/src/imap/ -o dovecot-version dovecot-version.c
./dovecot-version > dovecot-version.h
./version.sh > antispam-version.h
cc -c  -fPIC -shared -Wall -Wextra -DPLUGINNAME=antispam - 
DHAVE_CONFIG_H -I/opt/local/include/dovecot/ -I/opt/local/include/ 
dovecot/src/ -I/opt/local/include/dovecot/src/lib/ -I/opt/local/ 
include/dovecot/src/lib-storage/ -I/opt/local/include/dovecot/src/lib- 
mail/ -I/opt/local/include/dovecot/src/lib-imap/ -I/opt/local/include/ 
dovecot/src/lib-dict/ -I/opt/local/include/dovecot/src/lib-index/ -I/ 
opt/local/include/dovecot/src/imap/ -o signature.o signature.c
cc -c  -fPIC -shared -Wall -Wextra -DPLUGINNAME=antispam - 
DHAVE_CONFIG_H -I/opt/local/include/dovecot/ -I/opt/local/include/ 
dovecot/src/ -I/opt/local/include/dovecot/src/lib/ -I/opt/local/ 
include/dovecot/src/lib-storage/ -I/opt/local/include/dovecot/src/lib- 
mail/ -I/opt/local/include/dovecot/src/lib-imap/ -I/opt/local/include/ 
dovecot/src/lib-dict/ -I/opt/local/include/dovecot/src/lib-index/ -I/ 
opt/local/include/dovecot/src/imap/ -o antispam-plugin.o antispam- 
plugin.c
cc -c  -fPIC -shared -Wall -Wextra -DPLUGINNAME=antispam - 
DHAVE_CONFIG_H -I/opt/local/include/dovecot/ -I/opt/local/include/ 
dovecot/src/ -I/opt/local/include/dovecot/src/lib/ -I/opt/local/ 
include/dovecot/src/lib-storage/ -I/opt/local/include/dovecot/src/lib- 
mail/ -I/opt/local/include/dovecot/src/lib-imap/ -I/opt/local/include/ 
dovecot/src/lib-dict/ -I/opt/local/include/dovecot/src/lib-index/ -I/ 
opt/local/include/dovecot/src/imap/ -o antispam-storage.o antispam- 
storage.c
cc -c  -fPIC -shared -Wall -Wextra -DPLUGINNAME=antispam - 
DHAVE_CONFIG_H -I/opt/local/include/dovecot/ -I/opt/local/include/ 
dovecot/src/ -I/opt/local/include/dovecot/src/lib/ -I/opt/local/ 
include/dovecot/src/lib-storage/ -I/opt/local/include/dovecot/src/lib- 
mail/ -I/opt/local/include/dovecot/src/lib-imap/ -I/opt/local/include/ 
dovecot/src/lib-dict/ -I/opt/local/include/dovecot/src/lib-index/ -I/ 
opt/local/include/dovecot/src/imap/ -o dspam-exec.o dspam-exec.c
cc  -fPIC -shared -Wall -Wextra -DPLUGINNAME=antispam -DHAVE_CONFIG_H - 
I/opt/local/include/dovecot/ -I/opt/local/include/dovecot/src/ -I/opt/ 
local/include/dovecot/src/lib/ -I/opt/local/include/dovecot/src/lib- 
storage/ -I/opt/local/include/dovecot/src/lib-mail/ -I/opt/local/ 
include/dovecot/src/lib-imap/ -I/opt/local/include/dovecot/src/lib- 
dict/ -I/opt/local/include/dovecot/src/lib-index/ -I/opt/local/include/ 
dovecot/src/imap/ signature.o antispam-plugin.o antispam-storage.o  
dspam-exec.o -o lib90_antispam_plugin.so
Undefined symbols:
   "_mailbox_get_name", referenced from:
       _mailbox_patternmatch in antispam-plugin.o
       _mailbox_is_spam in antispam-plugin.o
       _mailbox_is_trash in antispam-plugin.o
       _mailbox_is_unsure in antispam-plugin.o
   "_t_strconcat", referenced from:
       _get_setting in antispam-plugin.o
       _parse_folder_setting in antispam-plugin.o
       _call_dspam in dspam-exec.o
       _call_dspam in dspam-exec.o
       _call_dspam in dspam-exec.o
   "_main", referenced from:
       start in crt1.10.5.o
   "_mailbox_get_storage", referenced from:
       _mailbox_patternmatch in antispam-plugin.o
   "_t_push", referenced from:
       _mailbox_patternmatch in antispam-plugin.o
       _get_setting in antispam-plugin.o
       _parse_folder_setting in antispam-plugin.o
   "_i_panic", referenced from:
       _signature_list_free in signature.o
       _move_to_class in antispam-storage.o
       _antispam_copy in antispam-storage.o
       _antispam_transaction_begin in antispam-storage.o
       _antispam_mail_update_keywords in antispam-storage.o
       _antispam_mail_update_keywords in antispam-storage.o
       _antispam_mail_update_keywords in antispam-storage.o
   "_i_malloc", referenced from:
       _call_dspam in dspam-exec.o
   "_array_idx_set_i", referenced from:
       _antispam_mailbox_transaction_begin in antispam-storage.o
       _antispam_mailbox_mail_alloc in antispam-storage.o
       _antispam_mailbox_open in antispam-storage.o
       _antispam_mail_storage_created in antispam-storage.o
   "_t_buffer_get", referenced from:
       _mailbox_patternmatch in antispam-plugin.o
   "_t_pop", referenced from:
       _mailbox_patternmatch in antispam-plugin.o
       _get_setting in antispam-plugin.o
       _parse_folder_setting in antispam-plugin.o
   "_array_idx_modifiable_i", referenced from:
       _antispam_copy in antispam-storage.o
       _antispam_copy in antispam-storage.o
       _antispam_save_begin in antispam-storage.o
       _antispam_save_begin in antispam-storage.o
       _antispam_save_finish in antispam-storage.o
       _antispam_save_finish in antispam-storage.o
       _antispam_mail_update_keywords in antispam-storage.o
       _antispam_mailbox_transaction_begin in antispam-storage.o
       _antispam_mailbox_transaction_commit in antispam-storage.o
       _antispam_mailbox_transaction_commit in antispam-storage.o
       _antispam_mailbox_transaction_rollback in antispam-storage.o
       _antispam_mailbox_transaction_rollback in antispam-storage.o
       _antispam_mailbox_mail_alloc in antispam-storage.o
       _antispam_mailbox_open in antispam-storage.o
   "_pool_alloconly_create", referenced from:
       _antispam_plugin_init in antispam-plugin.o
   "_p_strsplit", referenced from:
       _parse_folder_setting in antispam-plugin.o
       _antispam_plugin_init in antispam-plugin.o
       _backend_init in dspam-exec.o
       _backend_init in dspam-exec.o
   "_mailbox_equals", referenced from:
       _match_info in antispam-plugin.o
   "_mail_free", referenced from:
       _antispam_mailbox_transaction_commit in antispam-storage.o
       _antispam_mailbox_transaction_commit in antispam-storage.o
       _antispam_mailbox_transaction_rollback in antispam-storage.o
   "_t_str_ucase", referenced from:
       _get_setting in antispam-plugin.o
   "_default_pool", referenced from:
       _default_pool$non_lazy_ptr in signature.o
       _default_pool$non_lazy_ptr in antispam-storage.o
       _default_pool$non_lazy_ptr in dspam-exec.o
   "_mail_module_register", referenced from:
       _antispam_mail_module in antispam-storage.o
   "_mail_storage_set_error", referenced from:
       _signature_extract_to_list in signature.o
       _signature_extract in signature.o
       _antispam_copy in antispam-storage.o
       _antispam_save_finish in antispam-storage.o
       _antispam_save_finish in antispam-storage.o
       _backend_commit in dspam-exec.o
   "_str_array_length", referenced from:
       _backend_init in dspam-exec.o
       _backend_init in dspam-exec.o
   "_mail_index_get_keywords", referenced from:
       _antispam_mail_update_keywords in antispam-storage.o
   "_mail_storage_module_register", referenced from:
       _antispam_storage_module in antispam-storage.o
   "_mail_get_headers", referenced from:
       _get_mail_headers in signature.o
       _get_mail_headers in dspam-exec.o
   "_hook_mail_storage_created", referenced from:
       _hook_mail_storage_created$non_lazy_ptr in antispam-plugin.o
   "_i_strdup", referenced from:
       _signature_extract_to_list in signature.o
   "_mail_alloc", referenced from:
       _antispam_copy in antispam-storage.o
       _antispam_save_begin in antispam-storage.o
ld: symbol(s) not found


Thank you for your consideration,
Bradley Giesbrecht


More information about the dovecot mailing list