On Fri, 16 Aug 2002, Richard Levitte - VMS Whacker via RT wrote:
> In message <[EMAIL PROTECTED]> on Thu, 15
>Aug 2002 19:17:27 -0700 (PDT), Doug Kaufman <[EMAIL PROTECTED]> said:
>
> dkaufman> I recently tried to build the August 9th snapshot of openssl 0.9.7 on
> dkaufman> a sun sparc machine running sunos 4.1.3_U1. This failed in several
> ...
> dkaufman> I wasn't sure which define to use to identify this version of sunos.
>
> The best thing would probably be to insert an identifying name in the
> $sys_id field of the sunos-gcc target (I assume that's the one you got
> to use, right?).
OK. Here is a redone patch. I have attached it because of the long
lines.
Doug
__
Doug Kaufman
Internet: [EMAIL PROTECTED]
--- openssl-0.9.7-beta3/Configure.orig Thu Aug 1 14:06:26 2002
+++ openssl-0.9.7-beta3/Configure Sun Aug 18 21:36:56 2002
@@ -206,8 +206,8 @@
#"linux64-sparcv9","sparc64-linux-gcc:-m64 -mcpu=v9 -DB_ENDIAN -DTERMIO -O3
-fomit-frame-pointer -Wall -DBN_DIV2W::-D_REENTRANT:ULTRASPARC::BN_LLONG RC4_CHAR
RC4_CHUNK DES_UNROLL BF_PTR::::asm/md5-sparcv9.o:",
# Sunos configs, assuming sparc for the gcc one.
-##"sunos-cc", "cc:-O4 -DNOPROTO -DNOCONST::(unknown):::DES_UNROLL:::",
-"sunos-gcc","gcc:-O3 -mv8 -Dssize_t=int::(unknown):::BN_LLONG RC4_CHAR RC4_CHUNK
DES_UNROLL DES_PTR DES_RISC1:::",
+##"sunos-cc", "cc:-O4 -DNOPROTO -DNOCONST::(unknown):SUNOS::DES_UNROLL:::",
+"sunos-gcc","gcc:-O3 -mv8 -Dssize_t=int::(unknown):SUNOS::BN_LLONG RC4_CHAR RC4_CHUNK
+DES_UNROLL DES_PTR DES_RISC1:::",
#### IRIX 5.x configs
# -mips2 flag is added by ./config when appropriate.
--- openssl-0.9.7-beta3/e_os2.h.orig Thu Jun 13 15:07:28 2002
+++ openssl-0.9.7-beta3/e_os2.h Mon Aug 19 18:03:07 2002
@@ -170,6 +170,9 @@
# ifdef OPENSSL_SYSNAME_MACOSX
# define OPENSSL_SYS_MACOSX
# endif
+# ifdef OPENSSL_SYSNAME_SUNOS
+# define OPENSSL_SYS_SUNOS
+#endif
# if defined(_CRAY) || defined(OPENSSL_SYSNAME_CRAY)
# define OPENSSL_SYS_CRAY
# endif
--- openssl-0.9.7-beta3/crypto/ocsp/ocsp_ht.c.orig Fri Jan 12 06:45:12 2001
+++ openssl-0.9.7-beta3/crypto/ocsp/ocsp_ht.c Tue Aug 13 08:08:29 2002
@@ -64,6 +64,9 @@
#include <openssl/ocsp.h>
#include <openssl/err.h>
#include <openssl/buffer.h>
+#ifdef OPENSSL_SYS_SUNOS
+#define strtoul (unsigned long)strtol
+#endif /* OPENSSL_SYS_SUNOS */
/* Quick and dirty HTTP OCSP request handler.
* Could make this a bit cleverer by adding
--- openssl-0.9.7-beta3/crypto/ui/ui_openssl.c.orig Thu Jun 13 14:06:50 2002
+++ openssl-0.9.7-beta3/crypto/ui/ui_openssl.c Mon Aug 12 23:49:16 2002
@@ -221,7 +221,7 @@
# define TTY_set(tty,data) ioctl(tty,TIOCSETP,data)
#endif
-#if !defined(_LIBC) && !defined(OPENSSL_SYS_MSDOS) && !defined(OPENSSL_SYS_VMS) &&
!defined(OPENSSL_SYS_MACINTOSH_CLASSIC)
+#if !defined(_LIBC) && !defined(OPENSSL_SYS_MSDOS) && !defined(OPENSSL_SYS_VMS) &&
+!defined(OPENSSL_SYS_MACINTOSH_CLASSIC) && !defined(OPENSSL_SYS_SUNOS)
# include <sys/ioctl.h>
#endif
@@ -239,6 +239,10 @@
short iosb$w_count;
long iosb$l_info;
};
+#endif
+
+#ifdef OPENSSL_SYS_SUNOS
+ typedef int sig_atomic_t;
#endif
#if defined(OPENSSL_SYS_MACINTOSH_CLASSIC) || defined(MAC_OS_GUSI_SOURCE)