OK, I'll actually attch the patch this time. :-)

On Sun, 17 Feb 2002, Tim Rice wrote:

>
> Attached is a patch against the OpenSSL_0_9_7-stable branch (Feb 17)
> that fixes the build on UnixWare 2.x
>
> Files changed: Configure, apps/apps.c, and apps/ca.c
>
> I've added -lresolv so it can find strcasecmp().
>
> UnixWare 2.0x does not have strings.h so I changed apps.c and ca.c
> .......
> #  ifdef NO_STRINGS_H
>     int       strcasecmp();
> #  else
> #    include <strings.h>
> #  endif /* NO_STRINGS_H */
> .......
>
>
>

-- 
Tim Rice                                Multitalents    (707) 887-1469
[EMAIL PROTECTED]

--- openssl-0.9.7/Configure.old Sat Feb 16 18:39:31 2002
+++ openssl-0.9.7/Configure     Sun Feb 17 12:09:31 2002
@@ -407,13 +407,13 @@
 "linux-elf-arm","gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer 
-Wall::-D_REENTRANT:::BN_LLONG::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",

 
 # UnixWare 2.0x fails destest with -O
-"unixware-2.0","cc:-DFILIO_H::-Kthread::-lsocket -lnsl -lx:${x86_gcc_des} 
${x86_gcc_opts}:::",
-"unixware-2.0-pentium","cc:-DFILIO_H -Kpentium::-Kthread::-lsocket -lnsl -lx:MD2_CHAR 
RC4_INDEX ${x86_gcc_des}::",
+"unixware-2.0","cc:-DFILIO_H -DNO_STRINGS_H::-Kthread::-lsocket -lnsl -lx 
+-lresolv:${x86_gcc_des} ${x86_gcc_opts}:::",
+"unixware-2.0-pentium","cc:-DFILIO_H -DNO_STRINGS_H -Kpentium::-Kthread::-lsocket 
+-lnsl -lx -lresolv:MD2_CHAR RC4_INDEX ${x86_gcc_des}::",
 
 # UnixWare 2.1
-"unixware-2.1","cc:-O -DFILIO_H::-Kthread::-lsocket -lnsl -lx:${x86_gcc_des} 
${x86_gcc_opts}:::",
-"unixware-2.1-pentium","cc:-O -DFILIO_H -Kpentium::-Kthread::-lsocket -lnsl 
-lx:MD2_CHAR RC4_INDEX ${x86_gcc_des}::",
-"unixware-2.1-p6","cc:-O -DFILIO_H -Kp6::-Kthread::-lsocket -lnsl -lx:MD2_CHAR 
RC4_INDEX ${x86_gcc_des}::",
+"unixware-2.1","cc:-O -DFILIO_H::-Kthread::-lsocket -lnsl -lx -lresolv:${x86_gcc_des} 
+${x86_gcc_opts}:::",
+"unixware-2.1-pentium","cc:-O -DFILIO_H -Kpentium::-Kthread::-lsocket -lnsl -lx 
+-lresolv:MD2_CHAR RC4_INDEX ${x86_gcc_des}::",
+"unixware-2.1-p6","cc:-O -DFILIO_H -Kp6::-Kthread::-lsocket -lnsl -lx 
+-lresolv:MD2_CHAR RC4_INDEX ${x86_gcc_des}::",
 
 # UnixWare 7
 "unixware-7","cc:-O -DFILIO_H -Kalloca::-Kthread::-lsocket -lnsl:BN_LLONG MD2_CHAR 
RC4_INDEX 
${x86_gcc_des}::::::::::dlfcn:svr5-shared:-Kpic::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
--- openssl-0.9.7/apps/apps.c.old       Fri Jan 25 11:43:25 2002
+++ openssl-0.9.7/apps/apps.c   Sun Feb 17 11:26:04 2002
@@ -129,7 +129,11 @@
 #ifdef OPENSSL_SYS_WINDOWS
 #define strcasecmp _stricmp
 #else
-#include <strings.h>
+#  ifdef NO_STRINGS_H
+    int        strcasecmp();
+#  else
+#    include <strings.h>
+#  endif /* NO_STRINGS_H */
 #endif
 
 #ifdef OPENSSL_SYS_WINDOWS
--- openssl-0.9.7/apps/ca.c.old Thu Feb 14 08:23:49 2002
+++ openssl-0.9.7/apps/ca.c     Sun Feb 17 11:24:46 2002
@@ -80,7 +80,11 @@
 #ifdef OPENSSL_SYS_WINDOWS
 #define strcasecmp _stricmp
 #else
-#include <strings.h>
+#  ifdef NO_STRINGS_H
+    int        strcasecmp();
+#  else
+#    include <strings.h>
+#  endif /* NO_STRINGS_H */
 #endif
 
 #ifndef W_OK

Reply via email to