Hello, i have tryed to compile openssl but it stops with the error:
gcc -o out\md2test tmp\md2test.o out\libssl.a out\libcrypto.a -lwsock32 -lgdi32 out\libcrypto.a(cryptlib.o)(.text+0x2b9):cryptlib.c: undefined reference to `OPENSSL_ia32_cpuid' ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [hidden email] Automated List Manager [hidden email] |
I too was unable to compile using MinGW 3.1 but was able to
sucessfully compile using the latest cygwin via the INSTALL.W32 directions. ./Configure mingw make On 7/6/05, Frank Buttner <[hidden email]> wrote: > Hello, i have tryed to compile openssl but it stops with the error: > gcc -o out\md2test tmp\md2test.o out\libssl.a out\libcrypto.a -lwsock32 > -lgdi32 > out\libcrypto.a(cryptlib.o)(.text+0x2b9):cryptlib.c: undefined reference to > `OPENSSL_ia32_cpuid' > > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List [hidden email] > Automated List Manager [hidden email] > OpenSSL Project http://www.openssl.org User Support Mailing List [hidden email] Automated List Manager [hidden email] |
This is Windows there will ./Configure not work
-----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Jim Mosier Sent: Wednesday, July 06, 2005 3:14 PM To: [hidden email] Subject: Re: openssl-0.9.8 will not compile on MinGW I too was unable to compile using MinGW 3.1 but was able to sucessfully compile using the latest cygwin via the INSTALL.W32 directions. ./Configure mingw make ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [hidden email] Automated List Manager [hidden email] |
In reply to this post by Frank Büttner-2
But i use mingw and not cygwin.
And on mingw it will not work. Only perl Configure mingw will work. But make will fail. At make I only get messages about the contes of my disk. -----Original Message----- From: Jim Mosier [mailto:[hidden email]] Sent: Wednesday, July 06, 2005 4:42 PM To: [hidden email] Subject: Re: openssl-0.9.8 will not compile on MinGW I am on windows too. I installed cygwin then built openssl.exe as instructions below. On 7/6/05, Frank Buttner <[hidden email]> wrote: > This is Windows there will ./Configure not work > > -----Original Message----- > From: [hidden email] > [mailto:[hidden email]] On Behalf Of Jim Mosier > Sent: Wednesday, July 06, 2005 3:14 PM > To: [hidden email] > Subject: Re: openssl-0.9.8 will not compile on MinGW > > I too was unable to compile using MinGW 3.1 but was able to > sucessfully compile using the latest cygwin via the INSTALL.W32 > > ./Configure mingw > make > > > > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List [hidden email] > Automated List Manager [hidden email] > ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [hidden email] Automated List Manager [hidden email] |
In reply to this post by Frank Büttner-2
What data do you need. Can I send you the full output of the compiling
process? -----Original Message----- From: Richard Levitte - VMS Whacker [mailto:[hidden email]] Sent: Wednesday, July 06, 2005 6:47 PM To: [hidden email] Subject: Re: openssl-0.9.8 will not compile on MinGW In message <[hidden email]> on Wed, 6 Jul 2005 14:40:51 +0200, "Frank Buttner" <[hidden email]> said: frank-buettner> Hello, i have tryed to compile openssl but it stops with the error: frank-buettner> gcc -o out\md2test tmp\md2test.o out\libssl.a frank-buettner> out\libcrypto.a -lwsock32 frank-buettner> -lgdi32 frank-buettner> out\libcrypto.a(cryptlib.o)(.text+0x2b9):cryptlib.c: frank-buettner> undefined reference to `OPENSSL_ia32_cpuid' Please send me a complete log. I've a few guesses, but no clue which one applies to you. Cheers, Richard ----- Please consider sponsoring my work on free software. See http://www.free.lp.se/sponsoring.html for details. -- Richard Levitte [hidden email] http://richard.levitte.org/ "When I became a man I put away childish things, including the fear of childishness and the desire to be very grown up." -- C.S. Lewis ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [hidden email] Automated List Manager [hidden email] |
In message <[hidden email]> on Wed, 6 Jul 2005 18:53:43 +0200, "Frank Buttner" <[hidden email]> said:
frank-buettner> What data do you need. Can I send you the full output frank-buettner> of the compiling process? Configuration and compilation, yes please. Cheers, Richard ----- Please consider sponsoring my work on free software. See http://www.free.lp.se/sponsoring.html for details. -- Richard Levitte [hidden email] http://richard.levitte.org/ "When I became a man I put away childish things, including the fear of childishness and the desire to be very grown up." -- C.S. Lewis ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [hidden email] Automated List Manager [hidden email] |
So here the output:
C:\c++\OpenSSL\openssl-0.9.8>ms\mingw32 C:\c++\OpenSSL\openssl-0.9.8>perl Configure mingw Configuring for mingw no-gmp [default] OPENSSL_NO_GMP (skip dir) no-krb5 [krb5-flavor not specified] OPENSSL_NO_KRB5 no-mdc2 [default] OPENSSL_NO_MDC2 (skip dir) no-rc5 [default] OPENSSL_NO_RC5 (skip dir) no-shared [default] no-zlib [default] no-zlib-dynamic [default] IsMK1MF=1 CC =gcc CFLAG =-DOPENSSL_THREADS -DDSO_WIN32 -mno-cygwin -DL_ENDIAN -fomit-frame-pointer -O3 -march=i486 -Wall -D_WIN32_WINNT=0x333 -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM EX_LIBS =-lwsock32 -lgdi32 CPUID_OBJ =x86cpuid-cof.o BN_ASM =bn86-cof.o co86-cof.o DES_ENC =dx86-cof.o yx86-cof.o AES_ASM_OBJ =ax86-cof.o BF_ENC =bx86-cof.o CAST_ENC =cx86-cof.o RC4_ENC =rx86-cof.o RC5_ENC =r586-cof.o MD5_OBJ_ASM =mx86-cof.o SHA1_OBJ_ASM =sx86-cof.o s512sse2-cof.o RMD160_OBJ_ASM=rm86-cof.o PROCESSOR = RANLIB =true ARFLAGS = PERL =perl THIRTY_TWO_BIT mode DES_PTR used DES_RISC1 used DES_UNROLL used BN_LLONG mode RC4_INDEX mode RC4_CHUNK is undefined Configured for mingw. Generating x86 for GNU assember Bignum DES crypt Blowfish CAST5 RC4 MD5 SHA1 RIPEMD160 RC5\32 Generating makefile Generating DLL definition files Building the libraries Building OpenSSL copy .\crypto\buildinf.h tmp\buildinf.h 1 Datei(en) kopiert. copy .\crypto\opensslconf.h outinc\openssl\opensslconf.h 1 Datei(en) kopiert. as -o tmp\m5-win32.o .\crypto\md5\asm\m5-win32.s as -o tmp\s1-win32.o .\crypto\sha\asm\s1-win32.s as -o tmp\rm-win32.o .\crypto\ripemd\asm\rm-win32.s as -o tmp\d-win32.o .\crypto\des\asm\d-win32.s as -o tmp\y-win32.o .\crypto\des\asm\y-win32.s as -o tmp\r4-win32.o .\crypto\rc4\asm\r4-win32.s as -o tmp\b-win32.o .\crypto\bf\asm\b-win32.s as -o tmp\bn-win32.o .\crypto\bn\asm\bn-win32.s as -o tmp\co-win32.o .\crypto\bn\asm\co-win32.s if exist out\libcrypto.a del out\libcrypto.a ar r out\libcrypto.a tmp\cryptlib.o tmp\mem.o tmp\mem_clr.o tmp\mem_dbg.o tmp\cversion.o tmp\ex_data.o tmp\tmdiff.o tmp\cpt_err.o tmp\ebcdic.o tmp\uid.o tmp\o_time.o tmp\o_str.o tm p\o_dir.o tmp\md2_dgst.o tmp\md2_one.o tmp\md4_dgst.o tmp\md4_one.o tmp\md5_dgst.o tmp\m5-win32.o tmp\md5_one.o tmp\sha_dgst.o tmp\sha1dgst.o tmp\s1-win32.o tmp\sha_one.o tmp\sha1_ one.o tmp\sha256.o tmp\sha512.o tmp\hmac.o tmp\rmd_dgst.o tmp\rm-win32.o tmp\rmd_one.o tmp\set_key.o tmp\ecb_enc.o tmp\cbc_enc.o tmp\ecb3_enc.o tmp\cfb64enc.o tmp\cfb64ede.o tmp\cf b_enc.o tmp\ofb64ede.o tmp\enc_read.o tmp\enc_writ.o tmp\ofb64enc.o tmp\ofb_enc.o tmp\str2key.o tmp\pcbc_enc.o tmp\qud_cksm.o tmp\rand_key.o tmp\d-win32.o tmp\y-win32.o tmp\fcrypt. o tmp\xcbc_enc.o tmp\rpc_enc.o tmp\cbc_cksm.o tmp\ede_cbcm_enc.o tmp\des_old.o tmp\des_old2.o tmp\read2pwd.o tmp\rc2_ecb.o tmp\rc2_skey.o tmp\rc2_cbc.o tmp\rc2cfb64.o tmp\rc2ofb64. o tmp\rc4_skey.o tmp\r4-win32.o tmp\i_cbc.o tmp\i_cfb64.o tmp\i_ofb64.o tmp\i_ecb.o tmp\i_skey.o tmp\bf_skey.o tmp\bf_ecb.o tmp\b-win32.o tmp\bf_cfb64.o tmp\bf_ofb64.o tmp\c_skey.o tmp\c_ecb.o tmp\c_enc.o tmp\c_cfb64.o tmp\c_ofb64.o tmp\aes_misc.o tmp\aes_ecb.o tmp\aes_cfb.o tmp\aes_ofb.o tmp\aes_ctr.o tmp\aes_core.o tmp\aes_cbc.o tmp\bn_add.o tmp\bn_div.o t mp\bn_exp.o tmp\bn_lib.o tmp\bn_ctx.o tmp\bn_mul.o tmp\bn_mod.o tmp\bn_print.o tmp\bn_rand.o tmp\bn_shift.o tmp\bn_word.o tmp\bn_blind.o tmp\bn_kron.o tmp\bn_sqrt.o tmp\bn_gcd.o tm p\bn_prime.o tmp\bn_err.o tmp\bn_sqr.o tmp\bn-win32.o tmp\bn_recp.o tmp\bn_mont.o tmp\bn_mpi.o tmp\bn_exp2.o tmp\bn_gf2m.o tmp\bn_nist.o tmp\bn_depr.o tmp\rsa_eay.o tmp\rsa_gen.o t mp\rsa_lib.o tmp\rsa_sign.o tmp\rsa_saos.o tmp\rsa_err.o tmp\rsa_pk1.o tmp\rsa_ssl.o tmp\rsa_none.o tmp\rsa_oaep.o tmp\rsa_chk.o tmp\rsa_null.o tmp\rsa_pss.o tmp\rsa_x931.o tmp\rsa _asn1.o tmp\rsa_depr.o tmp\dsa_gen.o tmp\dsa_key.o tmp\dsa_lib.o tmp\dsa_asn1.o tmp\dsa_vrf.o tmp\dsa_sign.o tmp\dsa_err.o tmp\dsa_ossl.o tmp\dsa_depr.o tmp\dso_dl.o tmp\dso_dlfcn. o tmp\dso_err.o tmp\dso_lib.o tmp\dso_null.o tmp\dso_openssl.o tmp\dso_win32.o tmp\dso_vms.o tmp\dh_asn1.o tmp\dh_gen.o tmp\dh_key.o tmp\dh_lib.o tmp\dh_check.o tmp\dh_err.o tmp\dh _depr.o tmp\ec_lib.o tmp\ecp_smpl.o tmp\ecp_mont.o tmp\ecp_nist.o tmp\ec_cvt.o tmp\ec_mult.o tmp\ec_err.o tmp\ec_curve.o tmp\ec_check.o tmp\ec_print.o tmp\ec_asn1.o tmp\ec_key.o tm p\ec2_smpl.o tmp\ec2_mult.o tmp\ech_lib.o tmp\ech_ossl.o tmp\ech_key.o tmp\ech_err.o tmp\ecs_lib.o tmp\ecs_asn1.o tmp\ecs_ossl.o tmp\ecs_sign.o tmp\ecs_vrf.o tmp\ecs_err.o tmp\buff er.o tmp\buf_err.o tmp\bio_lib.o tmp\bio_cb.o tmp\bio_err.o tmp\bss_mem.o tmp\bss_null.o tmp\bss_fd.o tmp\bss_file.o tmp\bss_sock.o tmp\bss_conn.o tmp\bf_null.o tmp\bf_buff.o tmp\b _print.o tmp\b_dump.o tmp\b_sock.o tmp\bss_acpt.o tmp\bf_nbio.o tmp\bss_log.o tmp\bss_bio.o tmp\bss_dgram.o tmp\stack.o tmp\lhash.o tmp\lh_stats.o tmp\md_rand.o tmp\randfile.o tmp\ rand_lib.o tmp\rand_err.o tmp\rand_egd.o tmp\rand_win.o tmp\rand_unix.o tmp\rand_os2.o tmp\rand_nw.o tmp\err.o tmp\err_all.o tmp\err_prn.o tmp\o_names.o tmp\obj_dat.o tmp\obj_lib.o tmp\obj_err.o tmp\encode.o tmp\digest.o tmp\evp_enc.o tmp\evp_key.o tmp\evp_acnf.o tmp\e_des.o tmp\e_bf.o tmp\e_idea.o tmp\e_des3.o tmp\e_rc4.o tmp\e_aes.o tmp\names.o tmp\e_xcbc_ d.o tmp\e_rc2.o tmp\e_cast.o tmp\e_rc5.o tmp\m_null.o tmp\m_md2.o tmp\m_md4.o tmp\m_md5.o tmp\m_sha.o tmp\m_sha1.o tmp\m_dss.o tmp\m_dss1.o tmp\m_ripemd.o tmp\m_ecdsa.o tmp\p_open. o tmp\p_seal.o tmp\p_sign.o tmp\p_verify.o tmp\p_lib.o tmp\p_enc.o tmp\p_dec.o tmp\bio_md.o tmp\bio_b64.o tmp\bio_enc.o tmp\evp_err.o tmp\e_null.o tmp\c_all.o tmp\c_allc.o tmp\c_al ld.o tmp\evp_lib.o tmp\bio_ok.o tmp\evp_pkey.o tmp\evp_pbe.o tmp\p5_crpt.o tmp\p5_crpt2.o tmp\e_old.o tmp\a_object.o tmp\a_bitstr.o tmp\a_utctm.o tmp\a_gentm.o tmp\a_time.o tmp\a_i nt.o tmp\a_octet.o tmp\a_print.o tmp\a_type.o tmp\a_set.o tmp\a_dup.o tmp\a_d2i_fp.o tmp\a_i2d_fp.o tmp\a_enum.o tmp\a_utf8.o tmp\a_sign.o tmp\a_digest.o tmp\a_verify.o tmp\a_mbstr .o tmp\a_strex.o tmp\x_algor.o tmp\x_val.o tmp\x_pubkey.o tmp\x_sig.o tmp\x_req.o tmp\x_attrib.o tmp\x_bignum.o tmp\x_long.o tmp\x_name.o tmp\x_x509.o tmp\x_x509a.o tmp\x_crl.o tmp \x_info.o tmp\x_spki.o tmp\nsseq.o tmp\d2i_pu.o tmp\d2i_pr.o tmp\i2d_pu.o tmp\i2d_pr.o tmp\t_req.o tmp\t_x509.o tmp\t_x509a.o tmp\t_crl.o tmp\t_pkey.o tmp\t_spki.o tmp\t_bitst.o tm p\tasn_new.o tmp\tasn_fre.o tmp\tasn_enc.o tmp\tasn_dec.o tmp\tasn_utl.o tmp\tasn_typ.o tmp\f_int.o tmp\f_string.o tmp\n_pkey.o tmp\f_enum.o tmp\a_hdr.o tmp\x_pkey.o tmp\a_bool.o t mp\x_exten.o tmp\asn1_gen.o tmp\asn1_par.o tmp\asn1_lib.o tmp\asn1_err.o tmp\a_meth.o tmp\a_bytes.o tmp\a_strnid.o tmp\evp_asn1.o tmp\asn_pack.o tmp\p5_pbe.o tmp\p5_pbev2.o tmp\p8_ pkey.o tmp\asn_moid.o tmp\pem_sign.o tmp\pem_seal.o tmp\pem_info.o tmp\pem_lib.o tmp\pem_all.o tmp\pem_err.o tmp\pem_x509.o tmp\pem_xaux.o tmp\pem_oth.o tmp\pem_pk8.o tmp\pem_pkey. o tmp\x509_def.o tmp\x509_d2.o tmp\x509_r2x.o tmp\x509_cmp.o tmp\x509_obj.o tmp\x509_req.o tmp\x509spki.o tmp\x509_vfy.o tmp\x509_set.o tmp\x509cset.o tmp\x509rset.o tmp\x509_err.o tmp\x509name.o tmp\x509_v3.o tmp\x509_ext.o tmp\x509_att.o tmp\x509type.o tmp\x509_lu.o tmp\x_all.o tmp\x509_txt.o tmp\x509_trs.o tmp\by_file.o tmp\by_dir.o tmp\x509_vpm.o tmp\v3_ bcons.o tmp\v3_bitst.o tmp\v3_conf.o tmp\v3_extku.o tmp\v3_ia5.o tmp\v3_lib.o tmp\v3_prn.o tmp\v3_utl.o tmp\v3err.o tmp\v3_genn.o tmp\v3_alt.o tmp\v3_skey.o tmp\v3_akey.o tmp\v3_pk u.o tmp\v3_int.o tmp\v3_enum.o tmp\v3_sxnet.o tmp\v3_cpols.o tmp\v3_crld.o tmp\v3_purp.o tmp\v3_info.o tmp\v3_ocsp.o tmp\v3_akeya.o tmp\v3_pmaps.o tmp\v3_pcons.o tmp\v3_ncons.o tmp \v3_pcia.o tmp\v3_pci.o tmp\pcy_cache.o tmp\pcy_node.o tmp\pcy_data.o tmp\pcy_map.o tmp\pcy_tree.o tmp\pcy_lib.o tmp\conf_err.o tmp\conf_lib.o tmp\conf_api.o tmp\conf_def.o tmp\con f_mod.o tmp\conf_mall.o tmp\conf_sap.o tmp\txt_db.o tmp\pk7_asn1.o tmp\pk7_lib.o tmp\pkcs7err.o tmp\pk7_doit.o tmp\pk7_smime.o tmp\pk7_attr.o tmp\pk7_mime.o tmp\p12_add.o tmp\p12_a sn.o tmp\p12_attr.o tmp\p12_crpt.o tmp\p12_crt.o tmp\p12_decr.o tmp\p12_init.o tmp\p12_key.o tmp\p12_kiss.o tmp\p12_mutl.o tmp\p12_utl.o tmp\p12_npas.o tmp\pk12err.o tmp\p12_p8d.o tmp\p12_p8e.o tmp\comp_lib.o tmp\comp_err.o tmp\c_rle.o tmp\c_zlib.o tmp\eng_err.o tmp\eng_lib.o tmp\eng_list.o tmp\eng_init.o tmp\eng_ctrl.o tmp\eng_table.o tmp\eng_pkey.o tmp\eng _fat.o tmp\eng_all.o tmp\tb_rsa.o tmp\tb_dsa.o tmp\tb_ecdsa.o tmp\tb_dh.o tmp\tb_ecdh.o tmp\tb_rand.o tmp\tb_store.o tmp\tb_cipher.o tmp\tb_digest.o tmp\eng_openssl.o tmp\eng_cnf.o tmp\eng_dyn.o tmp\eng_cryptodev.o tmp\eng_padlock.o tmp\ocsp_asn.o tmp\ocsp_ext.o tmp\ocsp_ht.o tmp\ocsp_lib.o tmp\ocsp_cl.o tmp\ocsp_srv.o tmp\ocsp_prn.o tmp\ocsp_vfy.o tmp\ocsp_ err.o tmp\ui_err.o tmp\ui_lib.o tmp\ui_openssl.o tmp\ui_util.o tmp\ui_compat.o tmp\krb5_asn.o tmp\str_err.o tmp\str_lib.o tmp\str_meth.o tmp\str_mem.o tmp\pqueue.o tmp\e_4758cca.o tmp\e_aep.o tmp\e_atalla.o tmp\e_cswift.o tmp\e_gmp.o tmp\e_chil.o tmp\e_nuron.o tmp\e_sureware.o tmp\e_ubsec.o tmp\co-win32.o ar: creating out\libcrypto.a ranlib out\libcrypto.a gcc -o out\md2test tmp\md2test.o out\libssl.a out\libcrypto.a -lwsock32 -lgdi32 out\libcrypto.a(cryptlib.o)(.text+0x2b9):cryptlib.c: undefined reference to `OPENSSL_ia32_cpuid' collect2: ld returned 1 exit status mingw32-make: *** [out\md2test] Error 1 C:\c++\OpenSSL\openssl-0.9.8> ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [hidden email] Automated List Manager [hidden email] |
I am not sure what I did different, but my environment is:
WindowsXP Pro MinGW 3.1.0 ActiveState Perl 5.8.7 "ms\mingw32 no-asm" complies cleanly and produces the DLL files. On 7/6/05, Frank Buttner <[hidden email]> wrote: > So here the output: > > C:\c++\OpenSSL\openssl-0.9.8>ms\mingw32 > > C:\c++\OpenSSL\openssl-0.9.8>perl Configure mingw > Configuring for mingw > no-gmp [default] OPENSSL_NO_GMP (skip dir) > no-krb5 [krb5-flavor not specified] OPENSSL_NO_KRB5 > no-mdc2 [default] OPENSSL_NO_MDC2 (skip dir) > no-rc5 [default] OPENSSL_NO_RC5 (skip dir) > no-shared [default] > no-zlib [default] > no-zlib-dynamic [default] > IsMK1MF=1 > CC =gcc > CFLAG =-DOPENSSL_THREADS -DDSO_WIN32 -mno-cygwin -DL_ENDIAN > -fomit-frame-pointer -O3 -march=i486 -Wall -D_WIN32_WINNT=0x333 > -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 > -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM > EX_LIBS =-lwsock32 -lgdi32 > CPUID_OBJ =x86cpuid-cof.o > BN_ASM =bn86-cof.o co86-cof.o > DES_ENC =dx86-cof.o yx86-cof.o > AES_ASM_OBJ =ax86-cof.o > BF_ENC =bx86-cof.o > CAST_ENC =cx86-cof.o > RC4_ENC =rx86-cof.o > RC5_ENC =r586-cof.o > MD5_OBJ_ASM =mx86-cof.o > SHA1_OBJ_ASM =sx86-cof.o s512sse2-cof.o > RMD160_OBJ_ASM=rm86-cof.o > PROCESSOR = > RANLIB =true > ARFLAGS = > PERL =perl > THIRTY_TWO_BIT mode > DES_PTR used > DES_RISC1 used > DES_UNROLL used > BN_LLONG mode > RC4_INDEX mode > RC4_CHUNK is undefined > > Configured for mingw. > Generating x86 for GNU assember > Bignum > DES > crypt > Blowfish > CAST5 > RC4 > MD5 > SHA1 > RIPEMD160 > RC5\32 > Generating makefile > Generating DLL definition files > Building the libraries > Building OpenSSL > copy .\crypto\buildinf.h tmp\buildinf.h > 1 Datei(en) kopiert. > copy .\crypto\opensslconf.h outinc\openssl\opensslconf.h > 1 Datei(en) kopiert. > as -o tmp\m5-win32.o .\crypto\md5\asm\m5-win32.s > as -o tmp\s1-win32.o .\crypto\sha\asm\s1-win32.s > as -o tmp\rm-win32.o .\crypto\ripemd\asm\rm-win32.s > as -o tmp\d-win32.o .\crypto\des\asm\d-win32.s > as -o tmp\y-win32.o .\crypto\des\asm\y-win32.s > as -o tmp\r4-win32.o .\crypto\rc4\asm\r4-win32.s > as -o tmp\b-win32.o .\crypto\bf\asm\b-win32.s > as -o tmp\bn-win32.o .\crypto\bn\asm\bn-win32.s > as -o tmp\co-win32.o .\crypto\bn\asm\co-win32.s > if exist out\libcrypto.a del out\libcrypto.a > ar r out\libcrypto.a tmp\cryptlib.o tmp\mem.o tmp\mem_clr.o tmp\mem_dbg.o > tmp\cversion.o tmp\ex_data.o tmp\tmdiff.o tmp\cpt_err.o tmp\ebcdic.o > tmp\uid.o tmp\o_time.o tmp\o_str.o tm > p\o_dir.o tmp\md2_dgst.o tmp\md2_one.o tmp\md4_dgst.o tmp\md4_one.o > tmp\md5_dgst.o tmp\m5-win32.o tmp\md5_one.o tmp\sha_dgst.o tmp\sha1dgst.o > tmp\s1-win32.o tmp\sha_one.o tmp\sha1_ > one.o tmp\sha256.o tmp\sha512.o tmp\hmac.o tmp\rmd_dgst.o tmp\rm-win32.o > tmp\rmd_one.o tmp\set_key.o tmp\ecb_enc.o tmp\cbc_enc.o tmp\ecb3_enc.o > tmp\cfb64enc.o tmp\cfb64ede.o tmp\cf > b_enc.o tmp\ofb64ede.o tmp\enc_read.o tmp\enc_writ.o tmp\ofb64enc.o > tmp\ofb_enc.o tmp\str2key.o tmp\pcbc_enc.o tmp\qud_cksm.o tmp\rand_key.o > tmp\d-win32.o tmp\y-win32.o tmp\fcrypt. > o tmp\xcbc_enc.o tmp\rpc_enc.o tmp\cbc_cksm.o tmp\ede_cbcm_enc.o > tmp\des_old.o tmp\des_old2.o tmp\read2pwd.o tmp\rc2_ecb.o tmp\rc2_skey.o > tmp\rc2_cbc.o tmp\rc2cfb64.o tmp\rc2ofb64. > o tmp\rc4_skey.o tmp\r4-win32.o tmp\i_cbc.o tmp\i_cfb64.o tmp\i_ofb64.o > tmp\i_ecb.o tmp\i_skey.o tmp\bf_skey.o tmp\bf_ecb.o tmp\b-win32.o > tmp\bf_cfb64.o tmp\bf_ofb64.o tmp\c_skey.o > tmp\c_ecb.o tmp\c_enc.o tmp\c_cfb64.o tmp\c_ofb64.o tmp\aes_misc.o > tmp\aes_ecb.o tmp\aes_cfb.o tmp\aes_ofb.o tmp\aes_ctr.o tmp\aes_core.o > tmp\aes_cbc.o tmp\bn_add.o tmp\bn_div.o t > mp\bn_exp.o tmp\bn_lib.o tmp\bn_ctx.o tmp\bn_mul.o tmp\bn_mod.o > tmp\bn_print.o tmp\bn_rand.o tmp\bn_shift.o tmp\bn_word.o tmp\bn_blind.o > tmp\bn_kron.o tmp\bn_sqrt.o tmp\bn_gcd.o tm > p\bn_prime.o tmp\bn_err.o tmp\bn_sqr.o tmp\bn-win32.o tmp\bn_recp.o > tmp\bn_mont.o tmp\bn_mpi.o tmp\bn_exp2.o tmp\bn_gf2m.o tmp\bn_nist.o > tmp\bn_depr.o tmp\rsa_eay.o tmp\rsa_gen.o t > mp\rsa_lib.o tmp\rsa_sign.o tmp\rsa_saos.o tmp\rsa_err.o tmp\rsa_pk1.o > tmp\rsa_ssl.o tmp\rsa_none.o tmp\rsa_oaep.o tmp\rsa_chk.o tmp\rsa_null.o > tmp\rsa_pss.o tmp\rsa_x931.o tmp\rsa > _asn1.o tmp\rsa_depr.o tmp\dsa_gen.o tmp\dsa_key.o tmp\dsa_lib.o > tmp\dsa_asn1.o tmp\dsa_vrf.o tmp\dsa_sign.o tmp\dsa_err.o tmp\dsa_ossl.o > tmp\dsa_depr.o tmp\dso_dl.o tmp\dso_dlfcn. > o tmp\dso_err.o tmp\dso_lib.o tmp\dso_null.o tmp\dso_openssl.o > tmp\dso_win32.o tmp\dso_vms.o tmp\dh_asn1.o tmp\dh_gen.o tmp\dh_key.o > tmp\dh_lib.o tmp\dh_check.o tmp\dh_err.o tmp\dh > _depr.o tmp\ec_lib.o tmp\ecp_smpl.o tmp\ecp_mont.o tmp\ecp_nist.o > tmp\ec_cvt.o tmp\ec_mult.o tmp\ec_err.o tmp\ec_curve.o tmp\ec_check.o > tmp\ec_print.o tmp\ec_asn1.o tmp\ec_key.o tm > p\ec2_smpl.o tmp\ec2_mult.o tmp\ech_lib.o tmp\ech_ossl.o tmp\ech_key.o > tmp\ech_err.o tmp\ecs_lib.o tmp\ecs_asn1.o tmp\ecs_ossl.o tmp\ecs_sign.o > tmp\ecs_vrf.o tmp\ecs_err.o tmp\buff > er.o tmp\buf_err.o tmp\bio_lib.o tmp\bio_cb.o tmp\bio_err.o tmp\bss_mem.o > tmp\bss_null.o tmp\bss_fd.o tmp\bss_file.o tmp\bss_sock.o tmp\bss_conn.o > tmp\bf_null.o tmp\bf_buff.o tmp\b > _print.o tmp\b_dump.o tmp\b_sock.o tmp\bss_acpt.o tmp\bf_nbio.o > tmp\bss_log.o tmp\bss_bio.o tmp\bss_dgram.o tmp\stack.o tmp\lhash.o > tmp\lh_stats.o tmp\md_rand.o tmp\randfile.o tmp\ > rand_lib.o tmp\rand_err.o tmp\rand_egd.o tmp\rand_win.o tmp\rand_unix.o > tmp\rand_os2.o tmp\rand_nw.o tmp\err.o tmp\err_all.o tmp\err_prn.o > tmp\o_names.o tmp\obj_dat.o tmp\obj_lib.o > tmp\obj_err.o tmp\encode.o tmp\digest.o tmp\evp_enc.o tmp\evp_key.o > tmp\evp_acnf.o tmp\e_des.o tmp\e_bf.o tmp\e_idea.o tmp\e_des3.o tmp\e_rc4.o > tmp\e_aes.o tmp\names.o tmp\e_xcbc_ > d.o tmp\e_rc2.o tmp\e_cast.o tmp\e_rc5.o tmp\m_null.o tmp\m_md2.o > tmp\m_md4.o tmp\m_md5.o tmp\m_sha.o tmp\m_sha1.o tmp\m_dss.o tmp\m_dss1.o > tmp\m_ripemd.o tmp\m_ecdsa.o tmp\p_open. > o tmp\p_seal.o tmp\p_sign.o tmp\p_verify.o tmp\p_lib.o tmp\p_enc.o > tmp\p_dec.o tmp\bio_md.o tmp\bio_b64.o tmp\bio_enc.o tmp\evp_err.o > tmp\e_null.o tmp\c_all.o tmp\c_allc.o tmp\c_al > ld.o tmp\evp_lib.o tmp\bio_ok.o tmp\evp_pkey.o tmp\evp_pbe.o tmp\p5_crpt.o > tmp\p5_crpt2.o tmp\e_old.o tmp\a_object.o tmp\a_bitstr.o tmp\a_utctm.o > tmp\a_gentm.o tmp\a_time.o tmp\a_i > nt.o tmp\a_octet.o tmp\a_print.o tmp\a_type.o tmp\a_set.o tmp\a_dup.o > tmp\a_d2i_fp.o tmp\a_i2d_fp.o tmp\a_enum.o tmp\a_utf8.o tmp\a_sign.o > tmp\a_digest.o tmp\a_verify.o tmp\a_mbstr > .o tmp\a_strex.o tmp\x_algor.o tmp\x_val.o tmp\x_pubkey.o tmp\x_sig.o > tmp\x_req.o tmp\x_attrib.o tmp\x_bignum.o tmp\x_long.o tmp\x_name.o > tmp\x_x509.o tmp\x_x509a.o tmp\x_crl.o tmp > \x_info.o tmp\x_spki.o tmp\nsseq.o tmp\d2i_pu.o tmp\d2i_pr.o tmp\i2d_pu.o > tmp\i2d_pr.o tmp\t_req.o tmp\t_x509.o tmp\t_x509a.o tmp\t_crl.o tmp\t_pkey.o > tmp\t_spki.o tmp\t_bitst.o tm > p\tasn_new.o tmp\tasn_fre.o tmp\tasn_enc.o tmp\tasn_dec.o tmp\tasn_utl.o > tmp\tasn_typ.o tmp\f_int.o tmp\f_string.o tmp\n_pkey.o tmp\f_enum.o > tmp\a_hdr.o tmp\x_pkey.o tmp\a_bool.o t > mp\x_exten.o tmp\asn1_gen.o tmp\asn1_par.o tmp\asn1_lib.o tmp\asn1_err.o > tmp\a_meth.o tmp\a_bytes.o tmp\a_strnid.o tmp\evp_asn1.o tmp\asn_pack.o > tmp\p5_pbe.o tmp\p5_pbev2.o tmp\p8_ > pkey.o tmp\asn_moid.o tmp\pem_sign.o tmp\pem_seal.o tmp\pem_info.o > tmp\pem_lib.o tmp\pem_all.o tmp\pem_err.o tmp\pem_x509.o tmp\pem_xaux.o > tmp\pem_oth.o tmp\pem_pk8.o tmp\pem_pkey. > o tmp\x509_def.o tmp\x509_d2.o tmp\x509_r2x.o tmp\x509_cmp.o tmp\x509_obj.o > tmp\x509_req.o tmp\x509spki.o tmp\x509_vfy.o tmp\x509_set.o tmp\x509cset.o > tmp\x509rset.o tmp\x509_err.o > tmp\x509name.o tmp\x509_v3.o tmp\x509_ext.o tmp\x509_att.o tmp\x509type.o > tmp\x509_lu.o tmp\x_all.o tmp\x509_txt.o tmp\x509_trs.o tmp\by_file.o > tmp\by_dir.o tmp\x509_vpm.o tmp\v3_ > bcons.o tmp\v3_bitst.o tmp\v3_conf.o tmp\v3_extku.o tmp\v3_ia5.o > tmp\v3_lib.o tmp\v3_prn.o tmp\v3_utl.o tmp\v3err.o tmp\v3_genn.o > tmp\v3_alt.o tmp\v3_skey.o tmp\v3_akey.o tmp\v3_pk > u.o tmp\v3_int.o tmp\v3_enum.o tmp\v3_sxnet.o tmp\v3_cpols.o tmp\v3_crld.o > tmp\v3_purp.o tmp\v3_info.o tmp\v3_ocsp.o tmp\v3_akeya.o tmp\v3_pmaps.o > tmp\v3_pcons.o tmp\v3_ncons.o tmp > \v3_pcia.o tmp\v3_pci.o tmp\pcy_cache.o tmp\pcy_node.o tmp\pcy_data.o > tmp\pcy_map.o tmp\pcy_tree.o tmp\pcy_lib.o tmp\conf_err.o tmp\conf_lib.o > tmp\conf_api.o tmp\conf_def.o tmp\con > f_mod.o tmp\conf_mall.o tmp\conf_sap.o tmp\txt_db.o tmp\pk7_asn1.o > tmp\pk7_lib.o tmp\pkcs7err.o tmp\pk7_doit.o tmp\pk7_smime.o tmp\pk7_attr.o > tmp\pk7_mime.o tmp\p12_add.o tmp\p12_a > sn.o tmp\p12_attr.o tmp\p12_crpt.o tmp\p12_crt.o tmp\p12_decr.o > tmp\p12_init.o tmp\p12_key.o tmp\p12_kiss.o tmp\p12_mutl.o tmp\p12_utl.o > tmp\p12_npas.o tmp\pk12err.o tmp\p12_p8d.o > tmp\p12_p8e.o tmp\comp_lib.o tmp\comp_err.o tmp\c_rle.o tmp\c_zlib.o > tmp\eng_err.o tmp\eng_lib.o tmp\eng_list.o tmp\eng_init.o tmp\eng_ctrl.o > tmp\eng_table.o tmp\eng_pkey.o tmp\eng > _fat.o tmp\eng_all.o tmp\tb_rsa.o tmp\tb_dsa.o tmp\tb_ecdsa.o tmp\tb_dh.o > tmp\tb_ecdh.o tmp\tb_rand.o tmp\tb_store.o tmp\tb_cipher.o tmp\tb_digest.o > tmp\eng_openssl.o tmp\eng_cnf.o > tmp\eng_dyn.o tmp\eng_cryptodev.o tmp\eng_padlock.o tmp\ocsp_asn.o > tmp\ocsp_ext.o tmp\ocsp_ht.o tmp\ocsp_lib.o tmp\ocsp_cl.o tmp\ocsp_srv.o > tmp\ocsp_prn.o tmp\ocsp_vfy.o tmp\ocsp_ > err.o tmp\ui_err.o tmp\ui_lib.o tmp\ui_openssl.o tmp\ui_util.o > tmp\ui_compat.o tmp\krb5_asn.o tmp\str_err.o tmp\str_lib.o tmp\str_meth.o > tmp\str_mem.o tmp\pqueue.o tmp\e_4758cca.o > tmp\e_aep.o tmp\e_atalla.o tmp\e_cswift.o tmp\e_gmp.o tmp\e_chil.o > tmp\e_nuron.o tmp\e_sureware.o tmp\e_ubsec.o tmp\co-win32.o > ar: creating out\libcrypto.a > ranlib out\libcrypto.a > gcc -o out\md2test tmp\md2test.o out\libssl.a out\libcrypto.a -lwsock32 > -lgdi32 > out\libcrypto.a(cryptlib.o)(.text+0x2b9):cryptlib.c: undefined reference to > `OPENSSL_ia32_cpuid' > collect2: ld returned 1 exit status > mingw32-make: *** [out\md2test] Error 1 > C:\c++\OpenSSL\openssl-0.9.8> > > > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List [hidden email] > Automated List Manager [hidden email] > OpenSSL Project http://www.openssl.org User Support Mailing List [hidden email] Automated List Manager [hidden email] |
I use XP SP2 and mingw 4.1 and ActivePerl 5.8.7 Build 813
-----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Jim Mosier Sent: Wednesday, July 06, 2005 9:42 PM To: [hidden email] Subject: Re: openssl-0.9.8 will not compile on MinGW I am not sure what I did different, but my environment is: WindowsXP Pro MinGW 3.1.0 ActiveState Perl 5.8.7 ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [hidden email] Automated List Manager [hidden email] |
In reply to this post by Jim Mosier
Jim Mosier wrote:
> I am not sure what I did different, but my environment is: > WindowsXP Pro > MinGW 3.1.0 > ActiveState Perl 5.8.7 > > "ms\mingw32 no-asm" complies cleanly and produces the DLL files. Hmm... > On 7/6/05, Frank Buttner <[hidden email]> wrote: > >>So here the output: >> >>C:\c++\OpenSSL\openssl-0.9.8>ms\mingw32 ^^^^ I'll bet it might have something to do with that directory name (the "c++"). I know this is a long shot, but I've seen weirder things happen before. Try renaming the directory to, say, "cppfiles". If it still doesn't work, go to www.SysInternals.com, download FileMon, and see what MinGW is doing at the time of failure. Thomas Hruska ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [hidden email] Automated List Manager [hidden email] |
I have try Version openssl-0.9.7g this compile without any problems.
So i think it is not a problem with the path -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Thomas J. Hruska Sent: Wednesday, July 06, 2005 10:08 PM To: [hidden email] Subject: Re: openssl-0.9.8 will not compile on MinGW Jim Mosier wrote: > I am not sure what I did different, but my environment is: > WindowsXP Pro > MinGW 3.1.0 > ActiveState Perl 5.8.7 > > "ms\mingw32 no-asm" complies cleanly and produces the DLL files. Hmm... > On 7/6/05, Frank Buttner <[hidden email]> wrote: > >>So here the output: >> >>C:\c++\OpenSSL\openssl-0.9.8>ms\mingw32 ^^^^ I'll bet it might have something to do with that directory name (the "c++"). I know this is a long shot, but I've seen weirder things happen before. Try renaming the directory to, say, "cppfiles". If it still doesn't work, go to www.SysInternals.com, download FileMon, and see what MinGW is doing at the time of failure. Thomas Hruska ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [hidden email] Automated List Manager [hidden email] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [hidden email] Automated List Manager [hidden email] |
Frank Buttner wrote:
> I have try Version openssl-0.9.7g this compile without any problems. > So i think it is not a problem with the path >> >>"ms\mingw32 no-asm" complies cleanly and produces the DLL files. >> >>>C:\c++\OpenSSL\openssl-0.9.8>ms\mingw32 Okay, assume the paths are fine. The two command lines are different. One has "no-asm" and apparently works. However, without the assembler enhancements, performance will be lousy, but working and lousy performance is a fair start to a solution over not working at all. Thomas Hruska ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [hidden email] Automated List Manager [hidden email] |
So i have try openssl-0.9.8 with the option no-asm. But the same result:
gcc -o out\md2test tmp\md2test.o out\libssl.a out\libcrypto.a -lwsock32 -lgdi32 out\libcrypto.a(cryptlib.o)(.text+0x2b9):cryptlib.c: undefined reference to `OPENSSL_ia32_cpuid' collect2: ld returned 1 exit status -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Thomas J. Hruska Sent: Wednesday, July 06, 2005 10:30 PM To: [hidden email] Subject: Re: openssl-0.9.8 will not compile on MinGW Frank Buttner wrote: > I have try Version openssl-0.9.7g this compile without any problems. > So i think it is not a problem with the path >> >>"ms\mingw32 no-asm" complies cleanly and produces the DLL files. >> >>>C:\c++\OpenSSL\openssl-0.9.8>ms\mingw32 Okay, assume the paths are fine. The two command lines are different. One has "no-asm" and apparently works. However, without the assembler enhancements, performance will be lousy, but working and lousy performance is a fair start to a solution over not working at all. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [hidden email] Automated List Manager [hidden email] |
In reply to this post by Frank Büttner-2
Hello, Frank!
FB> Hello, i have tryed to compile openssl but it stops with the error: FB> gcc -o out\md2test tmp\md2test.o out\libssl.a out\libcrypto.a -lwsock32 FB> -lgdi32 FB> out\libcrypto.a(cryptlib.o)(.text+0x2b9):cryptlib.c: undefined reference to FB> `OPENSSL_ia32_cpuid' Yeah, I got that error too. Here's what I did to fix this: OPENSSL_ia32_cpuid is defined in crypto\x86cpuid.pl so I ran perl x86cpuid.pl gaswin > x86cpuid.s as -o x86cpuid.o x86cpuid.s then I copied x86cpuid.o to the tmp folder (where the make file creates all the *.o files) and added $(OBJ_D)\x86cpuid.o to the dependencies for CRYPTOOBJ in the ms\mingw32a.mak makefile. Then I just ran the rest of the mingw32.bat file ------------- system clipboard -------->8---- perl util\mk1mf.pl gaswin Mingw32 >ms\mingw32a.mak echo Generating DLL definition files perl util\mkdef.pl 32 libeay >ms\libeay32.def if errorlevel 1 goto end perl util\mkdef.pl 32 ssleay >ms\ssleay32.def if errorlevel 1 goto end rem copy ms\tlhelp32.h outinc echo Building the libraries mingw32-make -f ms/mingw32a.mak if errorlevel 1 goto end echo Generating the DLLs and input libraries dllwrap --dllname libeay32.dll --output-lib out/libeay32.a --def ms/libeay32.def out/libcrypto.a -lwsock32 -lgdi32 if errorlevel 1 goto end dllwrap --dllname libssl32.dll --output-lib out/libssl32.a --def ms/ssleay32.def out/libssl.a out/libeay32.a if errorlevel 1 goto end echo Done compiling OpenSSL :end ----8<---- end of system clipboard ---------- after that, compilation went ok and all tests passed. -- Bye, Alex. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [hidden email] Automated List Manager [hidden email] |
Hello, Alex!
AY> Then I just ran the rest of the mingw32.bat file You need only this part, not all the bat file. Sorry. AY> echo Building the libraries AY> mingw32-make -f ms/mingw32a.mak AY> if errorlevel 1 goto end AY> echo Generating the DLLs and input libraries AY> dllwrap --dllname libeay32.dll --output-lib out/libeay32.a --def ms/libeay32.def out/libcrypto.a -lwsock32 -lgdi32 AY> if errorlevel 1 goto end AY> dllwrap --dllname libssl32.dll --output-lib out/libssl32.a --def ms/ssleay32.def out/libssl.a out/libeay32.a AY> if errorlevel 1 goto end AY> echo Done compiling OpenSSL AY> :end -- Bye, Alex. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [hidden email] Automated List Manager [hidden email] |
Yes this work's Good Bugfix. And how can we inform the maintainers, so that
he can correct the build files? -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Alex Yaroslavsky Sent: Friday, July 08, 2005 5:19 AM To: Alex Yaroslavsky Subject: Re[2]: openssl-0.9.8 will not compile on MinGW Hello, Alex! AY> Then I just ran the rest of the mingw32.bat file You need only this part, not all the bat file. Sorry. AY> echo Building the libraries AY> mingw32-make -f ms/mingw32a.mak AY> if errorlevel 1 goto end AY> echo Generating the DLLs and input libraries dllwrap --dllname AY> libeay32.dll --output-lib out/libeay32.a --def ms/libeay32.def AY> out/libcrypto.a -lwsock32 -lgdi32 if errorlevel 1 goto end dllwrap AY> --dllname libssl32.dll --output-lib out/libssl32.a --def AY> ms/ssleay32.def out/libssl.a out/libeay32.a if errorlevel 1 goto end AY> echo Done compiling OpenSSL AY> :end -- Bye, Alex. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [hidden email] Automated List Manager [hidden email] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [hidden email] Automated List Manager [hidden email] |
Hello, Frank!
FB> Yes this work's Good Bugfix. And how can we inform the maintainers, so that FB> he can correct the build files? I'm new here, so I don't know how it works. I think what needs to be done is the "prerl -> asm" line added to the bat file (like all other asm creation) and the created asm file added to all the needed places in the perl script that creates the makefile for mingw. Another thing to consider here is that there is another cpu detection file there x86_64cpuid.pl and should be added somehow to the compilation process too (for people that need it). -- Bye, Alex. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [hidden email] Automated List Manager [hidden email] |
Free forum by Nabble | Edit this page |