I'm keeping more careful track this time.  Here's a list of the problems which
occur in building OpenSSL under nextstep:

The -p switch to mkdir is used frequently in the makefiles.  This is not
portable; traditional mkdir doesn't offer any switches at all.  The upshot is
that a -p directory is created in the openssl source directory.  Better not to
rely upon -p, and create the parent directories by hand as necessary.

The nextstep port uses the -O3 switch to gcc.  Support for -O3 didn't appear
until later (and buggier) versions of NeXTstep.  Use -O instead, or have a
separate port.

e_os.h and several other files include <unistd.h>.  This is not portable;
unistd.h is a SysVism that was not in traditional UNIX or traditional BSD.  On
traditional systems, use <libc.h>.  I kludged up a dummy unistd.h that is an
include of libc.h.

des.h and fcrypt.c both prototype crypt(), which conflicts with the system
include file definition (you have const, the system include does not).  The
easiest workaround is to change the
        #if defined(PERL5) || defined(__FreeBSD__)
lines to add NeXT
        #if defined(PERL5) || defined(__FreeBSD__) || defined(NeXT)
There are four places where you need to do this.

s_server.c references unknown symbols _S_IFMT and _S_IFDIR.  I changed it to:
        #ifndef S_ISDIR
        #if defined(VMS) && !defined(__DECC)
        #define S_ISDIR(a)      (((a) & S_IFMT) == S_IFDIR)
        #elif defined(NeXT)
        #define S_ISDIR(a)      (((a) & S_IFMT) == S_IFDIR)
        #else
        #define S_ISDIR(a)      (((a) & _S_IFMT) == _S_IFDIR)
        #endif
        #endif
but I suspect that a more general fix is needed.

Compiler warnings.  All of these seem to be nonsense, but if you're going to
set -Wall then you ought to fix them...

bn_div.c: In function `BN_div':
bn_div.c:214: warning: `t2' may be used uninitialized in this function
bn_div.c:214: warning: `rem' may be used uninitialized in this function

bn_asm.c: In function `bn_mul_add_words':
bn_asm.c:74: warning: `t' may be used uninitialized in this function
bn_asm.c:76: warning: `t' may be used uninitialized in this function
bn_asm.c:78: warning: `t' may be used uninitialized in this function
bn_asm.c:80: warning: `t' may be used uninitialized in this function
bn_asm.c: In function `bn_mul_words':
bn_asm.c:99: warning: `t' may be used uninitialized in this function
bn_asm.c:101: warning: `t' may be used uninitialized in this function
bn_asm.c:103: warning: `t' may be used uninitialized in this function
bn_asm.c:105: warning: `t' may be used uninitialized in this function
bn_asm.c: In function `bn_sqr_words':
bn_asm.c:119: warning: `t' may be used uninitialized in this function
bn_asm.c: In function `bn_mul_comba8':
bn_asm.c:493: warning: `t' may be used uninitialized in this function
bn_asm.c: In function `bn_mul_comba4':
bn_asm.c:602: warning: `t' may be used uninitialized in this function
bn_asm.c: In function `bn_sqr_comba8':
bn_asm.c:647: warning: `t' may be used uninitialized in this function
bn_asm.c:647: warning: `tt' may be used uninitialized in this function
bn_asm.c: In function `bn_sqr_comba4':
bn_asm.c:728: warning: `t' may be used uninitialized in this function
bn_asm.c:728: warning: `tt' may be used uninitialized in this function

b_dump.c: In function `BIO_dump':
b_dump.c:89: warning: unsigned int format, int arg (arg 3)
b_dump.c:96: warning: unsigned int format, int arg (arg 3)
b_dump.c:116: warning: unsigned int format, int arg (arg 3)

b_sock.c: In function `BIO_get_port':
b_sock.c:154: warning: pointer to const given for argument 1 of
`getservbyname'
b_sock.c: In function `BIO_gethostbyname':
b_sock.c:354: warning: pointer to const given for argument 1 of
`gethostbyname'

a_object.c: In function `i2t_ASN1_OBJECT':
a_object.c:209: warning: long int format, long unsigned int arg (arg 4)
a_object.c:222: warning: long int format, long unsigned int arg (arg 3)

t_req.c: In function `X509_REQ_print':
t_req.c:218: warning: unsigned int format, int arg (arg 3)

