Hi,
I ported openssl-0.9.5a to my old SONY NEWS-OS 4.2R. It is a 4.3BSD
based system. I'm not sure about setvbuf() trick. Please check it.
NOTE:
gcc-2.7.2 or later and libiberty.a included in some FSF
programs/libraries are necessary. Because of lack of clock().
Here is a diff. Thanks.
diff -ur ../openssl-0.9.5a/Configure ./Configure
--- ../openssl-0.9.5a/Configure Tue Mar 28 06:28:10 2000
+++ ./Configure Mon Aug 21 16:38:16 2000
@@ -373,6 +373,9 @@
##### MacOS X (a.k.a. Rhapsody) setup
"rhapsody-ppc-cc","cc:-O3 -DB_ENDIAN::(unknown)::BN_LLONG RC4_CHAR RC4_CHUNK
DES_UNROLL BF_PTR:::",
+##### Sony NEWS-OS 4.x
+"newsos4-gcc","gcc:-O -DB_ENDIAN -DNEWS4::(unknown):-lmld -liberty:BN_LLONG RC4_CHAR
+RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR::::",
+
);
my @WinTargets=qw(VC-NT VC-WIN32 VC-WIN16 VC-W31-16 VC-W31-32 VC-MSDOS BC-32
diff -ur ../openssl-0.9.5a/config ./config
--- ../openssl-0.9.5a/config Tue Mar 14 08:52:44 2000
+++ ./config Mon Aug 21 13:26:54 2000
@@ -247,6 +247,10 @@
echo "${MACHINE}-v11-${SYSTEM}"; exit 0;
;;
+ NEWS-OS:4.*)
+ echo "mips-sony-newsos4"; exit 0;
+ ;;
+
esac
#
@@ -470,6 +474,7 @@
# these are all covered by the catchall below
# *-aix) OUT="aix-$CC" ;;
# *-dgux) OUT="dgux" ;;
+ mips-sony-newsos4) OUT="newsos4-gcc" ;;
*) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;;
esac
diff -ur ../openssl-0.9.5a/include/openssl/e_os.h ./include/openssl/e_os.h
--- ../openssl-0.9.5a/include/openssl/e_os.h Fri Mar 24 05:31:49 2000
+++ ./include/openssl/e_os.h Mon Aug 21 17:49:19 2000
@@ -282,11 +282,15 @@
# ifndef NO_SYS_TYPES_H
# include <sys/types.h>
# endif
-# ifdef NeXT
+# if defined(NeXT) || defined(NEWS4)
# define pid_t int /* pid_t is missing on NEXTSTEP/OPENSTEP
* (unless when compiling with -D_POSIX_SOURCE,
* which doesn't work for us) */
# define ssize_t int /* ditto */
+# endif
+# ifdef NEWS4 /* setvbuf is missing on mips-sony-bsd */
+# define setvbuf(a, b, c, d) setbuffer((a), (b), (d))
+ typedef unsigned long clock_t;
# endif
# define OPENSSL_CONF "openssl.cnf"
--
NAKAJI Hiroyuki
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]