Error compiling on Solaris 11.1
gmake[4]: Entering directory `/opt/local/src/dovecot/dovecot-2.2.rc2/src/plugins/quota' gcc -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 -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -MT quota-status.o -MD -MP -MF .deps/quota-status.Tpo -c -o quota-status.o quota-status.c quota-status.c: In function 'main': quota-status.c:184:15: error: 'optarg' undeclared (first use in this function) quota-status.c:184:15: note: each undeclared identifier is reported only once for each function it appears in
It worked after adding
#include
to quota-status.c - or perhaps those should be added to src/lib-master/master-service.h?