[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
On 9.4.2013, at 18.29, Jürgen Obermann <Juergen.Obermann@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.
Am Di, 09 Apr 2013 schrieb Timo Sirainen:
On 9.4.2013, at 18.29, Jürgen Obermann
<Juergen.Obermann@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.
With stdio.h it compiles OK too.
-- 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
participants (2)
-
Jürgen Obermann
-
Timo Sirainen