[Dovecot] Dovceot 1.0.8 compile error after rewrite patch
Lars Johansen
lars at larsjohansen.org
Mon Dec 10 14:37:42 EET 2007
Added the rewrite patch for 1.0.8 without any problems, but when I tried
building with: configure --prefix=/usr/local/dovecot, make gives this
output:
gcc -shared .libs/mail-log-plugin.o -Wl,-soname
-Wl,lib20_mail_log_plugin.so -o .libs/lib20_mail_log_plugin.so
ar cru .libs/lib20_mail_log_plugin.a mail-log-plugin.o
ranlib .libs/lib20_mail_log_plugin.a
creating lib20_mail_log_plugin.la
(cd .libs && rm -f lib20_mail_log_plugin.la && ln
-s ../lib20_mail_log_plugin.la lib20_mail_log_plugin.la)
make[4]: Leaving directory
`/usr/local/src/dovecot-1.0.8/src/plugins/mail-log'
Making all in trash
make[4]: Entering directory
`/usr/local/src/dovecot-1.0.8/src/plugins/trash'
if /bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I. -I. -I../../.. -I../../../src/lib -I../../../src/lib-mail
-I../../../src/lib-storage -I../../../src/plugins/quota -std=gnu99 -g
-O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith
-Wchar-subscripts -Wformat=2 -Wbad-function-cast -MT trash-plugin.lo
-MD -MP -MF ".deps/trash-plugin.Tpo" -c -o trash-plugin.lo
trash-plugin.c; \
then mv -f ".deps/trash-plugin.Tpo" ".deps/trash-plugin.Plo";
else rm -f ".deps/trash-plugin.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../src/lib
-I../../../src/lib-mail -I../../../src/lib-storage
-I../../../src/plugins/quota -std=gnu99 -g -O2 -Wall -W
-Wmissing-prototypes -Wmissing-declarations -Wpointer-arith
-Wchar-subscripts -Wformat=2 -Wbad-function-cast -MT trash-plugin.lo -MD
-MP -MF .deps/trash-plugin.Tpo -c trash-plugin.c -fPIC -DPIC
-o .libs/trash-plugin.o
trash-plugin.c:110: warning: 'struct quota_root_transaction_context'
declared inside parameter list
trash-plugin.c:110: warning: its scope is only this definition or
declaration, which is probably not what you want
trash-plugin.c: In function 'trash_try_clean_mails':
trash-plugin.c:134: error: dereferencing pointer to incomplete type
trash-plugin.c:205: error: dereferencing pointer to incomplete type
trash-plugin.c:205: error: dereferencing pointer to incomplete type
trash-plugin.c:206: error: dereferencing pointer to incomplete type
trash-plugin.c:207: error: dereferencing pointer to incomplete type
trash-plugin.c:207: error: dereferencing pointer to incomplete type
trash-plugin.c:208: error: dereferencing pointer to incomplete type
trash-plugin.c: At top level:
trash-plugin.c:214: warning: 'struct quota_root_transaction_context'
declared inside parameter list
trash-plugin.c: In function 'trash_quota_root_try_alloc':
trash-plugin.c:216: error: dereferencing pointer to incomplete type
trash-plugin.c:220: error: 'struct quota_backend_vfuncs' has no member
named 'try_alloc'
trash-plugin.c:238: warning: passing argument 1 of
'trash_try_clean_mails' from incompatible pointer type
trash-plugin.c: At top level:
trash-plugin.c:248: warning: 'struct quota_root_transaction_context'
declared inside parameter list
trash-plugin.c: In function 'trash_quota_root_try_alloc_bytes':
trash-plugin.c:250: error: dereferencing pointer to incomplete type
trash-plugin.c:254: error: 'struct quota_backend_vfuncs' has no member
named 'try_alloc_bytes'
trash-plugin.c:262: warning: passing argument 1 of
'trash_try_clean_mails' from incompatible pointer type
trash-plugin.c: At top level:
trash-plugin.c:272: warning: 'struct quota_root_transaction_context'
declared inside parameter list
trash-plugin.c: In function 'trash_quota_root_test_alloc_bytes':
trash-plugin.c:274: error: dereferencing pointer to incomplete type
trash-plugin.c:278: error: 'struct quota_backend_vfuncs' has no member
named 'test_alloc_bytes'
trash-plugin.c:286: warning: passing argument 1 of
'trash_try_clean_mails' from incompatible pointer type
trash-plugin.c: In function 'trash_quota_root_created':
trash-plugin.c:313: error: 'struct quota_root' has no member named 'v'
trash-plugin.c:314: error: 'struct quota_root' has no member named 'v'
trash-plugin.c:315: error: 'struct quota_root' has no member named 'v'
trash-plugin.c:316: error: 'struct quota_root' has no member named 'v'
trash-plugin.c:317: error: 'struct quota_root' has no member named 'v'
make[4]: *** [trash-plugin.lo] Error 1
make[4]: Leaving directory
`/usr/local/src/dovecot-1.0.8/src/plugins/trash'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/dovecot-1.0.8/src/plugins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/dovecot-1.0.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/dovecot-1.0.8'
make: *** [all] Error 2
More information about the dovecot
mailing list