I am not able to get OpenSSL to build with MinGW (from mingw.org) and
Perl (from ActiveState) installed. Both tools are available in %PATH%
and I'd like the build to run from cmd.exe (no CYGWIN bash prompt, see
below for more info). I have been working with OpenSSL 1.0.0d.
Tried using:
ms\mingw32.bat no-asm no-symlinks shared zlib zlib-dynamic
-IX:/zlib_1.2.5_win32_mingw_release -LX:/zlib_1.2.5_win32_mingw_release
"--prefix=X:/openssl_release"
Using "no-asm" to make is easier to get a build working (so I thought).
Using "no-symlinks" since by default "perl Configure mingw ....." will
try to execute make and then fail, since make.exe does not exist in
%PATH%. But even if I "set MAKE=mingw32-make" which does exist, it
still tries to execute make and then immediately fails, trying to
execute "TOP" (from $(TOP) I guess). I can only think the Makefile is
in the wrong format, the mingw32-make.exe is GNU Make 3.82.
FYI the tool util\mk1mk.pl does not like the option "no-symlinks" is has
not been muted like other options, but I believe the warning harmless.
Using "shared" since I want DLLs
Using "zlib zlib-dynamic -IX:/zlib_1.2.5_win32_mingw_release
-LX:/zlib_1.2.5_win32_mingw_release" as I have a already previously
built zlib ready to link against here.
Using "--prefix=X:/openssl_release" so "make install" can work, with
extra quotes on command line since the ms\mingw32.bat fails when running
"perl Configure mingw ...." like I specified an invalid option.
The only way to get something that looks like a build kicking off is:
* Fresh extraction
* Run ms\mingw32.bat but do not include the quotes around the --prefix
argument, this causes what looks like a Configure usage error to appear
at the top, but mingw32.bat continues anyway.
* Now the system looks like it is trying to build things, but when it
gets to linking md4test.exe then errors occur over missing built ASM
files into OBJ, bn_mul.o has undefined symbol "bn_sub_part_words" which
is an ASM optimized method, but -DOPENSSL_BN_ASM_PART_WORDS is set
during compile.
If Configure gets to run at all, then ms\mingw32.bat never works again
(for me), i.e. I need to perform a fresh extraction of OpenSSL sources.
The mingw32-make.exe (that runs from inside mingw32.bat) complains there
are no targets.
It is not really an option for me to install CYGWIN and then MinGW
inside that, since openssl is the only library of a collection of
libraries needed by a larger open-source application/library that it the
final target. The goal is that all parts be built with the same
toolchain/environment.
I installed CYGWIN and "make" from in there, and "perl" already comes
installed inside. Then from a CYGWIN bash shell tried added the $PATH
for the MinGW native compiler toolchain (i.e. I did not install the
mingw or mingw64 package that is in the CYGWIN repository, or in fact
any other compiler toolchain inside CYGWIN). But after trying various
things I could not get that to work either.
Thanks,
Darryl
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List openssl-dev@openssl.org
Automated List Manager majord...@openssl.org