Cannot compile cyrus-2.2.2-BETA with Sun compiler (lib/imapopts.c)

Paul Boven p.boven at
Wed Nov 26 05:48:28 EST 2003


Build system is a Solaris 9 with SunOne aka Forte 7 compiler collection. 
Both compiler and OS patches were updated before I began this project.

While trying to build cyrus-imapd-2.2.2-BETA I run into the following 

cc -c -I.. -I/usr/local/BerkeleyDB.4.1//include  -I/usr/local/include 
-I./../et -I/usr/local/include -DHAVE_CONFIG_H -I. -I. -g \
"imapopts.c", line 35: invalid cast expression
"imapopts.c", line 35: initialization type mismatch
"imapopts.c", line 36: invalid cast expression
"imapopts.c", line 36: initialization type mismatch
"imapopts.c", line 37: invalid cast expression
"imapopts.c", line 37: initialization type mismatch
"imapopts.c", line 141: invalid cast expression
"imapopts.c", line 141: initialization type mismatch
"imapopts.c", line 142: invalid cast expression
"imapopts.c", line 142: initialization type mismatch
cc: acomp failed for imapopts.c
make[1]: *** [imapopts.o] Error 2

Every line of 'struct imapopts' causes the compiler to fail. Compiling 
cyrus with GCC does work, but would cause a performance penalty. I 
assume the (union config_value)((const char *) entries are to blame. 
This is a bit beyond my level of C expertise, could someone suggest a 
less compiler-dependent version of this construction?

Regards, Paul Boven.

More information about the Info-cyrus mailing list