I found my own answer, so here it is to get it into the archive to help
the next person who comes across it. 

The new type SHA_LONG64 which is defined in sha.h, uses the native
'unsigned long long' in z/OS, and most other platforms probably (NOT
Windows). In the case of the z/OS, the c89 command will support this
type only when the LANGLVL(LONGLONG) or LANGLVL(EXTENDED) is specified. 

Getting the LANGLVL option into the CFLAGS definition can't be done
directly with the Configure command in all of the experiments I tried. I
had to edit the Makefile and add it by hand.  There might be a way, but
it wasn't worth the time to figure it out.  The CFLAGS definition has to
include 'langlvl(longlong)' in the -Wc option, for example: 


CFLAG= -D_LONGMAP -Wc,langlvl\(longlong\) -O -DB_ENDIAN -DCHARSET_EBCDIC
-DNO_SYS_PARAM_H  -D_ALL_SOURCE

The backslashes are needed to escape the parens for make and the shell
that runs the compiler command. Using combinations of quotes, double
backslashes, etc, causes the compilation of cversion.c to be unhappy.
The syntax above made all parties satisfied. 

For What It's Worth! 

Dave McLellan --Consulting Software Engineer - SPEA Engineering
EMC Corporation
228 South St. Mail Stop: 228 LL/AA-24
Hopkinton, MA 01748  USA
+1-508-249-1257 F: +1-508-497-8030  [EMAIL PROTECTED]


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, September 07, 2006 7:45 AM
To: openssl-users@openssl.org
Subject: OpenSSL 0.9.8c compile error building for OS-390-Unix configure
target

Hi all:    0.9.8c is only a few days old.    I'm trying to build it for
the configure target OS390-Unix, and I'm getting the following compile
error for sha_dgst.c 

c89.sh -I.. -I../.. -I../../include -D_LONGMAP -Wc,dll,expo -O
-DB_ENDIAN -DCHARSET_EBCDIC -DNO_SYS_PARAM_H  -D_ALL_SOURCE   -c -o
sha_dgst.o sha_dgst.c
ERROR CCN3115 /u/DAM/openssl/openssl-0.9.8c/crypto/sha/sha.h:173
Duplicate type specifier "long" ignored.
ERROR CCN3115 /u/DAM/openssl/openssl-0.9.8c/crypto/sha/sha.h:174
Duplicate type specifier "long" ignored.
ERROR CCN3115 /u/DAM/openssl/openssl-0.9.8c/crypto/sha/sha.h:176
Duplicate type specifier "long" ignored.
CCN0793(I) Compilation failed for file ./sha_dgst.c.  Object file not
created.

Has anyone built the OS390-Unix version with 0.9.8c yet? 

Thanks.  

Dave McLellan --Consulting Software Engineer - SPEA Engineering
EMC Corporation
228 South St. Mail Stop: 228 LL/AA-24
Hopkinton, MA 01748  USA
+1-508-249-1257 F: +1-508-497-8030  [EMAIL PROTECTED]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to