Jürgen Obermann
2013-Apr-09 15:29 UTC
[Dovecot] failed compiling dovecot 2.1.16 under solaris
Hello, compiling doevoct-2.1.16 with sun-compiler under solaris 10 gave me the following error 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 -fast -xarch=v8plusa -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 I could solve this problem with *** ./src/plugins/quota/quota-status.c.orig Thu Apr 4 22:58:30 2013 --- ./src/plugins/quota/quota-status.c Tue Apr 9 16:08:12 2013 *************** *** 11,16 **** --- 11,17 ---- #include "mail-storage-service.h" #include "quota-private.h" #include "quota-plugin.h" + #include <stdlib.h> enum quota_protocol { QUOTA_PROTOCOL_UNKNOWN = 0, but I don't know if this is the correct way to fix it. Greetings, J?rgen -- J?rgen Obermann Hochschulrechenzentrum der Justus-Liebig-Universit?t Gie?en Heinrich-Buff-Ring 44 Tel. 0641-9913054
Timo Sirainen
2013-Apr-09 18:22 UTC
[Dovecot] failed compiling dovecot 2.1.16 under solaris
On 9.4.2013, at 18.29, J?rgen Obermann <Juergen.Obermann at hrz.uni-giessen.de> wrote:> "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 > > + #include <stdlib.h>What about with stdio.h? That's the correct one according to man page.