In message <[EMAIL PROTECTED]> on Sun, 03 Nov 2002 11:41:09 -0800, Keary Phillips <[EMAIL PROTECTED]> said:
kearyp> 5) In {OpenSSL}\ms\bcb.mak find the line like this: ASM=n_o_T_a_s_m kearyp> and change it to this: ASM=nasmw -f obj kearyp> kearyp> VC++ uses a newer object format so it uses "nasmw -f win32" while kearyp> Borland uses the older format. kearyp> kearyp> 6) Find all the lines in ms\bcb.mak with this: $(ASM) /Focrypto\ kearyp> and change the first part so it is like this: $(ASM) -o crypto\ kearyp> kearyp> I didn't hunt down where in the PERL scripts this is broken. The kearyp> VC++ mak doesn't have this. If someone with PERL knowledge kearyp> and CVS access could fix this that would be great. kearyp> kearyp> 7) If you tried making everything now you would get errors like this: kearyp> kearyp> Error E2293 .\crypto\bn\bn_asm.c 741: ) expected in function kearyp> bn_sqr_comba8 kearyp> kearyp> The solution is to search in crypto\bn\bn.h and find the line like kearyp> this: kearyp> #ifdef _MSC_VER kearyp> and change it to this: kearyp> #if defined(_MSC_VER) || defined(__BORLANDC__) kearyp> kearyp> Again. If someone with CVS access could change this that would be kearyp> great. Try the attached patch. -- Richard Levitte \ Spannvägen 38, II \ [EMAIL PROTECTED] Redakteur@Stacken \ S-168 35 BROMMA \ T: +46-8-26 52 47 \ SWEDEN \ or +46-708-26 53 44 Procurator Odiosus Ex Infernis -- [EMAIL PROTECTED] Member of the OpenSSL development team: http://www.openssl.org/ Unsolicited commercial email is subject to an archival fee of $400. See <http://www.stacken.kth.se/~levitte/mail/> for more info.
Index: util/pl/BC-32.pl =================================================================== RCS file: /e/openssl/cvs/openssl/util/pl/BC-32.pl,v retrieving revision 1.9.2.1 diff -u -u -r1.9.2.1 BC-32.pl --- util/pl/BC-32.pl 2002/06/27 15:55:40 1.9.2.1 +++ util/pl/BC-32.pl 2002/11/04 00:37:58 @@ -52,9 +52,9 @@ $shlib_ex_obj=""; $app_ex_obj="c0x32.obj"; -$asm='n_o_T_a_s_m'; +$asm='nasmw'; $asm.=" /Zi" if $debug; -$afile='/Fo'; +$afile='-f obj -o'; $bn_mulw_obj=''; $bn_mulw_src=''; Index: crypto/bn/bn.h =================================================================== RCS file: /e/openssl/cvs/openssl/crypto/bn/bn.h,v retrieving revision 1.41.2.13 diff -u -u -r1.41.2.13 bn.h --- crypto/bn/bn.h 2002/08/14 12:08:44 1.41.2.13 +++ crypto/bn/bn.h 2002/11/04 00:37:58 @@ -155,7 +155,7 @@ #define BN_BYTES 4 #define BN_BITS2 32 #define BN_BITS4 16 -#ifdef _MSC_VER +#if defined(_MSC_VER) || defined(__BORLANDC__) /* VC++ doesn't like the LL suffix */ #define BN_MASK (0xffffffffffffffffL) #else