<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Jiehua,<br>
Please review the instructions on my webpage : in particular use my
compilation scripts, and look inside them to know the syntax.<br>
It is quite simple : makece X86 for stunnel.<br>
For openssl, "mywcebuild X86".<br>
<br>
It works.<br>
<br>
Let me know if you have problems.<br>
Pierre<br>
<br>
<br>
Le 10/01/2011 17:40, Li, Jiehua a écrit :
<blockquote
cite="mid:2B69AAAC769E17428E58E34EDCD929EDDED5@USMAIL2K10-01.us.micros.int"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 11 (filtered
medium)">
<o:smarttagtype
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"><o:smarttagtype
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
pre
{margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
/* List Definitions */
@list l0
{mso-list-id:906263183;
mso-list-type:hybrid;
mso-list-template-ids:1636220426 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-tab-stop:.5in;
mso-level-number-position:left;
text-indent:-.25in;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
-->
</style>
<div class="Section1">
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">Dear Pierre and Dear Stunnel Users,<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">We are trying to build stunnel for WinCE on X86 processor. After reviewing messages on the board, I found your article published in late November. I’ve downloaded packages from your personal website at <a moz-do-not-send="true" href="http://delaage.pierre.free.fr/">http://delaage.pierre.free.fr/</a><o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">These packages include:<o:p></o:p></span></font></pre>
<pre style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;"><span style="">1.<font size="1" face="Times New Roman"><span style="font: 7pt "Times New Roman";"> </span></font></span></span></font><!--[endif]-->Precompiled wcecompat library <o:p></o:p></pre>
<pre style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; color: windowtext;"><span style="">2.<font size="1" face="Times New Roman"><span style="font: 7pt "Times New Roman";"> </span></font></span></span></font><!--[endif]-->Source code for <font color="black"><span style="color: windowtext;"><a moz-do-not-send="true" href="http://delaage.pierre.free.fr/contrib/openssl/wce/openssl100a_WCEpatched3.zip"><font color="black"><span style="color: windowtext; text-decoration: none;">openssl v100a for WCE</span></font></a>. <o:p></o:p></span></font></pre>
<pre style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; color: windowtext;"><span style="">3.<font size="1" face="Times New Roman"><span style="font: 7pt "Times New Roman";"> </span></font></span></span></font><!--[endif]--><font color="black"><span style="color: windowtext;">Source code for <a moz-do-not-send="true" href="http://delaage.pierre.free.fr/contrib/stunnel/wce/stunnel434_WCEpatched2X86.zip"><font color="black"><span style="color: windowtext; text-decoration: none;">stunnel v434 for WCE</span></font></a>.<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; color: windowtext;"><o:p> </o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; color: windowtext;">I was hoping to the get the precompiled openssl library files, but it seems there are only library files for ARM processor under the folder of “out32dll_ARMV4” and there’s no precompiled version for X86. So I tried to compile the openssl downloaded from your website for the X86 processor after customizing a few parameters (OSVERSION, PLATFORM, WCEROOT, SDKROOT, WCECOMPAT) as you suggested. But the compilation failed, I got error messages as below. I’m also including all options for cl.exe in the email as well. I wonder if you have seen similar issues before. Any suggestion is appreciated. Thanks for the help.<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; color: windowtext;"><o:p> </o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; color: windowtext;">Regards,
Jiehua<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;"> cl.exe /Fotmp32dll_x86\cryptlib.obj -Iinc32 -Itmp32dll_x86 /MC /O1 /Oi<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;"> /W3 /WX /GF /Gy /nologo -DUNICODE -D_UNICODE -DOPENSSL_SYSNAME_WINCE -DWIN32_LE<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">AN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DNO_CHMOD -DOPENSSL_SMALL_FOOTPRINT -D_WIN32<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">_WCE=420 -DUNDER_CE=420 -DWCE_PLATFORM_STANDARDSDK_420 -Dx86 -D_ -IC:\STunnel\wc<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">ecompat12_patched2X86\patchedX86/include -DOPENSSL_NO_RC5 -DOPENSSL_NO_MD2 -DOPE<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">NSSL_NO_KRB5 -DOPENSSL_NO_JPAKE -DOPENSSL_NO_STATIC_ENGINE /Zi /Fdtmp32dll_x86/l<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">ib -D_WINDLL -D_DLL -DOPENSSL_BUILD_SHLIBCRYPTO -c .\crypto\cryptlib.c<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">Command line warning D4002 : ignoring unknown option '/MC'<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">cryptlib.c<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">C:\Program Files\Windows CE Tools\WCE420\STANDARDSDK_420\include\x86\winnt.h(301<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">9) : error C2061: syntax error : identifier 'PCONTEXT'<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">C:\Program Files\Windows CE Tools\WCE420\STANDARDSDK_420\include\x86\winnt.h(302<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">0) : error C2059: syntax error : '}'<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">C:\Program Files\Windows CE Tools\WCE420\STANDARDSDK_420\include\x86\winbase.h(1<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">481) : error C2061: syntax error : identifier 'LPCONTEXT'<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">C:\Program Files\Windows CE Tools\WCE420\STANDARDSDK_420\include\x86\winbase.h(1<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">481) : error C2059: syntax error : ';'<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">C:\Program Files\Windows CE Tools\WCE420\STANDARDSDK_420\include\x86\winbase.h(2<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">222) : error C2146: syntax error : missing ')' before identifier 'lpContext'<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">C:\Program Files\Windows CE Tools\WCE420\STANDARDSDK_420\include\x86\winbase.h(2<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">222) : error C2081: 'LPCONTEXT' : name in formal parameter list illegal<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">C:\Program Files\Windows CE Tools\WCE420\STANDARDSDK_420\include\x86\winbase.h(2<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">222) : error C2061: syntax error : identifier 'lpContext'<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">C:\Program Files\Windows CE Tools\WCE420\STANDARDSDK_420\include\x86\winbase.h(2<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">222) : error C2059: syntax error : ';'<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">C:\Program Files\Windows CE Tools\WCE420\STANDARDSDK_420\include\x86\winbase.h(2<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">223) : error C2059: syntax error : ')'<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">C:\Program Files\Windows CE Tools\WCE420\STANDARDSDK_420\include\x86\winbase.h(2<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">230) : error C2143: syntax error : missing ')' before '*'<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">C:\Program Files\Windows CE Tools\WCE420\STANDARDSDK_420\include\x86\winbase.h(2<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">230) : error C2143: syntax error : missing '{' before '*'<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">C:\Program Files\Windows CE Tools\WCE420\STANDARDSDK_420\include\x86\winbase.h(2<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">231) : error C2059: syntax error : ')'<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;">Stop.<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<font size="3" face="Times New Roman"><span
style="font-size: 12pt;"><o:p></o:p></span></font>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
</div>
</o:smarttagtype></o:smarttagtype></blockquote>
<br>
</body>
</html>