[Dovecot] Compiling on Solaris 10
Trying to compile Dovecot on Solaris 10. I have tried the 99.14
release and today's 1.0-stable release. In both cases I get the
following error message:
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/lib -I../../src/
lib-sql -I../../src/lib-settings -I../../src/lib-ntlm -
DAUTH_MODULE_DIR=\""/usr/local/lib/dovecot/auth"\" -DPKG_LIBEXECDIR=
\""/usr/local/libexec/dovecot"\" -I/usr/local/include -g -O2 -Wall -
W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-
subscripts -Wformat=2 -Wbad-function-cast -I/usr/sfw/include -MT
mycrypt.o -MD -MP -MF ".deps/mycrypt.Tpo" -c -o mycrypt.o mycrypt.c;
then mv -f ".deps/mycrypt.Tpo" ".deps/mycrypt.Po"; else rm -f ".deps/
mycrypt.Tpo"; exit 1; fi
In file included from /usr/include/unistd.h:18,
from mycrypt.c:6:
/usr/include/sys/feature_tests.h:336:2: #error "Compiler or options
invalid; UNIX 03 and POSIX.1-2001 applications require the use
of c99"
make[3]: *** [mycrypt.o] Error 1
I am using gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) to do
the build. It fails with just ./configure ; make
The only thing useful I found on Google was this:
http://www.mail-archive.com/openssl-dev@openssl.org/msg18884.html
Can anybody help?
Thank you,
Roger
On Thu, 2005-05-05 at 15:22 -0400, Roger Oliver Clark wrote:
In file included from /usr/include/unistd.h:18, from mycrypt.c:6: /usr/include/sys/feature_tests.h:336:2: #error "Compiler or options
invalid; UNIX 03 and POSIX.1-2001 applications require the use
of c99" make[3]: *** [mycrypt.o] Error 1
Is your Solaris 10 a "final" release or some pre-release? I heard this problem was fixed in a final release. If not, I suppose I'm going to add this back at the beginning of mycrypt.c:
#define _XPG6 /* for Solaris 10 to avoid #error in feature_tests.h */
participants (2)
-
Roger Oliver Clark
-
Timo Sirainen