Hello Martin,

Currently I am in a process of compiling openssl-1.0.1e  on Win CE 6.0. using 
visual studio 2005
I too got the same errors. Try the following to resolve your errors.

Error:
--------
.\crypto\bio\b_sock.c(195) : error C2220: warning treated as error - no 
'object' file generated
.\crypto\bio\b_sock.c(195) : warning C4013: 'getservbyname' undefined; 
assumingextern returning int
.\crypto\bio\b_sock.c(195) : warning C4047: '=' : 'servent *' differs in 
levelsof indirection from 'int'
.\crypto\bio\b_sock.c(629) : error C2079: 'sa_in6' uses undefined struct 
'sockaddr_in6'
.\crypto\bio\b_sock.c(776) : error C2224: left of '.sin6_addr' must have 
struct/union type
.\crypto\bio\b_sock.c(776) : error C2224: left of '.sin6_addr' must have 
struct/union type
.\crypto\bio\b_sock.c(776) : error C2168: 'memset' : too few actual parameters 
for intrinsic function
.\crypto\bio\b_sock.c(777) : error C2224: left of '.sin6_addr' must have 
struct/union type
.\crypto\bio\b_sock.c(861) : error C2079: 'sa_in6' uses undefined struct 
'sockaddr_in6'
NMAKE : fatal error U1077: '"D:/Program Files/Microsoft Visual Studio 
8/VC/bin\cl.EXE"' : return code '0x2' Stop.
Fix for Error:
----------------
Replace
"#    if !defined(OPENSSL_NO_SOCK) && defined(_WIN32_WINNT)" with
"#    if !defined(OPENSSL_NO_SOCK) && ( defined(_WIN32_WINNT) ||     
defined(_WIN32_WCE))" in "openssl-1.0.1e\e_os.h" @ line 273

Regards
Balaji

From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] 
On Behalf Of Martin Beaudet
Sent: Monday, July 22, 2013 7:59 PM
To: openssl-users@openssl.org
Subject: Windows CE (VC-CE) Compilation problem !
Importance: High

Hi,

We are tried to compile the OpenSSL (1.0.1e) for Windows CE (Standard SDK and 
also device SDK) using Visual Studio 2005 and also Visual Studio 2008.
We succeed to compiled the WCECompact as suggested in the INSTALL.WCE documents.

We followed the instruction of INSTALL.WCE but did not succeed to compile for 
Windows CE. Too much errors !

Then we came across this site : 
http://blog.csdn.net/sooner01/article/details/4289147

We succeeded farther away in the process, but now we have these new errors:

.\crypto\bio\b_sock.c(195) : warning C4013: 'getservbyname' undefined; assuming 
extern returning int
.\crypto\bio\b_sock.c(195) : warning C4047: '=' : 'servent *' differs in levels 
of indirection from 'int'
.\crypto\bio\b_sock.c(629) : error C2079: 'sa_in6' uses undefined struct 
'sockaddr_in6'
.\crypto\bio\b_sock.c(776) : error C2224: left of '.sin6_addr' must have 
struct/union type
.\crypto\bio\b_sock.c(776) : error C2224: left of '.sin6_addr' must have 
struct/union type
.\crypto\bio\b_sock.c(776) : error C2168: 'memset' : too few actual parameters 
for intrinsic function
.\crypto\bio\b_sock.c(777) : error C2224: left of '.sin6_addr' must have 
struct/union type
.\crypto\bio\b_sock.c(861) : error C2079: 'sa_in6' uses undefined struct 
'sockaddr_in6'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\ce\bin\x86_arm\cl.EXE"' : return code '0x2'
Stop.

There seems to be problems with inclusions. On my Windows CE SDK platform the 
getservbyname function exists (also it's exists on the WCECompact).
The sa_in6 struct exists in the " C:\Program Files (x86)\Windows CE 
Tools\wce500\{SDK-Platform}\Include\Armv4i\ws2tcpip.h"

The OpenSSL developers take the time to consider the Windows CE configuration, 
but it does not work at all :(

Is there really someone who has succeed to compile this library for Windows CE ?
We really need OpenSSL, and it very urgent ! For several days we have been 
stuck on this compilation problem.

Hope someone have some fresh news ?

Best regards
Martin

Reply via email to