[Dovecot] 2.1.16 Solaris 10 compile regression Sunstudio compiler

Tomi Vainio tomppa at iki.fi
Tue Apr 9 13:45:07 EEST 2013


Hi,

src/plugins/quota/quota-status.c won't compile due to missing include
<getopt.h> needed for optarg

% make
source='quota-status.c' object='quota-status.o' libtool=no \
DEPDIR=.deps depmode=none /bin/bash ../../../depcomp \
cc -DHAVE_CONFIG_H -I. -I../../..  -I../../../src/lib
-I../../../src/lib-master  -I../../../src/lib-dict
-I../../../src/lib-index  -I../../../src/lib-mail
-I../../../src/lib-storage  -I../../../src/lib-storage/index
-I../../../src/lib-storage/index/maildir  -I../../../src/doveadm
-I/usr/local/include -I/usr/sfw/include  -xO4 -xtarget=ultra3cu
-xcache=64/32/4:8192/512/2 -I/usr/sfw/include -c quota-status.c
"../../../src/lib-storage/mailbox-list.h", line 13: warning: useless
declaration
"quota-status.c", line 200: undefined symbol: optarg
"quota-status.c", line 200: warning: improper pointer/integer
combination: arg #1
cc: acomp failed for quota-status.c
*** Error code 2
make: Fatal error: Command failed for target `quota-status.o'


Also 2.2.rc6 fails when using Sunstudio make but works with gmake

Making all in lib-http
make: Fatal error in reader: Makefile, line 725: Unexpected end of line seen

  Tomppa


More information about the dovecot mailing list