I downloaded openssl-0.9.8-stable-SNAP-20050805 and compiled it for my
Windows CE platform and had a few problems.

Sometimes "test latest snapshot" *really* means "*latest*":-)

1. In the CFLAGS define, the compiler didn't like the /wd4959.  It
said it was unrecognized and refused to go further.  So I took it out.

This was fixed already.

2. cryptlib.c tried to include windows.h, which the compiler could not
find.  I had to add the following to CFLAGS after the
-I$(WCECOMPAT)/include:

  -I"C:\Program Files\Windows CE Tools\wce420\STANDARDSDK_420\Include\Armv4i"

This is expected to be handled by %INCLUDE% environment variable. It's expected to be set by proper *.BAT script, which you're expected to run prior you run Configure and nmake in *same* command window.

3. In bf_skey, memcpy was undefined,

Will look into it...

4. lpdir_win.c has ENOMEM undefined.  I just added -DENONMEM=1 in CFLAGS.

5. bss_dgram.c has EAGAIN undefined.  I just added -DEAGAIN=14 in CFLAGS.

Steven replied to this.

6. r2c_skey.c had an "Internal compiler error".  I was reading on MSDN
that the arm compiler sometimes blows up trying to optimize loops or
something like that.

Presumably fixed in latest snapshot. "Presumably" means that it's not confirmed yet.

7. The MFLAGS and probably the LFLAGS need /LIBPATH:$(SDK_LIBPATH),
where SDK_LIBPATH is something I added that looks like:

  SDK_LIBPATH="C:\Program Files\Windows CE
Tools\wce420\STANDARDSDK_420\Lib\Armv4i"

This is expected to be handled by %LIB% environment variable [see above]. What were your %INCLUDE% and %LIB% upon nmake time?

8. On that same line, the linker did not like /machine:ARMV4I. Surprisingly, it also threw an error when I changed it to
/machine:ARM.  It was happy when I changed it /machine:thumb.  Not
sure how it knew I has compiling for thumb and not vanilla ARM. Somewhere along the line, I saw that for thumb, the following defines
are also good:

-QRarch4T -DTHUMBSUPPORT -QRinterwork-return

Will be fixed in next snapshot. A.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to