<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1446720355605_17386"></div><div class="" id="yui_3_16_0_1_1446720355605_3173">Michal,</div><div class="" id="yui_3_16_0_1_1446720355605_2979"><br class="" id="yui_3_16_0_1_1446720355605_17403"></div><div class="" dir="ltr" id="yui_3_16_0_1_1446720355605_2980">I
apologize. It was late night and I should have waited till morning to
write the report. Note that I read that link for the first time years
ago, and I still do once in a while :)<br class="" id="yui_3_16_0_1_1446720355605_17406"></div><div class="" id="yui_3_16_0_1_1446720355605_2978"><br class="" id="yui_3_16_0_1_1446720355605_17409"></div><div class="" id="yui_3_16_0_1_1446720355605_2977"><span class="" id="yui_3_16_0_1_1446720355605_9191">Mostly,
you figured out the issue. I use the mingw.mak recipe included in the
src directory to compile my own stunnel with mingw32. However, there was
a change in stunnel 5.25 affecting stunnel.c that breaks compilation
with this makefile. See attached diff. I know you don't compile under windows, but please consider reverting that change to retain backward compatibility.<br></span></div><div class="" id="yui_3_16_0_1_1446720355605_13211"><br class="" id="yui_3_16_0_1_1446720355605_17414"><span class="" id="yui_3_16_0_1_1446720355605_9191"></span></div><div class="" id="yui_3_16_0_1_1446720355605_13795"><span class="" id="yui_3_16_0_1_1446720355605_9191">Thanks a lot for sharing your build scripts on Linux.</span></div><div class=""><br><span class="" id="yui_3_16_0_1_1446720355605_9191"></span></div><div id="yui_3_16_0_1_1446720355605_19529" dir="ltr" class=""><span class="" id="yui_3_16_0_1_1446720355605_9191">Regards,</span></div><div dir="ltr" class=""><span class="" id="yui_3_16_0_1_1446720355605_9191">Jose<br id="yui_3_16_0_1_1446720355605_17419" class=""></span></div><div dir="ltr"> </div><br><div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font face="Arial" size="2"> On Thursday, November 5, 2015 4:14 AM, Michal Trojnara <Michal.Trojnara@mirt.net> wrote:<br> </font> </div> <br><br> <div class="y_msg_container">-----BEGIN PGP SIGNED MESSAGE-----<br clear="none">Hash: SHA256<br clear="none"><br clear="none">On 05.11.2015 05:17, Josealf.rm wrote:<br clear="none">> I tested stunnel 5.26b1 with gcc 4.85 under Windows. All fine<br clear="none">> except that I had to change the #include <openssl/applink.c> to<br clear="none">> <../ms/applink.c> as it was on previous releases.<br clear="none"><br clear="none">I'm not sure what you mean by "gcc 4.85 under Windows".<br clear="none">I guess mingw, but it still doesn't give me enough information to<br clear="none">reproduce and fix the issue. Please consider reading:<br clear="none"><a shape="rect" href="http://www.chiark.greenend.org.uk/~sgtatham/bugs.html" target="_blank">http://www.chiark.greenend.org.uk/~sgtatham/bugs.html</a><br clear="none"><br clear="none">Trying to reproduce the issue you reported I managed to build stunnel<br clear="none">with Cygwin. See the attached file for details.<br clear="none"><br clear="none">The stunnel/OpenSSL build procedure for Windows has recently changed.<br clear="none"> stunnel no longer uses the OpenSSL source tree, but rather the<br clear="none">installed files. The problem is that OpenSSL does not install the<br clear="none">applink.c file required for Windows targets. I guess this is an<br clear="none">OpenSSL bug. My current script for cross-compiling OpenSSL on<br clear="none">Debian/Ubuntu is:<br clear="none"><br clear="none">#!/bin/bash<br clear="none">set -e<br clear="none"><br clear="none">case $1 in<br clear="none"> 32)<br clear="none"> TARGET=i686<br clear="none"> MINGW=mingw<br clear="none"> ;;<br clear="none"> 64)<br clear="none"> TARGET=x86_64<br clear="none"> MINGW=mingw64<br clear="none"> ;;<br clear="none"> *)<br clear="none"> echo "Usage: $0 {32|64}"<br clear="none"> exit 1<br clear="none">esac<br clear="none"><br clear="none">./Configure \<br clear="none"> --cross-compile-prefix=${TARGET}-w64-mingw32- \<br clear="none"> --openssldir=/opt/openssl-${MINGW} \<br clear="none"> ${MINGW} shared<br clear="none">make<br clear="none">sudo make install<br clear="none">sudo cp ms/applink.c /opt/openssl-${MINGW}/include/openssl/<br clear="none"><br clear="none">Best regards,<br clear="none"> Mike<br clear="none">-----BEGIN PGP SIGNATURE-----<br clear="none">Version: GnuPG v2<br clear="none"><br clear="none">iQIcBAEBCAAGBQJWOx24AAoJEC78f/DUFuAUyGoP/R2vYPNpx6e0xhZPIGe18LAG<br clear="none">505b8IjfGbLH/5vm+oBGwZkMCIghaY2yj6qjLd6SaQFotyXJ1YoLh9AyDSf+sDIc<br clear="none">qNNvSLTbTI/0vHHR2dZFxjGUWoTlrm6hwecbHfT7nk5eI3mJF6zdBYLYRS0QTzdf<br clear="none">ropQJ6WSLG5SBALUxdM33/9Edgei+/AMjwBBCda4ctRzsgDrRZstgn/l5QgeI7OS<br clear="none">K/Iz2ihhELArpQ9ZD1VGCueGo78DGAvw/xQOld3OIF+jtzJ5YCm8qEm0i2oJ7jkh<br clear="none">0Ir2Hnm6/MQqMx8ftufo/c+BZHnarxRFwEfKd3j8JMvV1u7TMFOUq7T1h6j3iSQX<br clear="none">ou7esUNTQNPP4vBs//IYR3NSKxp60QnwlMWoCLIJNeI0iucVrsGZonn3WUdDaGFO<br clear="none">UXU0KywiH87dJWA5Sih51Nq78/crwQ4woXop9fWmZI25Wvr8oRw1poB34qWpsAch<br clear="none">SyC3FuR30g1qd1ksUDuNtaWkyiP4AChVxzMzW/4WKvEjKQEBRbwMS1QEPP2U0TDb<br clear="none">xcNRMS5SbnF26mPCWuY/dQNwdoPaxBcNlcZWGEUpSHFK2pC9zTri2YBFrK7pnoDQ<br clear="none">vhOrAyQfvhA2qbknyfGI+NGZVNoTO7NSrGhMlIZ15uuVvjt8nK+JYyiRQM0s0HJ8<br clear="none">EklGipaIsXCleyqGYCmr<br clear="none">=697K<div class="yqt5911782329" id="yqtfd08704"><br clear="none">-----END PGP SIGNATURE-----<br clear="none"></div><br><div class="yqt5911782329" id="yqtfd08290">_______________________________________________<br clear="none">stunnel-users mailing list<br clear="none"><a shape="rect" ymailto="mailto:stunnel-users@stunnel.org" href="mailto:stunnel-users@stunnel.org">stunnel-users@stunnel.org</a><br clear="none"><a shape="rect" href="https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users" target="_blank">https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users</a><br clear="none"></div><br><br></div> </div> </div> </div></div></body></html>