On Sun, 2005-08-21 at 04:34 -0400, Lisandro Grullon wrote:
PS. I am running Solaris 10 X86, GNU gcc. .. 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"\" -std=gnu99 -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;
22. then mv -f ".deps/mycrypt.Tpo" ".deps/mycrypt.Po"; else rm -f ".deps/mycrypt.Tpo"; exit 1; fi 23. In file included from /usr/include/unistd.h:18, 24. from mycrypt.c:5: 25. /usr/include/sys/feature_tests.h:332:2: #error "Compiler or options invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX applications"
Some versions of Solaris 10 want "#define _XPG6" at the beginning of the mycrypt.c file, but most other versions give error if it's there. Do you have a final release of Solaris 10 or some pre-release? Maybe I should put this check to configure if it happens with non-prereleases too..