-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 05.11.2015 05:17, Josealf.rm wrote:
I tested stunnel 5.26b1 with gcc 4.85 under Windows. All fine except that I had to change the #include <openssl/applink.c> to <../ms/applink.c> as it was on previous releases.
I'm not sure what you mean by "gcc 4.85 under Windows". I guess mingw, but it still doesn't give me enough information to reproduce and fix the issue. Please consider reading: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
Trying to reproduce the issue you reported I managed to build stunnel with Cygwin. See the attached file for details.
The stunnel/OpenSSL build procedure for Windows has recently changed. stunnel no longer uses the OpenSSL source tree, but rather the installed files. The problem is that OpenSSL does not install the applink.c file required for Windows targets. I guess this is an OpenSSL bug. My current script for cross-compiling OpenSSL on Debian/Ubuntu is:
#!/bin/bash set -e
case $1 in 32) TARGET=i686 MINGW=mingw ;; 64) TARGET=x86_64 MINGW=mingw64 ;; *) echo "Usage: $0 {32|64}" exit 1 esac
./Configure \ --cross-compile-prefix=${TARGET}-w64-mingw32- \ --openssldir=/opt/openssl-${MINGW} \ ${MINGW} shared make sudo make install sudo cp ms/applink.c /opt/openssl-${MINGW}/include/openssl/
Best regards, Mike