s3_pkt.c: In function `ssl3_dispatch_alert':
s3_pkt.c:1019: warning: value computed is not used

s23_clnt.c: In function `ssl23_connect':
s23_clnt.c:189: warning: value computed is not used

ssl_lib.c: In function `ssl_init_wbio_buffer':
ssl_lib.c:1688: warning: value computed is not used

ssl_txt.c: In function `SSL_SESSION_print':
ssl_txt.c:112: warning: unsigned int format, int arg (arg 3)
ssl_txt.c:118: warning: unsigned int format, int arg (arg 3)
ssl_txt.c:124: warning: unsigned int format, int arg (arg 3)
ssl_txt.c:135: warning: unsigned int format, int arg (arg 3)

req.c: In function `req_main':
req.c:248: warning: value computed is not used
req.c: In function `add_DN_object':
req.c:982: warning: value computed is not used
req.c: In function `add_attribute_object':
req.c:1040: warning: value computed is not used
req.c: In function `req_cb':
req.c:1123: warning: value computed is not used

dgst.c: In function `dgst_main':
dgst.c:185: warning: value computed is not used
dgst.c: In function `do_fp':
dgst.c:215: warning: unsigned int format, int arg (arg 2)

dh.c: In function `dh_main':
dh.c:262: warning: unsigned int format, int arg (arg 2)
dh.c:271: warning: unsigned int format, int arg (arg 2)

enc.c: In function `enc_main':
enc.c:431: warning: unsigned int format, int arg (arg 2)
enc.c:438: warning: unsigned int format, int arg (arg 2)

gendh.c: In function `dh_cb':
gendh.c:196: warning: value computed is not used

ca.c: In function `ca_main':
ca.c:869: warning: value computed is not used
ca.c:933: warning: unsigned int format, int arg (arg 3)
ca.c:1070: warning: value computed is not used
ca.c: In function `do_body':
ca.c:1794: warning: value computed is not used

dsaparam.c: In function `dsaparam_main':
dsaparam.c:261: warning: unsigned int format, int arg (arg 2)
dsaparam.c:270: warning: unsigned int format, int arg (arg 2)
dsaparam.c:279: warning: unsigned int format, int arg (arg 2)
dsaparam.c: In function `dsa_cb':
dsaparam.c:348: warning: value computed is not used

genrsa.c: In function `genrsa_cb':
genrsa.c:239: warning: value computed is not used

s_server.c: In function `s_server_main':
s_server.c:486: warning: value computed is not used
s_server.c: In function `tmp_rsa_cb':
s_server.c:1249: warning: value computed is not used
s_server.c:1255: warning: value computed is not used

speed.c: In function `speed_main':
speed.c:1135: warning: int format, unsigned int arg (arg 3)
speed.c:1150: warning: int format, unsigned int arg (arg 3)
speed.c: In function `print_message':
speed.c:1175: warning: value computed is not used
speed.c: In function `pkey_print_message':
speed.c:1191: warning: value computed is not used

s_socket.c: In function `host_ip':
s_socket.c:497: warning: int format, unsigned int arg (arg 3)
s_socket.c:497: warning: int format, unsigned int arg (arg 4)
s_socket.c:497: warning: int format, unsigned int arg (arg 5)
s_socket.c:497: warning: int format, unsigned int arg (arg 6)

pkcs12.c: In function `pkcs12_main':
pkcs12.c:296: warning: value computed is not used

openssl.c: In function `main':
openssl.c:222: warning: value computed is not used

ideatest.c: In function `main':
ideatest.c:121: warning: unsigned int format, int arg (arg 2)
ideatest.c:125: warning: unsigned int format, int arg (arg 2)
ideatest.c:137: warning: unsigned int format, int arg (arg 2)
ideatest.c:141: warning: unsigned int format, int arg (arg 2)

md2test.c: In function `pt':
md2test.c:128: warning: unsigned int format, int arg (arg 3)

md5test.c: In function `main':
md5test.c:108: warning: char format, unsigned char arg (arg 2)
md5test.c:109: warning: char format, unsigned char arg (arg 3)
md5test.c: In function `pt':
md5test.c:128: warning: unsigned int format, int arg (arg 3)

hmactest.c: In function `main':
hmactest.c:129: warning: char format, unsigned char arg (arg 3)
hmactest.c: In function `pt':
hmactest.c:145: warning: unsigned int format, int arg (arg 3)

