<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u><div>Anton,<br><br>Do not run configure stunnel. Not required. After your openssl is compiled, Just edit mingw.mak. You also need to set the SSLDIR (I guess you did ;) ...<br>

<br>Now when I run make -f mingw.mak I get the following error:<br># make -f mingw.mak<br>host machine is a linux machine<br>make: [makedirs] Error 1 (ignored)<br>make: [makedirs] Error 1 (ignored)<br>make: [makedirs] Error 1 (ignored)<br>

<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>Actually, I managed to compile it under Debian. We were doing it wrong. We must use the same method I use under Windows :) </span></div>

<div><span>1. Go to the src directory and edit the file mingw.mak. Set variables CC, RC, RCP as needed. I attach mine for you.</span></div><div><span>2. From src, execute make -f mingw.mak</span></div><div><span>3. If everything's fine, you'll find stunnel.exe in bin/MGW32</span></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>

<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>

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>

<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>