2.1.12 Compile problem

Leonard R Smith II lrsmith at umich.edu
Sat Apr 12 21:12:42 EDT 2003

To all,
	I'm trying to compile Cyrus Imapd-2.1.12 on Solaris 8, using the
Sun Forte 6.0 Compiler. In trying to compile imap/squat.c an error is
being kicked back about a line in lib/xmalloc.h

cc -xtarget=generic -xO4 -c -I. -I.. -I. -I./../lib -I./../sieve
-I./../acap -I.
/../et -I./../sieve -I/opt/include/db3
-I/opt/packages/db-3.1.17/include/db3 -I/
-I/opt/packages/cyrus-sasl-2.1.10/include -
-I/opt/packages/krb5-1.2.5/include/krb5 -
I/opt/include -I/usr/local/include -I/opt/packages/openssl-0.9.6e/include
/packages/tcpwrappers-7.6-ipv6/include -DHAVE_CONFIG_H
/include/db3 -I/opt/packages/krb4-1.2.1/include/krb4
2.1.10/include -I/usr/lsa/packages/flex-2.5.4a/include
5/include/krb5 \
"./../lib/xmalloc.h", line 69: syntax error before or at: __attribute__
"./../lib/xmalloc.h", line 69: warning: syntax error:  empty declaration
cc: acomp failed for squat.c
*** Error code 2
make: Fatal error: Command failed for target `squat.o'
Current working directory
*** Error code 1
make: Fatal error: Command failed for target `all'

The excerpt from xmalloc.h is

/* Functions using xmalloc.h must provide a function called fatal()
   to the following: */
extern void fatal(const char *fatal_message, int fatal_code)
        __attribute__ ((noreturn));

I'm figuring this is something that the Sun Compiler does not like. Any
help would be appreciated.


More information about the Info-cyrus mailing list