Bonjour Users,

I am compiling fips enabled/compliant openssl with openssl-fips-2.0 & 
openssl.1.0 from Visual studio 2008 on windows XP SP3. I am running the 
commands as listed in the Article 4.3 (Building and Installing the FIPS Object 
Module with OpenSSL on Windows) of "User Guide for the OpenSSL FIPS Object 
Module v2.0"

My commands are:

cd C:\openssl-fips-2.0\
ms\do_fips [no-asm]
Building OpenSSL
perl util/mkdir-p.pl "tmp32dll"
created directory `tmp32dll'
perl util/mkdir-p.pl "out32dll"
created directory `out32dll'
perl util/mkdir-p.pl "inc32"
created directory `inc32'
perl util/mkdir-p.pl "inc32\openssl"
created directory `inc32/openssl'
perl util/copy.pl ".\.\e_os.h" "tmp32dll\e_os.h"
Copying: ././e_os.h to tmp32dll/e_os.h
perl util/copy.pl ".\crypto\cryptlib.h" "tmp32dll\cryptlib.h"
...
...
...
... long output
...
...
...
created directory `/usr'
created directory `/usr/local'
created directory `/usr/local/ssl'
created directory `/usr/local/ssl/fips-2.0'
perl util/mkdir-p.pl "\usr\local\ssl\fips-2.0\bin"
created directory `/usr/local/ssl/fips-2.0/bin'
perl util/mkdir-p.pl "\usr\local\ssl\fips-2.0\include"
created directory `/usr/local/ssl/fips-2.0/include'
perl util/mkdir-p.pl "\usr\local\ssl\fips-2.0\include\openssl"
created directory `/usr/local/ssl/fips-2.0/include/openssl'
perl util/mkdir-p.pl "\usr\local\ssl\fips-2.0\lib"
created directory `/usr/local/ssl/fips-2.0/lib'
perl util/copy.pl "out32dll\fipscanister.lib" "\usr\local\ssl\fips-2.0\lib"
Copying: out32dll/fipscanister.lib to 
/usr/local/ssl/fips-2.0/lib/fipscanister.lib
perl util/copy.pl "out32dll\fipscanister.lib.sha1" "\usr\local\ssl\fips-2.0\lib"
Copying: out32dll/fipscanister.lib.sha1 to 
/usr/local/ssl/fips-2.0/lib/fipscanister.lib.sha1
perl util/copy.pl -stripcr "fips\fips_premain.c" "\usr\local\ssl\fips-2.0\lib"
Copying: fips/fips_premain.c to /usr/local/ssl/fips-2.0/lib/fips_premain.c
perl util/copy.pl "fips\fips_premain.c.sha1" "\usr\local\ssl\fips-2.0\lib"
Copying: fips/fips_premain.c.sha1 to 
/usr/local/ssl/fips-2.0/lib/fips_premain.c.sha1
perl util/copy.pl "inc32\openssl\fips.h" 
"\usr\local\ssl\fips-2.0\include\openssl"
Copying: inc32/openssl/fips.h to /usr/local/ssl/fips-2.0/include/openssl/fips.h
perl util/copy.pl "inc32\openssl\fips_rand.h" 
"\usr\local\ssl\fips-2.0\include\openssl"
Copying: inc32/openssl/fips_rand.h to 
/usr/local/ssl/fips-2.0/include/openssl/fips_rand.h
perl util/copy.pl "out32dll\fips_standalone_sha1.exe" 
"\usr\local\ssl\fips-2.0\bin"
Copying: out32dll/fips_standalone_sha1.exe to 
/usr/local/ssl/fips-2.0/bin/fips_standalone_sha1.exe
perl util/copy.pl "util\fipslink.pl" "\usr\local\ssl\fips-2.0\bin"
Copying: util/fipslink.pl to /usr/local/ssl/fips-2.0/bin/fipslink.pl

***************************
****FIPS BUILD SUCCESS*****
***************************
Now i assume that the compiled FIPS module resides at 
C:\usr\local\ssl\fips-2.0\lib\
C:\openssl-1.0.0\
perl Configure VC-WIN32 fips --with-fipslibdir=C:\usr\local\ssl\fips-2.0\lib\
target already defined - VC-WIN32 (offending arg: fips)
ms\do_nasm

