On Sun, 21 Apr 2002, Lutz Jaenicke wrote: > On Sun, Apr 21, 2002 at 11:40:56AM -0700, Doug Kaufman wrote: > > On Sun, 21 Apr 2002, Corinna Vinschen wrote: > > > > > Oh and, btw., current Cygwin is 1.3.10, 1.3.11 coming soon. Why are > > > you testing with a version which is almost a year old? > > > > It was just what was installed on my machine. I hadn't updated in a > > while. Thanks for the reminder. I am now at 1.3.10. > > Does it work now without your patches?
Actually, no. There are problems with the Cygwin build without the patch. I checked this for 0.9.7 19 April 2002 snapshot using "Configure no-idea no-rc5 Cygwin" and also with "config no-idea no-rc5". Both stop with the same errors. The first problem is that without the patch, the idea.h file is not linked to include/openssl. It is not needed for the compile, since OPENSSL_NO_IDEA is defined, but it is listed in the depends section of the makefile, and stops the compile with an error. The lines from the log files are long. I hope that they are readable via email. I can send as attachments if they don't come through OK. > gcc -I.. -I../.. -I../../include -DOPENSSL_SYSNAME_CYGWIN32 -DOPENSSL_THREADS >-DDSO_WIN32 -DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA -DOPENSSL_NO_RC5 -DTERMIOS -DL_ENDIAN >-fomit-frame-pointer -O3 -m486 -Wall -c -o e_bf.o e_bf.c > make[2]: *** No rule to make target `../../include/openssl/idea.h', needed by >`e_idea.o'. Stop. > make[2]: Leaving directory >`/d/CYGWIN/ssl097-0419/openssl-0.9.7-stable-SNAP-20020419/crypto/evp' > make[1]: *** [subdirs] Error 1 > make[1]: Leaving directory >`/d/CYGWIN/ssl097-0419/openssl-0.9.7-stable-SNAP-20020419/crypto' > make: *** [sub_all] Error 1 This problem can be fixed by running "make depend". After running "make depend", the next error is due to lack of "bn_sub_part_words". This was addressed in my patch for both DJGPP and Cygwin. > if [ "cygwin-shared" = "hpux-shared" ] ; then \ > gcc -o openssl -DMONOLITH -I.. -I../include -DOPENSSL_SYSNAME_CYGWIN32 >-DOPENSSL_THREADS -DDSO_WIN32 -DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA -DOPENSSL_NO_RC5 >-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 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 ../libssl.a > ../libcrypto.a ; \ > else \ > gcc -o openssl -DMONOLITH -I.. -I../include -DOPENSSL_SYSNAME_CYGWIN32 >-DOPENSSL_THREADS -DDSO_WIN32 -DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA -DOPENSSL_NO_RC5 >-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 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' > ../libcrypto.a(bn_mul.o)(.text+0x49d):bn_mul.c: undefined reference to >`bn_sub_part_words' > ../libcrypto.a(bn_mul.o)(.text+0x4c5):bn_mul.c: undefined reference to >`bn_sub_part_words' > ../libcrypto.a(bn_mul.o)(.text+0x4f5):bn_mul.c: undefined reference to >`bn_sub_part_words' > ../libcrypto.a(bn_mul.o)(.text+0x525):bn_mul.c: undefined reference to >`bn_sub_part_words' > ../libcrypto.a(bn_mul.o)(.text+0x55d):bn_mul.c: more undefined references to >`bn_sub_part_words' follow > collect2: ld returned 1 exit status > make[1]: *** [openssl] Error 1 > make[1]: Leaving directory >`/d/CYGWIN/ssl097-0419/openssl-0.9.7-stable-SNAP-20020419/apps' > make: *** [sub_all] Error 1 I don't know what others did to get Cygwin to compile without problems without the patch. I believe Corinna Vinschen was able to compile successfully. I would be interested in learning what caused the different outcomes of our attempts. These latest compiles were done with Cygwin 1.3.10-1, bash 2.05a-3, and binutils 20011002-1. I haven't yet tested 0.9.6d-beta1 without the patch under Cygwin. Doug __ Doug Kaufman Internet: [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]