rc2test.c: In function `main':
rc2test.c:156: warning: unsigned int format, int arg (arg 2)
rc2test.c:160: warning: unsigned int format, int arg (arg 2)
rc2test.c:171: warning: unsigned int format, int arg (arg 2)
rc2test.c:175: warning: unsigned int format, int arg (arg 2)

rc4test.c: In function `main':
rc4test.c:132: warning: unsigned int format, int arg (arg 2)
rc4test.c:137: warning: unsigned int format, int arg (arg 2)
rc4test.c:155: warning: unsigned int format, int arg (arg 2)
rc4test.c:160: warning: unsigned int format, int arg (arg 2)
rc4test.c:183: warning: unsigned int format, int arg (arg 2)
rc4test.c:188: warning: unsigned int format, int arg (arg 2)

rc5test.c: In function `main':
rc5test.c:251: warning: unsigned int format, int arg (arg 2)
rc5test.c:255: warning: unsigned int format, int arg (arg 2)
rc5test.c:266: warning: unsigned int format, int arg (arg 2)
rc5test.c:270: warning: unsigned int format, int arg (arg 2)
rc5test.c:293: warning: unsigned int format, int arg (arg 2)
rc5test.c:297: warning: unsigned int format, int arg (arg 2)
rc5test.c:310: warning: unsigned int format, int arg (arg 2)
rc5test.c:314: warning: unsigned int format, int arg (arg 2)

destest.c: In function `main':
destest.c:375: warning: unsigned int format, int arg (arg 2)
destest.c:378: warning: unsigned int format, int arg (arg 2)
destest.c:616: warning: unsigned int format, int arg (arg 2)
destest.c:616: warning: unsigned int format, int arg (arg 3)
destest.c:616: warning: unsigned int format, int arg (arg 4)
destest.c:616: warning: unsigned int format, int arg (arg 5)
destest.c:616: warning: unsigned int format, int arg (arg 6)
destest.c:616: warning: unsigned int format, int arg (arg 7)
destest.c:616: warning: unsigned int format, int arg (arg 8)
destest.c:616: warning: unsigned int format, int arg (arg 9)
destest.c:619: warning: unsigned int format, int arg (arg 2)
destest.c:619: warning: unsigned int format, int arg (arg 3)
destest.c:619: warning: unsigned int format, int arg (arg 4)
destest.c:619: warning: unsigned int format, int arg (arg 5)
destest.c:619: warning: unsigned int format, int arg (arg 6)
destest.c:619: warning: unsigned int format, int arg (arg 7)
destest.c:619: warning: unsigned int format, int arg (arg 8)
destest.c:619: warning: unsigned int format, int arg (arg 9)
destest.c:629: warning: unsigned int format, int arg (arg 2)
destest.c:629: warning: unsigned int format, int arg (arg 3)
destest.c:629: warning: unsigned int format, int arg (arg 4)
destest.c:629: warning: unsigned int format, int arg (arg 5)
destest.c:629: warning: unsigned int format, int arg (arg 6)
destest.c:629: warning: unsigned int format, int arg (arg 7)
destest.c:629: warning: unsigned int format, int arg (arg 8)
destest.c:629: warning: unsigned int format, int arg (arg 9)
destest.c:632: warning: unsigned int format, int arg (arg 2)
destest.c:632: warning: unsigned int format, int arg (arg 3)
destest.c:632: warning: unsigned int format, int arg (arg 4)
destest.c:632: warning: unsigned int format, int arg (arg 5)
destest.c:632: warning: unsigned int format, int arg (arg 6)
destest.c:632: warning: unsigned int format, int arg (arg 7)
destest.c:632: warning: unsigned int format, int arg (arg 8)
destest.c:632: warning: unsigned int format, int arg (arg 9)
destest.c:743: warning: long unsigned int format, long int arg (arg 3)
destest.c:749: warning: long unsigned int format, long int arg (arg 3)
destest.c:755: warning: long unsigned int format, long int arg (arg 3)
destest.c:761: warning: long unsigned int format, long int arg (arg 3)

shatest.c: In function `main':
shatest.c:116: warning: char format, unsigned char arg (arg 2)
shatest.c:117: warning: char format, unsigned char arg (arg 3)
shatest.c: In function `pt':
shatest.c:153: warning: unsigned int format, int arg (arg 3)

