On Thu, Feb 28, 2002 at 09:11:54AM +0100, Joerg Voelker wrote:

> if I try to compile openssl 0.9.7 under win2k with mingw32 I get the
> following error:
> 
> ranlib out/libssl.a
> gcc -o
> tmp/md2test.o -Ioutinc -Itmp -DL_ENDIAN -DDSO_WIN32 -fomit-frame-pointer -O3
>  -m486 -Wall -DBN_ASM -DMD5_ASM -DSHA1_ASM -DOPENSSL_NO_KRB5  -c
> ./crypto/md2 /md2test.c
> gcc -o out/md2test  tmp/md2test.o out/libssl.a
> out/libcrypto.a -lwsock32 -lgdi32
> 
> out/libcrypto.a(bn_mul.o)(.text+0x44b):./crypto/bn/bn_mul.c: undefined
> reference  to `bn_sub_part_words'
> out/libcrypto.a(bn_mul.o)(.text+0x49d):./crypto/bn/bn_mul.c: undefined
> reference  to `bn_sub_part_words'
> out/libcrypto.a(bn_mul.o)(.text+0x4c5):./crypto/bn/bn_mul.c: undefined
> reference  to `bn_sub_part_words'
> out/libcrypto.a(bn_mul.o)(.text+0x4f5):./crypto/bn/bn_mul.c: undefined
> reference  to `bn_sub_part_words'
> out/libcrypto.a(bn_mul.o)(.text+0x525):./crypto/bn/bn_mul.c: undefined
> reference  to `bn_sub_part_words'
> out/libcrypto.a(bn_mul.o)(.text+0x55d):./crypto/bn/bn_mul.c: more undefined
> references to `bn_sub_part_words' follow
> make: *** [out/md2test] Error 1

bn_sub_part_words() is a new function that has been implemented
in Assembler only for x86.  The C implementation in bn_mul.c
is enabled only if the following condition is satisfied:

#if defined(OPENSSL_NO_ASM) || !(defined(__i386) || defined(__i386__))/* Assembler 
implementation exists only for x86 */

On your platform, the assembler implementation should be used.
Isn't bn_sub_part_words() defined in crypto/bn/asm/bn-win32.s?
If it is: Isn't bn-win32.s assembled and linked into the library?
Possibly crypto/bn/bn_asm.c is compiled and linked instead;
this is the C implementation of most of the stuff that exists
in bn-win32.s, with the exception of bn_sub_part_words().


-- 
Bodo Möller <[EMAIL PROTECTED]>
PGP http://www.informatik.tu-darmstadt.de/TI/Mitarbeiter/moeller/0x36d2c658.html
* TU Darmstadt, Theoretische Informatik, Alexanderstr. 10, D-64283 Darmstadt
* Tel. +49-6151-16-6628, Fax +49-6151-16-6036
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to