lenny at edpausa.com
2007-Oct-23 13:51 UTC
[Dovecot] beta 1.1-3 compile fails on solaris 9 sparc, cc.
cc -DHAVE_CONFIG_H -I. -I. -I../.. -I/opt/SUNWconn/crypto/include -xjobs=4 -c file-set-size.c "/usr/include/sys/resource.h", line 126: incomplete struct/union/enum timeval: ru_utime "file-set-size.c", line 26: warning: implicit function declaration: ftruncate "file-set-size.c", line 38: warning: implicit function declaration: pwrite cc: acomp failed for file-set-size.c *** Error code 2 make: Fatal error: Command failed for target `file-set-size.o' Current working directory /mnt/sho/src/dovecot/1.1-3/dovecot-1.1.beta3/src/lib *** Error code 1 make: Fatal error: Command failed for target `all' Current working directory /mnt/sho/src/dovecot/1.1-3/dovecot-1.1.beta3/src/lib *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /mnt/sho/src/dovecot/1.1-3/dovecot-1.1.beta3/src *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /mnt/sho/src/dovecot/1.1-3/dovecot-1.1.beta3 *** Error code 1 make: Fatal error: Command failed for target `all'
Timo Sirainen
2007-Oct-23 13:59 UTC
[Dovecot] beta 1.1-3 compile fails on solaris 9 sparc, cc.
On Tue, 2007-10-23 at 09:51 -0400, lenny at edpausa.com wrote:> "/usr/include/sys/resource.h", line 126: incomplete struct/union/enum > timeval: ru_utimeTry changing src/lib/file-set-size.c: a) Remove #define _XOPEN_SOURCE 600 line. Does it compile now? b) Add #include <sys/time.h> before #include <unistd.h> (but keep the _XOPEN_SOURCE line). Does it compile now? It compiles fine with Solaris 10+cc, so I'm guessing there's something broken in 9. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20071023/ebfb79d5/attachment-0002.bin>