On Mon, Apr 22, 2002 at 10:11:08AM +0200, Corinna Vinschen wrote: > gcc -o openssl -DMONOLITH -I.. -I../include -DOPENSSL_SYSNAME_CYGWIN32 >-DOPENSSL_THREADS -DDSO_WIN32 -DOPENSSL_NO_KRB5 -DTERMIOS -DL_ENDIAN >-fomit-frame-pointer -O3 -m486 -Wall openssl.o verify.o asn1pars.o req.o dgst.o dh.o >dhparam.o enc.o passwd.o gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o rsa.o rsautl.o >dsa.o dsaparam.o ecdsa.o ecdsaparam.o x509.o genrsa.o gendsa.o s_server.o s_client.o >speed.o s_time.o apps.o s_cb.o s_socket.o app_rand.o version.o sess_id.o ciphers.o >nseq.o pkcs12.o pkcs8.o spkac.o smime.o rand.o engine.o ocsp.o -L.. -lssl -L.. >-lcrypto ; \ > fi > ../libcrypto.a(bn_mul.o)(.text+0x44b):bn_mul.c: undefined reference to >`bn_sub_part_words' > [...] > > so it's pretty generic.
The problem is line 61 in crypto/bn/bn_mul.c: #if defined(OPENSSL_NO_ASM) || !(defined(__i386) || defined(__i386__))/* ... This is used to decide if `bn_sub_part_words' should be defined or not. Unfortunately this function doesn't exist in Cygwin but the __i386 and __i386__ defines are set by gcc's config file. Two questions: - Why is the above `#if' used for bn_sub_part_words() but not for bn_add_part_words()? - Should Cygwin always be build with "no-asm", perhaps? Or would it make more sense to redefine the above `#if'? Corinna -- Corinna Vinschen Cygwin Developer Red Hat, Inc. mailto:[EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]