C:\openssl-1.0.0>perl util\mkfiles.pl  1>MINFO

C:\openssl-1.0.0>perl util\mk1mf.pl nasm VC-WIN32  1>ms\nt.mak
unknown option - static-engine

C:\openssl-1.0.0>perl util\mk1mf.pl dll nasm VC-WIN32  1>ms\ntdll.mak
unknown option - static-engine

C:\openssl-1.0.0>perl util\mk1mf.pl nasm BC-NT  1>ms\bcb.mak
unknown option - static-engine

C:\openssl-1.0.0>perl util\mkdef.pl 32 libeay  1>ms\libeay32.def

C:\openssl-1.0.0>perl util\mkdef.pl 32 ssleay  1>ms\ssleay32.def

If i run whether nmake -f ms\nt.makOR nmake -f ms\ntdll.maki get the same error 
output.
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

Building OpenSSL
perl util/mkdir-p.pl "tmp32"
created directory `tmp32'
perl util/mkdir-p.pl "out32"
created directory `out32'
perl util/mkdir-p.pl "inc32"
created directory `inc32'
perl util/mkdir-p.pl "inc32\openssl"
created directory `inc32/openssl'
perl util/copy.pl ".\.\e_os.h" "tmp32\e_os.h"
Copying: ././e_os.h to tmp32/e_os.h
perl util/copy.pl ".\crypto\cryptlib.h" "tmp32\cryptlib.h"
Copying: ./crypto/cryptlib.h to tmp32/cryptlib.h
perl util/copy.pl ".\crypto\buildinf.h" "tmp32\buildinf.h"
Copying: ./crypto/buildinf.h to tmp32/buildinf.h
perl util/copy.pl ".\crypto\md32_common.h" "tmp32\md32_common.h"
Copying: ./crypto/md32_common.h to tmp32/md32_common.h
perl util/copy.pl ".\crypto\o_time.h" "tmp32\o_time.h"
Copying: ./crypto/o_time.h to tmp32/o_time.h
perl util/copy.pl ".\crypto\o_str.h" "tmp32\o_str.h"
Copying: ./crypto/o_str.h to tmp32/o_str.h
perl util/copy.pl ".\crypto\o_dir.h" "tmp32\o_dir.h"
Copying: ./crypto/o_dir.h to tmp32/o_dir.h
...
...
...
... long output
...
...
...
cl : Command line warning D9035 : option 'O' has been deprecated and will be 
removed in a future release
ebcdic.c
cl /Fotmp32\uid.obj  -Iinc32 -Itmp32 /MT /Ox /O2 /Ob2 -O /Fdout32 
-DOPENSSL_NO_RC5 -DOPENSSL_NO_MD2 -DOPENSSL_NO
_KRB5 -DOPENSSL_NO_JPAKE -DOPENSSL_NO_DYNAMIC_ENGINE /Zl -c .\crypto\uid.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9035 : option 'O' has been deprecated and will be 
removed in a future release
uid.c
cl /Fotmp32\o_time.obj  -Iinc32 -Itmp32 /MT /Ox /O2 /Ob2 -O /Fdout32 
-DOPENSSL_NO_RC5 -DOPENSSL_NO_MD2 -DOPENSSL
_NO_KRB5 -DOPENSSL_NO_JPAKE -DOPENSSL_NO_DYNAMIC_ENGINE /Zl -c .\crypto\o_time.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9035 : option 'O' has been deprecated and will be 
removed in a future release
o_time.c
cl /Fotmp32\o_str.obj  -Iinc32 -Itmp32 /MT /Ox /O2 /Ob2 -O /Fdout32 
-DOPENSSL_NO_RC5 -DOPENSSL_NO_MD2 -DOPENSSL_
NO_KRB5 -DOPENSSL_NO_JPAKE -DOPENSSL_NO_DYNAMIC_ENGINE /Zl -c .\crypto\o_str.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9035 : option 'O' has been deprecated and will be 
removed in a future release
o_str.c
.\crypto\o_str.c(66) : fatal error C1083: Cannot open include file: 
'strings.h': No such file or directory
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 
9.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
Please help me to get fips enabled libeay32.dll


Scott Thomas

Reply via email to