Hey Jose,<br><br>Could you just share your build inctructions under windows?<br>If it works, fine - I can use windows too :)<br><br>Thank you,<br>Anton.<br><br><div class="gmail_quote">2012/7/24 Jose Alf. <span dir="ltr"><<a href="mailto:josealf@rocketmail.com" target="_blank">josealf@rocketmail.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:bookman old style,new york,times,serif"><div><span>Anton,</span></div><div>

<span></span> </div><div><span>I usually compile my stunnel under windows (mingw). I tested with Debian Squeeze installation and I found the same problem. In step 6, ./configure finish fine, but the Make step does not work.</span></div>

<div> </div><div>I checked and I found the included directories are not th right ones. I will take a look later this week.</div><div> </div><div>Mich,</div><div> </div><div>Any suggestions?<br></div><div>Regards</div><div>

Jose</div>  <div style="font-family:bookman old style,new york,times,serif;font-size:12pt"> <div style="font-family:times new roman,new york,times,serif;font-size:12pt"> <div dir="ltr"> <font face="Arial"> <div style="margin:5px 0px;padding:0px;border:1px solid rgb(204,204,204);min-height:0px;line-height:0;font-size:0px" readonly>

</div>  <b><span style="font-weight:bold">From:</span></b> Anton Tkachev <<a href="mailto:anton.tkachev@gmail.com" target="_blank">anton.tkachev@gmail.com</a>><br> <b><span style="font-weight:bold">To:</span></b> <a href="mailto:josealf@rocketmail.com" target="_blank">josealf@rocketmail.com</a> <br>

<b><span style="font-weight:bold">Cc:</span></b> <a href="mailto:stunnel-users-bounces@stunnel.org" target="_blank">stunnel-users-bounces@stunnel.org</a>; <a href="mailto:stunnel-users@stunnel.org" target="_blank">stunnel-users@stunnel.org</a> <br>

 <b><span style="font-weight:bold">Sent:</span></b> Monday, July 23, 2012 7:11 AM<br> <b><span style="font-weight:bold">Subject:</span></b> Re: [stunnel-users] Build stunnel 4.53 binaries for windows error<br> </font> </div>

 <br>
<div>> Does the  ./configure script under stunnel-4.53 finish OK?<br>Yes. No errors at this step.<br><br>> I also think that you should pass a parameter to force the cross 
compilation of stunnel. It could be using the default system compiler. 
Maybe set CC, GCC environment vars to point to the cross compiler path 
before running ./configure: eg<br>> <br> > export CC=/usr/pathtomingwgcc/bin/gcc<br>My mingw installation doesn't have any compiler.<br><br>I think the problem in openssl path, because error message is: <br># make stunnel.exe<br>



i586-mingw32msvc-gcc -c -I/usr/src/openssl-1.0.0f-i586/include -mthreads -fstack-protector -O2 -Wall -Wextra -Wno-long-long -pedantic -o str.obj str.c<br>In file included from str.c:38:<br>common.h:392:33: error: openssl/opensslconf.h: No such file or directory<br>



common.h:405:27: error: openssl/lhash.h: No such file or directory<br>common.h:406:25: error: openssl/ssl.h: No such file or directory<br>...<br><br>These files exist in /usr/src/openssl-1.0.0f-i586/include/openssl directory, but building doesn't work anyway... <br>



<br><br><div>2012/7/20  <span dir="ltr"><<a href="mailto:josealf@rocketmail.com" rel="nofollow" target="_blank">josealf@rocketmail.com</a>></span><br><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">



<u></u><div>Anton,<br><br>Does the  ./configure script under stunnel-4.53 finish OK? I also think that you should pass a parameter to force the cross compilation of stunnel. It could be using the default system compiler. Maybe set CC, GCC environment vars to point to the cross compiler path before running ./configure: eg<br>



<br> export CC=/usr/pathtomingwgcc/bin/gcc<br><br>Enjoy!<br><div style="margin:5px 0px;padding:0px;border:1px solid rgb(204,204,204);min-height:0px;line-height:0;font-size:0px" readonly></div><div><b>From: </b> Anton Tkachev <<a href="mailto:anton.tkachev@gmail.com" rel="nofollow" target="_blank">anton.tkachev@gmail.com</a>>
</div><div><b>Date: </b>Fri, 20 Jul 2012 21:44:09 +0700</div><div><b>To: </b><<a href="mailto:josealf@rocketmail.com" rel="nofollow" target="_blank">josealf@rocketmail.com</a>></div><div><b>Cc: </b><<a href="mailto:stunnel-users-bounces@stunnel.org" rel="nofollow" target="_blank">stunnel-users-bounces@stunnel.org</a>>; <<a href="mailto:stunnel-users@stunnel.org" rel="nofollow" target="_blank">stunnel-users@stunnel.org</a>></div>



<div><b>Subject: </b>Re: [stunnel-users] Build stunnel 4.53 binaries for windows error</div><div><div><div><br></div>Hey Jose,<br>Thank you for your response!<br><br>> You cross compiled your openssl 1.01c for mingw32, right?<br>



Yes, I used <br>./Configure --cross-compile-prefix=i586-mingw32msvc- mingw shared zlib-dynamic<br>command.<br>

<br>> Try passing the path of your mingw32 openssl includes and libs to stunnel configure:<br>
> <br>
> --with-openssl*=<br>
> <br>
> Do configure --help to see the exact syntax.<br><br>Do you mean<br>./configure --with-ssl=/usr/src/openssl-1.0.1c-i586 --includedir=/usr/i586-mingw32msvc/include --libdir=/usr/i586-mingw32msvc/lib <br>?<br>Unfortunately 'make stunnel.exe' returns the same error in this case.<br>





<br><div>2012/7/20  <span dir="ltr"><<a href="mailto:josealf@rocketmail.com" rel="nofollow" target="_blank">josealf@rocketmail.com</a>></span><br><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">





Anton,<br>
<br>
Ahh... The joys of cross compiling!<br>
<br>
You cross compiled your openssl 1.01c for mingw32, right? Or you installed the mingw32 version.  Try passing the path of your mingw32 openssl includes and libs to stunnel configure:<br>
<br>
--with-openssl*=<br>
<br>
Do configure --help to see the exact syntax.<br>
<br>
Let us know how it goes.<br>
-----Original Message-----<br>
From: Anton Tkachev <<a href="mailto:anton.tkachev@gmail.com" rel="nofollow" target="_blank">anton.tkachev@gmail.com</a>><br>
Sender: <a href="mailto:stunnel-users-bounces@stunnel.org" rel="nofollow" target="_blank">stunnel-users-bounces@stunnel.org</a><br>
Date: Fri, 20 Jul 2012 16:28:57<br>
To: <<a href="mailto:stunnel-users@stunnel.org" rel="nofollow" target="_blank">stunnel-users@stunnel.org</a>><br>
Subject: [stunnel-users] Build stunnel 4.53 binaries for windows error<br>
<br>
_______________________________________________<br>
stunnel-users mailing list<br>
<a href="mailto:stunnel-users@stunnel.org" rel="nofollow" target="_blank">stunnel-users@stunnel.org</a><br>
<a href="http://stunnel.mirt.net/mailman/listinfo/stunnel-users" target="_blank">http://stunnel.mirt.net/mailman/listinfo/stunnel-users</a><br>
<br>
<br>
<br>
</blockquote></div><br>

</div></div></div></blockquote></div><br>
</div><br><br> </div> </div>  </div></div></blockquote></div><br>