I am having problems building shared libraries on Solaris and Linux. Under
linux, I get the following messages: 

In file included from crypto/crypto.c:520:
crypto/sha/sha_dgst.c:88: warning: `M_c2nl' redefined
crypto/sha/sha1dgst.c:100: warning: this is the location of the previous
definition
crypto/sha/sha_dgst.c:89: warning: `M_p_c2nl' redefined
crypto/sha/sha1dgst.c:101: warning: this is the location of the previous
definition
crypto/sha/sha_dgst.c:90: warning: `M_c2nl_p' redefined
crypto/sha/sha1dgst.c:102: warning: this is the location of the previous
definition
..
In file included from crypto/bn/bn_add.c:61,
                 from crypto/crypto.c:221:
crypto/bn/bn_lcl.h:250: conflicting types for `bn_add_words'
include/bn.h:410: previous declaration of `bn_add_words'
crypto/bn/bn_add.c: In function `BN_uadd':
In file included from crypto/crypto.c:221:
crypto/bn/bn_add.c:139: warning: passing arg 3 of `bn_add_words' makes
integer from pointer without a cast
crypto/bn/bn_add.c:139: too many arguments to function `bn_add_words'
crypto/bn/bn_add.c:139: void value not ignored as it ought to be
crypto/bn/bn_mod.c: At top level:

I get these messages whether or not I am using the assembly version of the
code or not. I have tried using gcc 2.7.2.3, egcs-2.90.29 980515
(egcs-1.0.3 release), and egcs-2.91.66, and have not been able to compile
the crypto library.

Trying to compile crypto.o by itself, when doing this:
/usr/bin/egcs -O2 -DBN_ASM -c -Icrypto -Iinclude crypto/crypto.c

I only get this:
In file included from crypto/crypto.c:228:
crypto/bn/bn_mod.c:65: redefinition of `BN_mod'
crypto/bn/bn_div.c:296: `BN_mod' previously defined here
In file included from crypto/crypto.c:237:
crypto/bn/bn_sub.c:125: redefinition of `BN_sub'
crypto/bn/bn_add.c:268: `BN_sub' previously defined here

Is there a way to fix the compilation? I get almost the exact same error
message from Solaris. Versions tried: openssl-SNAP-19990322-0930,
openssl-0.9.1c (with and without patch). Any help with this would be
greatly appreciated. Thanks in advance.

--
Albert Lai <[EMAIL PROTECTED]>           1018D East Campus
Residential Computer Consultant           411 W. 116th St.
Columbia University                       New York, NY 10027
http://www.columbia.edu/~aml61            (212)853-4854


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to