Hi All, I am trying to get Cyrus IMAP to compile on a Sun Ultra5. I've tried with both Sun ONE Studio 8 and GCC 3.2. I have also used both Sun make and GNU make 3.80. Prior to trying to compile of Cyrus IMAP, I compiled and installed Postfix 2.0.16, BerkeleyDB 3.3.11, and Cyrus SASL 2.1.17. My configure line is: ./configure --with-sasl=/usr/local/lib/sasl2/ --enable-netscapehack --enable-listext --enable-annotatemore --enable-murder --with-dbdir=/usr/local/BerkeleyDB.3.3/ The errors are at the bottom of the email. Thanks, -Aaron Taylor ### Making all in /usr/local/src/cyrus-imapd-2.1.16/perl make[1]: Entering directory `/usr/local/src/cyrus-imapd-2.1.16/perl' (cd imap; \ OPENSSL_LIB="" OPENSSL_INC="" \ SASL_LIB="-L/usr/local/lib/sasl2//lib -R/usr/local/lib/sasl2//lib -lsasl2" SASL_INC="-I/usr/local/lib/sasl2//include" CC="gcc" \ perl Makefile.PL PREFIX=/usr/local) Checking if your kit is complete... Looks good Note (probably harmless): No library found for -lsasl2 Note (probably harmless): No library found for -lssl Note (probably harmless): No library found for -lcrypto Writing Makefile for Cyrus::IMAP ### Making all in /usr/local/src/cyrus-imapd-2.1.16/perl/imap make[2]: Entering directory `/usr/local/src/cyrus-imapd-2.1.16/perl/imap' cp IMAP.pm blib/lib/Cyrus/IMAP.pm cp IMAP/Admin.pm blib/lib/Cyrus/IMAP/Admin.pm cp IMAP/IMSP.pm blib/lib/Cyrus/IMAP/IMSP.pm cp IMAP/Shell.pm blib/lib/Cyrus/IMAP/Shell.pm /bin/perl -I/usr/perl5/5.6.1/lib/sun4-solaris-64int -I/usr/perl5/5.6.1/lib /usr/perl5/5.6.1/lib/ExtUtils/xsubpp -typemap /usr/perl5/5.6.1/lib/ExtUtils/typemap -typemap typemap IMAP.xs > IMAP.xsc && mv IMAP.xsc IMAP.c cc -c -I../../lib -I/usr/local/lib/sasl2//include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xdepend -DVERSION=\"1.00\" -DXS_VERSION=\"1.00\" -KPIC -I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DPERL_POLLUTE IMAP.c "../../lib/imclient.h", line 48: cannot find include file: <sasl/sasl.h> "../../lib/imclient.h", line 71: syntax error before or at: sasl_callback_t "../../lib/imclient.h", line 71: warning: undefined or missing type for: sasl_callback_t "cyrperl.h", line 89: syntax error before or at: sasl_callback_t "cyrperl.h", line 91: syntax error before or at: sasl_secret_t "IMAP.xs", line 74: member cannot be function: fatal "IMAP.xs", line 74: warning: syntax requires ";" after last struct/union member "IMAP.xs", line 74: syntax error before or at: { "IMAP.xs", line 84: member cannot be function: imclient_xs_callback_free "IMAP.xs", line 84: warning: syntax requires ";" after last struct/union member "IMAP.xs", line 84: syntax error before or at: { "IMAP.xs", line 87: syntax error before or at: if "IMAP.xs", line 115: member cannot be function: imclient_xs_cb "IMAP.xs", line 115: warning: syntax requires ";" after last struct/union member "IMAP.xs", line 115: syntax error before or at: { "IMAP.xs", line 116: warning: syntax requires ";" after last struct/union member "IMAP.xs", line 116: syntax error before or at: = "IMAP.xs", line 121: syntax error before or at: Perl_push_scope "IMAP.xs", line 122: warning: syntax requires ";" after last struct/union member "IMAP.xs", line 124: zero-sized struct/union "IMAP.xs", line 124: warning: syntax error: empty declaration "IMAP.xs", line 124: syntax error before or at: ++ "IMAP.xs", line 124: warning: old-style declaration or incorrect type for: sp "IMAP.xs", line 124: warning: improper pointer/integer combination: op "=" "IMAP.xs", line 124: an address is not allowed in a constant initializer for an integral type whose size is smaller than the size of a pointer "IMAP.xs", line 124: syntax error before or at: ) "IMAP.xs", line 124: warning: syntax error: empty declaration "IMAP.xs", line 124: warning: syntax error: empty declaration "IMAP.xs", line 125: warning: old-style declaration or incorrect type for: rv "IMAP.xs", line 125: warning: improper pointer/integer combination: op "=" "IMAP.xs", line 125: an address is not allowed in a constant initializer for an integral type whose size is smaller than the size of a pointer "IMAP.xs", line 126: syntax error before or at: 0 "IMAP.xs", line 126: warning: old-style declaration or incorrect type for: Perl_sv_setref_pv "IMAP.xs", line 126: identifier redeclared: Perl_sv_setref_pv current : function() returning int previous: function(pointer to struct sv {pointer to void sv_any, unsigned long sv_refcnt, unsigned long sv_flags}, pointer to const char, pointer to void) returning pointer to struct sv {pointer to void sv_any, unsigned long sv_refcnt, unsigned long sv_flags} : "/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE/proto.h", line 782 "IMAP.xs", line 126: warning: old-style declaration or incorrect type for: rock "IMAP.xs", line 126: warning: old-style declaration or incorrect type for: client "IMAP.xs", line 126: warning: syntax error: empty declaration "IMAP.xs", line 127: warning: syntax error: empty declaration "IMAP.xs", line 127: syntax error before or at: ++ "IMAP.xs", line 127: warning: old-style declaration or incorrect type for: sp "IMAP.xs", line 127: identifier redefined: sp current : int previous: int : "IMAP.xs", line 124 "IMAP.xs", line 127: non-constant initializer: op "NAME" "IMAP.xs", line 127: syntax error before or at: ) "IMAP.xs", line 127: warning: syntax error: empty declaration "IMAP.xs", line 127: warning: syntax error: empty declaration "IMAP.xs", line 128: warning: old-style declaration or incorrect type for: prock "IMAP.xs", line 128: warning: old-style declaration or incorrect type for: PL_sv_undef "IMAP.xs", line 128: identifier redeclared: PL_sv_undef current : int previous: struct sv {pointer to void sv_any, unsigned long sv_refcnt, unsigned long sv_flags} : "/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE/intrpvar.h", line 283 "IMAP.xs", line 129: warning: syntax error: empty declaration "IMAP.xs", line 129: syntax error before or at: ++ "IMAP.xs", line 129: warning: old-style declaration or incorrect type for: sp "IMAP.xs", line 129: identifier redefined: sp current : int previous: int : "IMAP.xs", line 127 "IMAP.xs", line 129: warning: improper pointer/integer combination: op "=" "IMAP.xs", line 129: an address is not allowed in a constant initializer for an integral type whose size is smaller than the size of a pointer "IMAP.xs", line 129: syntax error before or at: ) "IMAP.xs", line 129: warning: syntax error: empty declaration "IMAP.xs", line 129: warning: syntax error: empty declaration "IMAP.xs", line 130: warning: syntax error: empty declaration "IMAP.xs", line 130: syntax error before or at: ++ "IMAP.xs", line 130: warning: old-style declaration or incorrect type for: sp "IMAP.xs", line 130: identifier redefined: sp current : int previous: int : "IMAP.xs", line 129 "IMAP.xs", line 130: left operand of "->" must be pointer to struct/union "IMAP.xs", line 130: warning: improper pointer/integer combination: op "=" "IMAP.xs", line 130: an address is not allowed in a constant initializer for an integral type whose size is smaller than the size of a pointer "IMAP.xs", line 130: syntax error before or at: ) "IMAP.xs", line 130: warning: syntax error: empty declaration "IMAP.xs", line 130: warning: syntax error: empty declaration "IMAP.xs", line 132: warning: syntax error: empty declaration "IMAP.xs", line 132: syntax error before or at: ++ "IMAP.xs", line 132: warning: old-style declaration or incorrect type for: sp "IMAP.xs", line 132: identifier redefined: sp current : int previous: int : "IMAP.xs", line 130 "IMAP.xs", line 132: warning: improper pointer/integer combination: op "=" "IMAP.xs", line 132: an address is not allowed in a constant initializer for an integral type whose size is smaller than the size of a pointer "IMAP.xs", line 132: syntax error before or at: ) "IMAP.xs", line 132: warning: syntax error: empty declaration "IMAP.xs", line 132: warning: syntax error: empty declaration "IMAP.xs", line 133: warning: syntax error: empty declaration "IMAP.xs", line 133: syntax error before or at: ++ "IMAP.xs", line 133: warning: old-style declaration or incorrect type for: sp "IMAP.xs", line 133: identifier redefined: sp current : int previous: int : "IMAP.xs", line 132 "IMAP.xs", line 133: undefined symbol: reply "IMAP.xs", line 133: left operand of "->" must be pointer to struct/union "IMAP.xs", line 133: warning: improper pointer/integer combination: op "=" "IMAP.xs", line 133: an address is not allowed in a constant initializer for an integral type whose size is smaller than the size of a pointer "IMAP.xs", line 133: syntax error before or at: ) "IMAP.xs", line 133: warning: syntax error: empty declaration "IMAP.xs", line 133: warning: syntax error: empty declaration "IMAP.xs", line 134: warning: syntax error: empty declaration "IMAP.xs", line 134: syntax error before or at: ++ "IMAP.xs", line 134: warning: old-style declaration or incorrect type for: sp "IMAP.xs", line 134: identifier redefined: sp current : int previous: int : "IMAP.xs", line 133 "IMAP.xs", line 134: warning: improper pointer/integer combination: op "=" "IMAP.xs", line 134: an address is not allowed in a constant initializer for an integral type whose size is smaller than the size of a pointer "IMAP.xs", line 134: syntax error before or at: ) "IMAP.xs", line 134: warning: syntax error: empty declaration "IMAP.xs", line 134: warning: syntax error: empty declaration "IMAP.xs", line 135: warning: syntax error: empty declaration "IMAP.xs", line 135: syntax error before or at: ++ "IMAP.xs", line 135: warning: old-style declaration or incorrect type for: sp "IMAP.xs", line 135: identifier redefined: sp current : int previous: int : "IMAP.xs", line 134 "IMAP.xs", line 135: left operand of "->" must be pointer to struct/union "IMAP.xs", line 135: warning: improper pointer/integer combination: op "=" "IMAP.xs", line 135: an address is not allowed in a constant initializer for an integral type whose size is smaller than the size of a pointer "IMAP.xs", line 135: syntax error before or at: ) "IMAP.xs", line 135: warning: syntax error: empty declaration "IMAP.xs", line 135: warning: syntax error: empty declaration "IMAP.xs", line 136: warning: old-style declaration or incorrect type for: msgno "IMAP.xs", line 138: warning: syntax error: empty declaration "IMAP.xs", line 138: syntax error before or at: ++ "IMAP.xs", line 138: warning: old-style declaration or incorrect type for: sp "IMAP.xs", line 138: identifier redefined: sp current : int previous: int : "IMAP.xs", line 135 "IMAP.xs", line 138: warning: improper pointer/integer combination: op "=" "IMAP.xs", line 138: an address is not allowed in a constant initializer for an integral type whose size is smaller than the size of a pointer "IMAP.xs", line 138: syntax error before or at: ) "IMAP.xs", line 138: warning: syntax error: empty declaration "IMAP.xs", line 138: warning: syntax error: empty declaration "IMAP.xs", line 139: syntax error before or at: "%d" "IMAP.xs", line 139: warning: old-style declaration or incorrect type for: sprintf "IMAP.xs", line 139: warning: identifier redeclared: sprintf current : function() returning int previous: function(pointer to char, pointer to const char, ...) returning int : "/usr/include/iso/stdio_iso.h", line 183 "IMAP.xs", line 140: warning: syntax error: empty declaration "IMAP.xs", line 140: syntax error before or at: ++ "IMAP.xs", line 140: warning: old-style declaration or incorrect type for: sp "IMAP.xs", line 140: identifier redefined: sp current : int previous: int : "IMAP.xs", line 138 "IMAP.xs", line 140: undefined symbol: tmp "IMAP.xs", line 140: warning: improper pointer/integer combination: arg #1 "IMAP.xs", line 140: warning: improper pointer/integer combination: op "=" "IMAP.xs", line 140: an address is not allowed in a constant initializer for an integral type whose size is smaller than the size of a pointer "IMAP.xs", line 140: syntax error before or at: ) "IMAP.xs", line 140: warning: syntax error: empty declaration "IMAP.xs", line 140: warning: syntax error: empty declaration "IMAP.xs", line 142: warning: old-style declaration or incorrect type for: PL_stack_sp "IMAP.xs", line 142: identifier redeclared: PL_stack_sp current : int previous: pointer to pointer to struct sv {pointer to void sv_any, unsigned long sv_refcnt, unsigned long sv_flags} : "/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE/thrdvar.h", line 21 "IMAP.xs", line 142: non-constant initializer: op "NAME" "IMAP.xs", line 144: syntax error before or at: -> "IMAP.xs", line 144: warning: old-style declaration or incorrect type for: Perl_call_sv "IMAP.xs", line 144: identifier redeclared: Perl_call_sv current : function() returning int previous: function(pointer to struct sv {pointer to void sv_any, unsigned long sv_refcnt, unsigned long sv_flags}, long) returning long : "/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE/proto.h", line 594 "IMAP.xs", line 145: warning: old-style declaration or incorrect type for: PL_tmps_floor "IMAP.xs", line 145: identifier redeclared: PL_tmps_floor current : int previous: long : "/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE/thrdvar.h", line 43 "IMAP.xs", line 145: warning: old-style declaration or incorrect type for: Perl_free_tmps "IMAP.xs", line 145: identifier redeclared: Perl_free_tmps current : function() returning int previous: function(void) returning void : "/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE/proto.h", line 282 "IMAP.xs", line 146: warning: old-style declaration or incorrect type for: sp "IMAP.xs", line 146: identifier redefined: sp current : int previous: int : "IMAP.xs", line 140 "IMAP.xs", line 146: non-constant initializer: op "NAME" "IMAP.xs", line 147: warning: old-style declaration or incorrect type for: Perl_pop_scope "IMAP.xs", line 147: identifier redeclared: Perl_pop_scope current : function() returning int previous: function(void) returning void : "/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE/proto.h", line 615 "IMAP.xs", line 149: syntax error before or at: if "IMAP.xs", line 149: warning: old-style declaration or incorrect type for: autofree "IMAP.xs", line 149: warning: function prototype parameters must have types "IMAP.xs", line 149: warning: old-style declaration or incorrect type for: imclient_xs_callback_free "IMAP.xs", line 150: syntax error before or at: } "IMAP.xs", line 158: type specifier can not be used as array size _expression_ qualifier "IMAP.xs", line 158: warning: no explicit type given "IMAP.xs", line 160: warning: old-style declaration or incorrect type for: imclient_xs_fcmdcb "IMAP.xs", line 171: cannot recover from previous errors cc: acomp failed for IMAP.c make[2]: *** [IMAP.o] Error 2 make[2]: Leaving directory `/usr/local/src/cyrus-imapd-2.1.16/perl/imap' make[1]: *** [all] Error 1 make[1]: Leaving directory `/usr/local/src/cyrus-imapd-2.1.16/perl' make: *** [all] Error 1 |