[Dovecot] Problem compiling dovecot 2.1 Beta1 under Solaris 10 on SPARC
Hello, compiling dovecot 2.1 Beta1 under Solaris 10 on SPARC with Sun Studio 11 stops with the following error:
Making all in lib-imap-client
gmake[3]: Entering directory
/net/fileserv/export/sunsrc/src/dovecot-2.1.beta1/src/lib-imap-client' source='imapc-client.c' object='imapc-client.lo' libtool=yes \ DEPDIR=.deps depmode=none /bin/bash ../../depcomp \ /bin/bash ../../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-dns -I../../src/lib-ssl-iostream -I../../src/lib-mail -I../../src/lib-imap -I/usr/local/include -fast -xarch=v8plusa -I/usr/sfw/include -c -o imapc-client.lo imapc-client.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-dns -I../../src/lib-ssl-iostream -I../../src/lib-mail -I../../src/lib-imap -I/usr/local/include -fast -xarch=v8plusa -I/usr/sfw/include -c imapc-client.c -KPIC -DPIC -o .libs/imapc-client.o "imapc-client.h", line 21: warning: enumerator value overflows INT_MAX (2147483647) libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-dns -I../../src/lib-ssl-iostream -I../../src/lib-mail -I../../src/lib-imap -I/usr/local/include -fast -xarch=v8plusa -I/usr/sfw/include -c imapc-client.c -o imapc-client.o >/dev/null 2>&1 source='imapc-connection.c' object='imapc-connection.lo' libtool=yes \ DEPDIR=.deps depmode=none /bin/bash ../../depcomp \ /bin/bash ../../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-dns -I../../src/lib-ssl-iostream -I../../src/lib-mail -I../../src/lib-imap -I/usr/local/include -fast -xarch=v8plusa -I/usr/sfw/include -c -o imapc-connection.lo imapc-connection.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-dns -I../../src/lib-ssl-iostream -I../../src/lib-mail -I../../src/lib-imap -I/usr/local/include -fast -xarch=v8plusa -I/usr/sfw/include -c imapc-connection.c -KPIC -DPIC -o .libs/imapc-connection.o "../../src/lib-imap/imap-util.h", line 6: warning: useless declaration "imapc-client.h", line 21: warning: enumerator value overflows INT_MAX (2147483647) "imapc-connection.c", line 1446: operand cannot have void type: op "==" "imapc-connection.c", line 1446: operands have incompatible types: const void "==" pointer to struct imapc_command {pointer to struct pool {..} pool, pointer to struct buffer {..} data, unsigned int send_pos, unsigned int tag, enum imapc_command_flags {IMAPC_COMMAND_FLAG_RETRIABLE(4), IMAPC_COMMAND_FLAG_PRELOGIN(2), IMAPC_COMMAND_FLAG_SELECT(1)} flags, pointer to struct imapc_connection {..} conn, pointer to struct imapc_client_mailbox {..} box, union {..} streams, pointer to function(pointer to const struct imapc_command_reply {..}, pointer to void) returning void callback, pointer to void context, unsigned int idle :1, unsigned int wait_for_literal :1} cc: acomp failed for imapc-connection.c gmake[3]: *** [imapc-connection.lo] Error 1 gmake[3]: Leaving directory
/net/fileserv/export/sunsrc/src/dovecot-2.1.beta1/src/lib-imap-client'
Viele Grüße, Jürgen Obermann Hochschulrechenzentrum der Justus-Liebig-Universität Gießen Heinrich-Buff-Ring 44 Tel. 0641-9913054
On 22.11.2011, at 22.11, Jürgen Obermann wrote:
"imapc-client.h", line 21: warning: enumerator value overflows INT_MAX (2147483647)
What? No it doesn't.. Does changing the 0x400000000 in line 20 to 0x200000000 help?
"imapc-connection.c", line 1446: operand cannot have void type: op "==" "imapc-connection.c", line 1446: operands have incompatible types:
----- Nachricht von tss@iki.fi ---------
Datum: Wed, 23 Nov 2011 01:01:44 +0200
Von: Timo Sirainen tss@iki.fi
Betreff: Re: [Dovecot] Problem compiling dovecot 2.1 Beta1 under
Solaris 10 on SPARC
An: Jürgen Obermann Juergen.Obermann@hrz.uni-giessen.de
Cc: dovecot@dovecot.org
On 22.11.2011, at 22.11, Jürgen Obermann wrote:
"imapc-client.h", line 21: warning: enumerator value overflows
INT_MAX (2147483647)What? No it doesn't.. Does changing the 0x400000000 in line 20 to
0x200000000 help?
No, but stripping off the last zero helps, because INT_MAX is 0x7FFFFFFF.
"imapc-connection.c", line 1446: operand cannot have void type: op "==" "imapc-connection.c", line 1446: operands have incompatible types:
OK now.
----- Ende der Nachricht von tss@iki.fi -----
One more compilation problem occurs:
gmake[5]: Entering directory
`/net/fileserv/export/sunsrc/src/dovecot-2.1.beta1/src/lib-storage/index/imapc'
source='imapc-storage.c' object='imapc-storage.lo' libtool=yes
DEPDIR=.deps depmode=none /bin/bash ../../../../depcomp
/bin/bash ../../../../libtool --tag=CC --mode=compile cc
-DHAVE_CONFIG_H -I. -I../../../.. -I../../../../src/lib
-I../../../../src/lib-test -I../../../../src/lib-settings
-I../../../../src/lib-mail -I../../../../src/lib-imap
-I../../../../src/lib-imap-client -I../../../../src/lib-index
-I../../../../src/lib-storage -I../../../../src/lib-storage/list
-I../../../../src/lib-storage/index -I/usr/local/include -fast
-xarch=v8plusa -I/usr/sfw/include -c -o imapc-storage.lo
imapc-storage.c
libtool: compile: cc -DHAVE_CONFIG_H -I. -I../../../..
-I../../../../src/lib -I../../../../src/lib-test
-I../../../../src/lib-settings -I../../../../src/lib-mail
-I../../../../src/lib-imap -I../../../../src/lib-imap-client
-I../../../../src/lib-index -I../../../../src/lib-storage
-I../../../../src/lib-storage/list -I../../../../src/lib-storage/index
-I/usr/local/include -fast -xarch=v8plusa -I/usr/sfw/include -c
imapc-storage.c -KPIC -DPIC -o .libs/imapc-storage.o
"../../../../src/lib-storage/mailbox-list.h", line 13: warning:
useless declaration
"../../../../src/lib-storage/mailbox-list-private.h", line 14:
warning: useless declaration
"imapc-sync.h", line 4: warning: useless declaration
"imapc-storage.c", line 500: void function cannot return value
cc: acomp failed for imapc-storage.c
gmake[5]: *** [imapc-storage.lo] Error 1
Greetings, Jürgen Obermann
-- Hochschulrechenzentrum der | Mail: Juergen.Obermann@hrz.uni-giessen.de Justus-Liebig-Universitaet | WWW: http://www.uni-giessen.de/obermann/ Heinrich-Buff-Ring 44 | Tel: 0641-99-13054 (0641-99-13001) D-35392 Giessen, Germany | Fax: 0641-99-13009
On 23.11.2011, at 12.01, Jürgen Obermann wrote:
On 22.11.2011, at 22.11, Jürgen Obermann wrote:
"imapc-client.h", line 21: warning: enumerator value overflows INT_MAX (2147483647)
What? No it doesn't.. Does changing the 0x400000000 in line 20 to 0x200000000 help?
No, but stripping off the last zero helps, because INT_MAX is 0x7FFFFFFF.
Oops :) Looks like gcc automatically increases the enum's size to 64bit in that case.
"imapc-storage.c", line 500: void function cannot return value
Am 23.11.2011 15:58, schrieb Timo Sirainen:
On 23.11.2011, at 12.01, Jürgen Obermann wrote:
On 22.11.2011, at 22.11, Jürgen Obermann wrote:
"imapc-client.h", line 21: warning: enumerator value overflows INT_MAX (2147483647)
What? No it doesn't.. Does changing the 0x400000000 in line 20 to 0x200000000 help?
No, but stripping off the last zero helps, because INT_MAX is 0x7FFFFFFF.
Oops :) Looks like gcc automatically increases the enum's size to 64bit in that case.
"imapc-storage.c", line 500: void function cannot return value
There seems to be one more similar problem:
gmake[3]: Entering directory
`/net/fileserv/export/sunsrc/src/dovecot-2.1.beta1/src/anvil'
source='anvil-connection.c' object='anvil-connection.o' libtool=no
DEPDIR=.deps depmode=none /bin/bash ../../depcomp
cc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib
-I../../src/lib-test -I../../src/lib-settings -I../../src/lib-master
-I/usr/local/include -fast -xarch=v8plusa -I/usr/sfw/include -c
anvil-connection.c
"anvil-connection.c", line 156: void function cannot return value
cc: acomp failed for anvil-connection.c
gmake[3]: *** [anvil-connection.o] Error 2
-- Jürgen Obermann Hochschulrechenzentrum der Justus-Liebig-Universität Gießen Heinrich-Buff-Ring 44 Tel. 0641-9913054
On Wed, 2011-11-23 at 18:07 +0100, Jürgen Obermann wrote:
There seems to be one more similar problem:
"anvil-connection.c", line 156: void function cannot return value
participants (2)
-
Jürgen Obermann
-
Timo Sirainen