Cyrus 2.2.3 on Solaris 8 with Sun Studio 7 Compiler: imapopts.c, invalid cast expression

Bernd Nies bernd.nies at adnovum.ch
Tue Apr 27 11:00:48 EDT 2004


Hi,

I'm trying to compile Cyrus IMAP 2.2.3 on Solaris 8 using Sun Studio 7 
Compiler.

Compilation Options:

PATH=/opt/studio/7/bin:$PATH
CC=cc
CFLAGS=-O
CXX=CC
CXXFLAGS=-O2
CPPFLAGS="-I/opt/adnmail/db/include -I/opt/adnmail/openssl/include 
-I/opt/adnmail/cyrus/include"
LDFLAGS="-R/opt/adnmail/db/lib -R/opt/adnmail/openssl/lib 
-R/opt/adnmail/cyrus/lib"
LDFLAGS="-L/opt/adnmail/db/lib -L/opt/adnmail/openssl/lib 
-L/opt/adnmail/cyrus/lib $LDFLAGS"

./configure --prefix=/opt/adnmail/cyrus \
             --with-auth=unix \
             --with-cyrus-prefix=/opt/adnmail/cyrus \
             --with-bdb=/opt/adnmail/db \
             --with-dbdir=/opt/adnmail/db \
             --with-openssl=/opt/adnmail/openssl \
             --with-sasl=/opt/adnmail/cyrus \
             --with-ldap=/opt/adnmail/openldap \
             --with-perl=/usr/bin/perl \
             --disable-krb4 \
             --disable-cram \
             --disable-gssapi \
             --without-krb \
             --with-statedir=/opt/adnmail/cyrus/state



The errors I get:

### Making all in /opt/adnmail/src/cyrus-imapd-2.2.3/lib
make[1]: Entering directory `/opt/adnmail/src/cyrus-imapd-2.2.3/lib'
cc -c -I..  -I/opt/adnmail/db/include -I/opt/adnmail/openssl/include 
-I/opt/adnmail/cyrus/include -I/opt/adnmail/openssl/include -I./../et 
-I/opt/adnmail/cyrus/include -DHAVE_CONFIG_H  -I. -I. -O \
imapopts.c
"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 38: invalid cast expression
"imapopts.c", line 38: initialization type mismatch
"imapopts.c", line 39: invalid cast expression
"imapopts.c", line 39: initialization type mismatch
"imapopts.c", line 40: invalid cast expression
....

Any help would be appreciated.

Regards,
Bernd

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list