Autocreate patch and cyrus 2.3.16
by: "Vladimir V. Kamarzin" <vvk.NOSP@MMER.vvk.pp.ru>, @ Thu, 24 Dec 2009 13:55:45 +0200

Hi

I've tried to build cyrus-imapd 2.3.16 with latest autocreate patch (Dec, 22
2009: Autocreate patch (version 0.10-0) released for cyrus 2.3.16. )
and build failed with following errors:

[...]
i586-alt-linux-gcc -c -I.. -I./../lib -I./../sieve -I/usr/include/db4 -I/usr/include/krb5 -I/usr/include/et -I/usr/include -DHAVE_CONFIG_H -pipe -Wall -O2 -march=i586 -mtune=i686 -fPIC \
mboxlist.c
mboxlist.c: In function 'mboxlist_autochangesub':
mboxlist.c:3477: error: dereferencing pointer to incomplete type
mboxlist.c:3478: error: dereferencing pointer to incomplete type
mboxlist.c:3479: error: dereferencing pointer to incomplete type
mboxlist.c: In function 'mboxlist_autosubscribe_sharedfolders':
mboxlist.c:3523: error: 'IMAPOPT_AUTOSUBSCRIBE_ALL_SHAREDFOLDERS' undeclared (first use in this function)
mboxlist.c:3523: error: (Each undeclared identifier is reported only once
mboxlist.c:3523: error: for each function it appears in.)
mboxlist.c:3532: error: storage size of 'changesub_rock' isn't known
mboxlist.c:3532: warning: unused variable 'changesub_rock'
mboxlist.c:3545: error: 'IMAPOPT_AUTOSUBSCRIBESHAREDFOLDERS' undeclared (first use in this function)
mboxlist.c: In function 'mboxlist_autocreateinbox':
mboxlist.c:3610: warning: implicit declaration of function 'auth_canonuser'
mboxlist.c:3610: warning: assignment makes pointer from integer without a cast
mboxlist.c:3663: error: 'IMAPOPT_AUTOCREATE_USERS' undeclared (first use in this function)
mboxlist.c:3716: error: 'IMAPOPT_AUTOCREATEINBOXFOLDERS' undeclared (first use in this function)
mboxlist.c:3717: error: 'IMAPOPT_AUTOSUBSCRIBEINBOXFOLDERS' undeclared (first use in this function)
mboxlist.c:3800: error: 'IMAPOPT_AUTOCREATE_SIEVE_SCRIPT' undeclared (first use in this function)
mboxlist.c:3803: warning: implicit declaration of function 'autoadd_sieve'
make[1]: Leaving directory `/usr/src/RPM/BUILD/cyrus-imapd-2.3.16/imap'
make: Leaving directory `/usr/src/RPM/BUILD/cyrus-imapd-2.3.16'
make[1]: *** [mboxlist.o] Error 1
make: *** [all] Error 1

RPM build errors:

error: Bad exit status from /usr/src/tmp/rpm-tmp.72709 (%build)
Macro %ghost not found
Bad exit status from /usr/src/tmp/rpm-tmp.72709 (%build)
Command exited with non-zero status 1
31.63user 4.56system 0:36.03elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+1837107minor)pagefaults 0swaps
hsh-rebuild: rebuild of `pkg.tar' failed.

My environment: ALT Linux Sisyphus, gcc 4.4.2

--
vvk