----- Original Message ----- From: "Dr. Stephen Henson" <[EMAIL PROTECTED]>
To: <openssl-users@openssl.org>
Sent: Thursday, April 06, 2006 10:38 AM
Subject: Re: Compilation of OpenSSL-fips-1.0 under Windows


On Thu, Apr 06, 2006, Gianluca Varenni wrote:



Ok, almost there...

Downloaded the latest 0.9.7 snapshot (20060406), and uncompressed.

>perl Configure VC-WIN32 fips --with-fipslibdir=c:\msys\1.0\local\ssl\lib

Runs ok.

>ms\do_ms.bat

Runs ok. (FWIW, do_masm.bat runs well too).

Opened a VC2003 command prompt,

>nmake -f ms\nt.mak

It compiles every source properly, but it fails while linking b/c of a
missing obj.

....
       lib /out:out32\libeayfips32.lib
@C:\DOCUME~1\Gianluca\LOCALS~1\Temp\nm1E
A.tmp
Microsoft (R) Library Manager Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

tmp32\cryptlib.obj tmp32\mem.obj tmp32\mem_clr.obj tmp32\mem_dbg.obj
tmp32\cvers
...bla bla bla other .obj files...
j tmp32\ui_err.obj tmp32\ui_lib.obj tmp32\ui_openssl.obj tmp32\ui_util.obj
tmp32
\ui_compat.obj tmp32\krb5_asn.obj advapi32.lib ms\_chkstk.o
LIB : fatal error LNK1181: cannot open input file 'ms\_chkstk.o'
NMAKE : fatal error U1077: 'lib' : return code '0x49d'
Stop.

What I'm doing wrong this time?


Good, that shows just about everything is working OK. To fix that you need to
copy the file ms/_chkstk.o from the FIPS validated sources (the FIPS build
extracts this file automatically) and copy it to the "ms" directory in the
snapshot.

I'll fix the build system so it will also look for it in fipslibdir so you
only have to copy it once.

It worked! Now it builds successfully both the static version (out32) and the dynamic one (out32dll).

Was I the first one successfully compiling the fips certified OpenSSL under Windows (apart from you)?!?
:-)

Thanks for the help
GV




Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to