On 17-06-2010 23:40, Harshvir Sidhu wrote:
Hey,
I was trying to build the openssl library with the Visual Studio 2005 configurations for CE. I am getting bunch of errors, first it gave error for standart C string functions. I defined the macro _CRT_SECURE_NO_WARNINGS and it worked for that. Then i needed to define macro OPENSSL_SYSNAME_WIN32, as it was asking for strings.h file.
Then i needed to disable /WX for Optiomization warning.
Now i am getting eror
dso_win32.c
.\crypto\dso\dso_win32.c(90) : error C2373: 'LoadLibraryA' : redefinition; different type modifiers C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winbase.h(5524) : see declaration of 'LoadLibraryA'
This line reveals that your build is somehow misconfigured to use desktop
windows headers ("VC\PlatformSDK") even though you are compiling for CE.
That will obviously confuste the compiler as the definitions in the
desktop windows headers are wrong for CE.

.\crypto\dso\dso_win32.c(262) : warning C4013: 'GetProcAddressA' undefined; assuming extern returning int
This line looks like another side effect of using a messed up mix of
desktop and CE headers.
.\crypto\dso\dso_win32.c(262) : warning C4047: '=' : 'void *' differs in levels of indirection from 'int'
Side effect of previous warning, if the compiler had found the header
with the GetProcAddressA() prototype, it would not have thought the
return value wasn't 'void *'
.\crypto\dso\dso_win32.c(293) : warning C4047: '=' : 'void *' differs in levels of indirection from 'int'
Ditto
.\crypto\dso\dso_win32.c(832) : warning C4047: '=' : 'FARPROC' differs in levels of indirection from 'int'
Ditto
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' : return code '0x2'
This error message tells me that the build was also misconfigured to
invoke the x86/i386 compiler, not the ARM compiler used for most CE
targets.
Just curious, is there some particular compiler needed for getting it compiled without Errors.
// Harshvir
My best guess:  Start by opening a build prompt configured for CE targets,
not a build prompt configured for desktop targets, this should change a
lot of environment variables probably used (directly or indirectly) by
the makefile.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to