While trying to build the latest version of openssl I encounterd the following error:
gmake[2]: Entering directory `/export/home/opt/openssl-0.9.7e/crypto/rand' cc -I.. -I../.. -I../../include -DOPENSSL_SYSNAME_ULTRASPARC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DMD32_REG_T=int -xtarget=ultra -xarch=v9 -xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DMD5_ASM -c -o randfile.o randfile.c "/usr/include/sys/feature_tests.h", line 332: #error: "Compiler or options invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX applications" cc: acomp failed for randfile.c gmake[2]: *** [randfile.o] Error 2 The comment in the header file is: /* * It is invalid to compile an XPG3, XPG4, XPG4v2, or XPG5 application * using c99. The same is true for POSIX.1-1990, POSIX.2-1992, POSIX.1b, * and POSIX.1c applications. Likewise, it is invalid to compile an XPG6 * or a POSIX.1-2001 application with anything other than a c99 or later * compiler. Therefore, we force an error in both cases. */ #if defined(_STDC_C99) && (defined(__XOPEN_OR_POSIX) && !defined(_XPG6)) #error "Compiler or options invalid for pre-UNIX 03 X/Open applications \ and pre-2001 POSIX applications" #elif !defined(_STDC_C99) && \ (defined(__XOPEN_OR_POSIX) && defined(_XPG6)) #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications \ require the use of c99" #endif My environment is Solaris 10, Sun Studio 8 and I ran configure with the following options: ./Configure solaris64-sparcv9-cc -DMD32_REG_T=int --prefix=/opt/csw --openssldir =/opt/csw/ssl Apparently the Sun compiler defaults to c99 compatibility (i.e., -xc99=%all). The work around was to insert the compiler option -xc99=%none into the flags in the Makefile Dan __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager [EMAIL PROTECTED]