sha1test.c: In function `main':
sha1test.c:116: warning: char format, unsigned char arg (arg 2)
sha1test.c:117: warning: char format, unsigned char arg (arg 3)
sha1test.c: In function `pt':
sha1test.c:153: warning: unsigned int format, int arg (arg 3)

mdc2test.c: In function `main':
mdc2test.c:101: warning: unsigned int format, int arg (arg 2)
mdc2test.c:104: warning: unsigned int format, int arg (arg 2)
mdc2test.c:119: warning: unsigned int format, int arg (arg 2)
mdc2test.c:122: warning: unsigned int format, int arg (arg 2)

rmdtest.c: In function `main':
rmdtest.c:110: warning: char format, unsigned char arg (arg 2)
rmdtest.c:111: warning: char format, unsigned char arg (arg 3)
rmdtest.c: In function `pt':
rmdtest.c:130: warning: unsigned int format, int arg (arg 3)

randtest.c: In function `main':
randtest.c:120: warning: long int format, long unsigned int arg (arg 2)
randtest.c:154: warning: long int format, long unsigned int arg (arg 4)
randtest.c:160: warning: long int format, long unsigned int arg (arg 4)
randtest.c:166: warning: long int format, long unsigned int arg (arg 4)
randtest.c:172: warning: long int format, long unsigned int arg (arg 4)
randtest.c:178: warning: long int format, long unsigned int arg (arg 4)
randtest.c:184: warning: long int format, long unsigned int arg (arg 4)
randtest.c:194: warning: long int format, long unsigned int arg (arg 4)
randtest.c:200: warning: long int format, long unsigned int arg (arg 4)

dhtest.c: In function `main':
dhtest.c:144: warning: unsigned int format, int arg (arg 3)
dhtest.c:156: warning: unsigned int format, int arg (arg 3)
dhtest.c: In function `cb':
dhtest.c:183: warning: value computed is not used

bftest.c: In function `print_test_data':
bftest.c:287: warning: unsigned int format, int arg (arg 2)
bftest.c:290: warning: unsigned int format, int arg (arg 2)
bftest.c:293: warning: unsigned int format, int arg (arg 2)
bftest.c:300: warning: unsigned int format, int arg (arg 2)
bftest.c:306: warning: unsigned int format, int arg (arg 2)
bftest.c:307: warning: int format, unsigned int arg (arg 2)
bftest.c:309: warning: unsigned int format, int arg (arg 2)
bftest.c:316: warning: unsigned int format, int arg (arg 2)
bftest.c:319: warning: unsigned int format, int arg (arg 2)
bftest.c:323: warning: unsigned int format, int arg (arg 2)
bftest.c:328: warning: unsigned int format, int arg (arg 2)
bftest.c:334: warning: unsigned int format, int arg (arg 2)
bftest.c:340: warning: unsigned int format, int arg (arg 2)
bftest.c: In function `test':
bftest.c:404: warning: unsigned int format, int arg (arg 2)
bftest.c:408: warning: unsigned int format, int arg (arg 2)
bftest.c:419: warning: unsigned int format, int arg (arg 2)
bftest.c:423: warning: unsigned int format, int arg (arg 2)
bftest.c:454: warning: unsigned int format, int arg (arg 2)
bftest.c:480: warning: unsigned int format, int arg (arg 2)
bftest.c:508: warning: unsigned int format, int arg (arg 2)

casttest.c: In function `main':
casttest.c:150: warning: unsigned int format, int arg (arg 2)
casttest.c:154: warning: unsigned int format, int arg (arg 2)
casttest.c:165: warning: unsigned int format, int arg (arg 2)
casttest.c:169: warning: unsigned int format, int arg (arg 2)
casttest.c:211: warning: unsigned int format, int arg (arg 2)
casttest.c:213: warning: unsigned int format, int arg (arg 2)
casttest.c:217: warning: unsigned int format, int arg (arg 2)
casttest.c:219: warning: unsigned int format, int arg (arg 2)

ssltest.c: In function `tmp_rsa_cb':
ssltest.c:734: warning: value computed is not used
ssltest.c:737: warning: value computed is not used
ssltest.c: At top level:
ssltest.c:101: warning: `s_nbio' defined but not used

dsatest.c: In function `dsa_cb':
dsatest.c:209: warning: value computed is not used
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to