Hi,

I am very new to Openssl. My aim is to compile openssl for WINCE 6.0 OS.
After spending lot of time on google , i found procedure to build openssl
for WINCE 6.0. But my attempt to build the wcecompat WINCE runtime libraries
is unsuccessful. Below is my environment

Host Platform : WINDOWS 7
Visual Studio : 2008
TargetCpu : x86

Below are the steps followed to build wcecompat:

1) Downloaded the source from
"https://github.com/mauricek/wcecompat/tree/master"; git.
2) Using Visual Studio Command prompt for build. Declared the env following
variables:

    set OSVERSION=WCE600
    set TARGETCPU=x86
    set PLATFORM=VC-CE

3) Created the make files using "perl config.pl" command.
4) Executed nmake command.

The build fails with compilation errors. Below are the logs:

--------------------------------------------------------------------------------------------------
args.cpp
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(235) : error
C2059: syntax error : '('
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(237) : error
C2059: syntax error : '('
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(239) : error
C2059: syntax error : '('
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(241) : error
C2059: syntax error : '('
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(243) : error
C2059: syntax error : '('
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(245) : error
C2059: syntax error : '('
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(247) : error
C2059: syntax error : '('
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(249) : error
C2059: syntax error : '('
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(251) : error
C2059: syntax error : '('
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(253) : error
C2059: syntax error : '('
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(255) : error
C2059: syntax error : '('
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(257) : error
C2059: syntax error : '('
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(258) : error
C2059: syntax error : '('
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(994) : error
C2556: 'const wchar_t *wcschr(const wchar_t *,wchar_t)' : overloaded
function differs only by return type from 'wchar_t *wcschr(const wchar_t
*,wchar_t)'
        include\string.h(36) : see declaration of 'wcschr'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(994) : error
C2373: 'wcschr' : redefinition; different type modifiers
        include\string.h(36) : see declaration of 'wcschr'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(1026) :
error C2556: 'const wchar_t *wcspbrk(const wchar_t *,const wchar_t *)' :
overloaded function differs only by return type from 'wchar_t *wcspbrk(const
wchar_t *,const wchar_t *)'
        include\string.h(46) : see declaration of 'wcspbrk'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(1026) :
error C2373: 'wcspbrk' : redefinition; different type modifiers
        include\string.h(46) : see declaration of 'wcspbrk'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(1027) :
error C2556: 'const wchar_t *wcsrchr(const wchar_t *,wchar_t)' : overloaded
function differs only by return type from 'wchar_t *wcsrchr(const wchar_t
*,wchar_t)'
        include\string.h(47) : see declaration of 'wcsrchr'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(1027) :
error C2373: 'wcsrchr' : redefinition; different type modifiers
        include\string.h(47) : see declaration of 'wcsrchr'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(1029) :
error C2556: 'const wchar_t *wcsstr(const wchar_t *,const wchar_t *)' :
overloaded function differs only by return type from 'wchar_t *wcsstr(const
wchar_t *,const wchar_t *)'
        include\string.h(49) : see declaration of 'wcsstr'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(1029) :
error C2373: 'wcsstr' : redefinition; different type modifiers
        include\string.h(49) : see declaration of 'wcsstr'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(1079) :
error C2264: 'wcschr' : error in function definition or declaration;
function not called
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(1081) :
error C2264: 'wcspbrk' : error in function definition or declaration;
function not called
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(1083) :
error C2264: 'wcsrchr' : error in function definition or declaration;
function not called
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(1085) :
error C2264: 'wcsstr' : error in function definition or declaration;
function not called
include\stdio.h(62) : warning C4005: 'stdin' : macro redefinition
        C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(81)
: see previous definition of 'stdin'
include\stdio.h(63) : warning C4005: 'stdout' : macro redefinition
        C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(82)
: see previous definition of 'stdout'
include\stdio.h(64) : warning C4005: 'stderr' : macro redefinition
        C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(83)
: see previous definition of 'stderr'
include\stdio.h(74) : error C2375: 'swprintf' : redefinition; different
linkage
        C:\Program Files\Microsoft Visual Studio
9.0\VC\INCLUDE\swprintf.inl(85) : see declaration of 'swprintf'
include\stdio.h(75) : error C2375: 'vswprintf' : redefinition; different
linkage
        C:\Program Files\Microsoft Visual Studio
9.0\VC\INCLUDE\swprintf.inl(97) : see declaration of 'vswprintf'
include\stdio.h(125) : error C2733: second C linkage of overloaded function
'_wfdopen' not allowed
        include\stdio.h(125) : see declaration of '_wfdopen'
include\stdlib.h(48) : warning C4273: '_wputenv' : inconsistent dll linkage
        C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(955)
: see previous definition of '_wputenv'
include\stdlib.h(90) : warning C4273: '_ultow' : inconsistent dll linkage
        C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(884)
: see previous definition of '_ultow'
include\stdlib.h(91) : warning C4273: '_itow' : inconsistent dll linkage
        C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(878)
: see previous definition of '_itow'
include\stdlib.h(92) : warning C4273: '_ltow' : inconsistent dll linkage
        C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(881)
: see previous definition of '_ltow'
include\stdlib.h(95) : warning C4273: 'wcstoul' : inconsistent dll linkage
        C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\wchar.h(889)
: see previous definition of 'wcstoul'
c:\workspace\wcecompat-master\src\ts_string.h(106) : warning C4996:
'wcscpy': This function or variable may be unsafe. Consider using wcscpy_s
instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online
help for details.
        include\string.h(38) : see declaration of 'wcscpy'
c:\workspace\wcecompat-master\src\ts_string.h(151) : warning C4996:
'wcscat': This function or variable may be unsafe. Consider using wcscat_s
instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online
help for details.
        include\string.h(35) : see declaration of 'wcscat'

------------------------------------------------------------------------------------------------

Am i missing any configuration step? I got stuck for 2 weeks now. Please
help me to resolve this error.
Let me know for more details
Thanks in advance





--
View this message in context: 
http://openssl.6102.n7.nabble.com/Windows-CE-VC-CE-Compilation-problem-tp45909p49773.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to