Hello,

I ask for your help because I am really at the verge right now. I have multiple troubles with compiling openssl for WM under Visual Studio 9.0. I have succeded in compiling the wcecompat patch however I cannot build the openssl packages. I tried it with openssl-0.9.8i and openssl-0.9.8a. For the first one I also applied the source code changes mentioned here: http://marc.info/?l=openssl-dev&m=122536319510494&w=2 but tried also without it - no change.

I have declared the env. variables as follow:

OSVERSION=WCE501
PLATFORM=VC-CE
TARGETCPU=ARMV4I

PATH=C:\Program Files\Microsoft Visual Studio 9.0\VC\ce\bin\x86_arm;C:\Program Files\Microsoft Visual Studio 9.0\VC\bin;C:\Program Files\Microsoft Visual Studio 9.0\SDK\v3.5\Bin;C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files\Microsoft Visual Studio 9.0;C:\Program Files\Microsoft Visual Studio 9.0\VC\lib;$(FrameworkSDKDir)Bin;%PATH%;

INCLUDE=C:\Program Files\Microsoft Visual Studio 9.0\VC\ce\include;C:\Program Files\Windows Mobile 5.0 SDK R2\PocketPC\Include\Armv4i;C:\Program Files\Windows Mobile 5.0 SDK R2\PocketPC\Include;C:\Program Files\Microsoft Visual Studio 9.0\VC\ce\atlmfc\include;C:\Program Files\Microsoft Visual Studio 9.0\SmartDevices\SDK\SQL Server\Client\v2.0

LIB=C:\Program Files\Windows Mobile 5.0 SDK R2\PocketPC\lib\ARMV4I;C:\Program Files\Microsoft Visual Studio 9.0\VC\ce\atlmfc\lib \ARMV4I;C:\Program Files\Microsoft Visual Studio 9.0\VC\ce\lib\ARMV4I

WCECOMPAT=C:\openssl\wcecompat-1.2\wcecompat

After running configure script and creating the make files by ms_do and typing nmake -f ms\cedll.mak I get a linker error:

Building OpenSSL
link /nologo /opt:ref /subsystem:windowsce,5.01 /machine:THUMB /NODEFAUL
TLIBldnames.lib /NODEFAULTLIB:libc.lib coredll.lib corelibc.lib /dll /outut3
2dll_ARMV4I\libeay32.dll /def:ms/LIBEAY32.def @C:\Users\Dagobert\AppData\Local\T
emp\nm83B6.tmp
Creating library out32dll_ARMV4I\libeay32.lib and object out32dll_ARMV4I\libe
ay32.exp
bss_sock.obj : error LNK2019: unresolved external symbol WSAGetLastError referen
ced in function BIO_sock_should_retry
bss_conn.obj : error LNK2001: unresolved external symbol WSAGetLastError
b_sock.obj : error LNK2001: unresolved external symbol WSAGetLastError
bss_dgram.obj : error LNK2001: unresolved external symbol WSAGetLastError
bss_sock.obj : error LNK2019: unresolved external symbol WSASetLastError referen
ced in function sock_read
bss_conn.obj : error LNK2001: unresolved external symbol WSASetLastError
bss_dgram.obj : error LNK2001: unresolved external symbol WSASetLastError
out32dll_ARMV4I\libeay32.dll : fatal error LNK1120: 2 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\ce\
bin\x86_arm\link.EXE"' : return code '0x460'
Stop.


Similar error occurs when compiling a static library for both *i and *a openssl packages. I also tried running it on VS prompt command line and simple cmd.exe. I am almost desperate right now since I waste so much time to make this things running.

Please can anybody help me?