Hi Linda, Have you tried running the 'regular' commands ? Perl Configure mingw make depend make make report
As far as I know these always work on msys - there is no need to run the ms/mingw32.bat script. To get the shared libraries you need to add the shared flag to Configure, eg. perl Configure mingw shared Hope this helps, Peter Mosmans On 10-08-2014 15:39, Linda Zhang wrote: > Hi Gisle, > > Building in MSYS by "./config" and "make" works, but I can't find libeay32.dll > and libssl32.dll when compilation finishes. > > So, I build openssl with command line "ms\mingw32.bat". It seems there must be > something wrong that it didn't pass CFLAGS configured by "perl Configure > mingw" to > gcc. Instead, the "ms\mingw32.bat" uses CFLAGS defined in > "util/pl/Mingw32.pl". > Of course there is no -DWIN32_LEAN_AND_MEAN. After applying another patch in > the > attachment to the original openssl 1.0.1i, "ms\mingw32.bat" works without > error. > > Maybe we should fix something of mingw building scripts? > > Regards, > Linda Zhang > > > > 发件人: Gisle Vanem > 发送时间: 2014-08-10 19:45:04 > 收件人: [email protected]; [email protected] > 抄送: > 主题: Re: [PATCH] Make openssl 1.0.1 compilable on MinGW > >> "Linda Zhang" <[email protected]> wrote: >>> 2. There is a conflict of the order of winsock2.h and windows.h in some >>> source >>> files so that the compiler shows error messages: >>> ======== >>> #error "ws2tcpip.h is not compatible with winsock.h. Include winsock2.h >>> instead." >>> mingw32-make: *** [tmp\t1_lib.o] Error 1 >>> ======== >>> The bug is introduced by the include of <windows.h> in the file >>> "crypto/rand/rand.h" and finally raised by the inappropriate include order >>> in >>> some source files. >> Are you sure '-DWIN32_LEAN_AND_MEAN' is in your CFLAGS? >> (it should be AFAICR). Adding this would ensure <winsock.h> is >> *not* included in <windows.h>. IMHO it would be cleaner to do this >> and make sure <winsock2.h> + <ws2tcpip.h> gets included explicitly. >> --gv ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [email protected]
