> 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 class="gmail_quote">2012/7/20  <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">

<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><hr><div><b>From: </b> Anton Tkachev <<a href="mailto:anton.tkachev@gmail.com" 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" target="_blank">josealf@rocketmail.com</a>></div><div><b>Cc: </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>></div>

<div><b>Subject: </b>Re: [stunnel-users] Build stunnel 4.53 binaries for windows error</div><div><div class="h5"><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 class="gmail_quote">2012/7/20  <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">



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" target="_blank">anton.tkachev@gmail.com</a>><br>
Sender: <a href="mailto:stunnel-users-bounces@stunnel.org" 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" 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" 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>