[Kolab-devel] kolab cyrus imap patch does not build
Richard Bos
radoeka at xs4all.nl
Sat Oct 22 22:01:29 CEST 2005
Hi There,
hopefully there is somebody, that sees the problem and knows a solution...
Running into the following error when building cyrus-imap with
the 3 kolab cryus patches applied on suse10:
### Making all in /usr/tmp/kolab/BUILD/cyrus-imapd-2.2.12/lib
make[1]: Entering directory `/var/tmp/kolab/BUILD/cyrus-imapd-2.2.12/lib'
gcc -c -I.. -I/usr/ssl/include -I/usr/include -I../et -DHAVE_CONFIG_H -O2 -g -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -I/usr/include/kerberosIV -I/usr/lib/sasl2/include -fPIC \
libconfig.c
In file included from libconfig.h:47,
from libconfig.c:57:
imapopts.h:181: error: array type has incomplete element type
make[1]: *** [libconfig.o] Fout 1
make[1]: Leaving directory `/var/tmp/kolab/BUILD/cyrus-imapd-2.2.12/lib'
make: *** [all] Fout 1
error: Bad exit status from /tmp/rpm-tmp.99621 (%build)
RPM build errors:
Bad exit status from /tmp/rpm-tmp.99621 (%build)
The build finishes succesfully when the following part of the kolab patch is removed:
diff -Naur cyrus-imapd-2.2.12.old/lib/imapopts.c cyrus-imapd-2.2.12/lib/imapopts.c
--- cyrus-imapd-2.2.12.old/lib/imapopts.c 2005-10-22 11:47:09.000000000 +0200
+++ cyrus-imapd-2.2.12/lib/imapopts.c 2005-10-22 11:56:56.000000000 +0200
@@ -186,8 +186,7 @@
{ IMAPOPT_USERPREFIX, "userprefix", 0, {(void *)("Other Users")}, OPT_STRING, { { NULL, IMAP_ENUM_ZERO } } },
{ IMAPOPT_UNIX_GROUP_ENABLE, "unix_group_enable", 0, {(void*)1}, OPT_SWITCH, { { NULL, IMAP_ENUM_ZERO } } },
{ IMAPOPT_UNIXHIERARCHYSEP, "unixhierarchysep", 0, {(void*)0}, OPT_SWITCH, { { NULL, IMAP_ENUM_ZERO } } },
- { IMAPOPT_VIRTDOMAINS, "virtdomains", 0, {(void *)(IMAP_ENUM_VIRTDOMAINS_OFF)}, OPT_ENUM, { { "off" , IMAP_ENUM_VIRTDOMAINS_OFF }, { "userid" , IMAP_ENUM_VIRTDOMAINS_USERID }, { "on" , IMAP_ENUM_VIRTDOMAINS_ON }, { NULL, IMAP_ENUM_ZERO } } },
-
+{ IMAPOPT_VIRTDOMAINS, "virtdomains", 0, {(void *)(IMAP_ENUM_VIRTDOMAINS_OFF)}, OPT_ENUM, { { "off" , IMAP_ENUM_VIRTDOMAINS_OFF }, { "userid" , IMAP_ENUM_VIRTDOMAINS_USERID }, { "ldap" , IMAP_ENUM_VIRTDOMAINS_LDAP }, { "on" , IMAP_ENUM_VIRTDOMAINS_ON }, { NULL, IMAP_ENUM_ZERO } } },
{ IMAPOPT_LAST, NULL, 0, { NULL }, OPT_NOTOPT, { { NULL, IMAP_ENUM_ZERO } } }
};
The patch above adds { "ldap" , IMAP_ENUM_VIRTDOMAINS_LDAP }
In the patch file another patch is commented out. I altered the patch and
and enabled the code. This does not help :(
diff -Naur cyrus-imapd-2.2.12.old/lib/imapopts.h cyrus-imapd-2.2.12/lib/imapopts.h
--- cyrus-imapd-2.2.12.old/lib/imapopts.h 2005-10-22 11:47:09.000000000 +0200
+++ cyrus-imapd-2.2.12/lib/imapopts.h 2005-10-22 11:57:25.000000000 +0200
@@ -188,6 +188,7 @@
IMAP_ENUM_VIRTDOMAINS_ON,
IMAP_ENUM_VIRTDOMAINS_USERID,
+ IMAP_ENUM_VIRTDOMAINS_LDAP,
IMAP_ENUM_VIRTDOMAINS_OFF = 0
I have attached the file that provides the patch. As said, hopefully someone sees
what is missing....
--
Richard Bos
Without a home the journey is endless
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kolab-ldap.patch
Type: text/x-diff
Size: 5951 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/devel/attachments/20051022/32340de1/attachment.bin>
More information about the devel
mailing list