Hi list, I am having trouble building static libcrypto on x64 Vista Home Premium SP2 using the "Proposed" 1.0.13-2 msys shell and the "mingw-w64-1.0-bin_i686-mingw_20100129" snapshot gcc 4.4.4 from mingw-w64. I tried (actually a superset of) the following steps:
First, as documented: ./Configure mingw no-asm no-hw make ['make' being a bash alias to my mingw32-make] This fails on the first source file because Configure throws the -march=i486 flag, which results in "CPU you selected does not support x86_64 instruction set" Deleted the "-march" switch in Makefile. Run make. Compiles mostly happily (some whining about _strlen13 in e_os.h not being used, and about differently sized pointer <-> integer casts, which I ignored so far) then fails in sha512.c on the lines of "Incorrect register '%ebp' used with 'q' suffix" (lots of them) Added "-DOPENSSL_NO_ASM -DOPENSSL_NO_INLINE_ASM" to CFLAG in Makefile (wondering why no-asm does not do that). Run make. Happily compiles SHA, EC and some others, fails in rsa_lib.c with complaints about include/openssl/X509.h. Added "#undef X509_EXTENSIONS" to L119 in said header, as suggested by Aharon Robbins in [1]. Run make. Happily compiles a lot of the ciphers and digests, then fails in err_all.c because of include/openssl/store.h:390, 397, 405, which all have "X509_NAME" in common. Removing the #undef X509_NAME in X509.h only makes things fail earlier. Defining WIN32_MEAN_AND_LEAN as suggested by Roumen in [2] does not fix it (he notes it does not apply to 0.9.8 but I tried it out of desperation). I tried also throwing the no-engine flag, to no avail. Any pointers? A few less important things: I intend to build a really small libcrypto with just sha1, rsa and the bn stuff. Is there a simpler way than throwing tons of no-<bla> at configure? And where would I find all possible values of <bla>? Does Configure know about possible dependencies? TIA, Dennis Links [1] http://rt.openssl.org/Ticket/Display.html?id=1700&user=guest&pass=guest [2] http://www.mail-archive.com/openssl-...@openssl.org/msg26870.html ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org