[Dovecot] Problem compiling dovecot 1.2.8 on Solaris 10?

Drew Schatt schatt at schatt.com
Fri Nov 20 21:40:17 EET 2009


I've got an issue using Sun's compilers on Solaris 10 - it appears that dovecot is trying to use the getopt function, that's part of GNU's glibc, and, therefore, not present when using Sun's compilers.

Any ideas on how to resolve?

cc -DHAVE_CONFIG_H -I. -I../..  -I../../src/lib -I../../src/lib-auth -I../../src/lib-mail -I../../src/lib-imap -I../../src/lib-index -I../../src/lib-storage/index/maildir -I../../src/auth -DPKG_RUNDIR=\""/usr/local/var/run/dovecot"\" -I/usr/local/include -I/usr/local/ssl/include -D_XPG6 -L/usr/local/lib -L/usr/local/ssl/lib -KPIC -lm -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -xc99 -I/usr/local/include -I/usr/local/ssl/include -L/usr/local/lib -L/usr/local/ssl/lib -D_XPG6 -xstrconst -KPIC -lm -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -c authtest.c
"authtest.c", line 164: warning: implicit function declaration: getopt
"authtest.c", line 167: undefined symbol: optarg
"authtest.c", line 167: warning: improper pointer/integer combination: op "="
"authtest.c", line 170: warning: improper pointer/integer combination: op "="
"authtest.c", line 176: undefined symbol: optind
"authtest.c", line 178: undefined symbol: optind
cc: acomp failed for authtest.c


-Drew Schatt


More information about the dovecot mailing list