I was only able to build using "openssl-0.9.8h" - Newer versions (i.e. newer than "9.8h") will not build according to the instructions found in the "install.w32" file. Help!
My Setup:
Windows XP SP3 (32-bit)
Visual Studio 2005
X86
Using instructions from "install.w32" file:
> perl Configure VC-WIN32 --prefix=c:/some/openssl/dir
Where the prefix argument specifies where OpenSSL will be installed to.
Next you need to build the Makefiles and optionally the assembly language
files:
- If you don't want to use the assembly language files at all then run:
> ms\do_ms
Then from the VC++ environment at a prompt do:
> nmake -f ms\ntdll.mak
[-------------------- Results --------------------]
C:\download\openssl\unzip\openssl-0.9.8k>perl Configure VC-WIN32 --prefix=C:\dow
nload\openssl\unzip\openssl-0.9.8k\installPath
Configuring for VC-WIN32
no-camellia [default] OPENSSL_NO_CAMELLIA (skip dir)
no-capieng [default] OPENSSL_NO_CAPIENG (skip dir)
no-cms [default] OPENSSL_NO_CMS (skip dir)
no-gmp [default] OPENSSL_NO_GMP (skip dir)
no-jpake [experimental] OPENSSL_NO_JPAKE (skip dir)
no-krb5 [krb5-flavor not specified] OPENSSL_NO_KRB5
no-mdc2 [default] OPENSSL_NO_MDC2 (skip dir)
no-montasm [default]
no-rc5 [default] OPENSSL_NO_RC5 (skip dir)
no-rfc3779 [default] OPENSSL_NO_RFC3779 (skip dir)
no-seed [default] OPENSSL_NO_SEED (skip dir)
no-shared [default]
no-zlib [default]
no-zlib-dynamic [default]
IsMK1MF=1
CC =cl
CFLAG =-DOPENSSL_THREADS -DDSO_WIN32
EX_LIBS =
CPUID_OBJ =
BN_ASM =bn_asm.o
DES_ENC =des_enc.o fcrypt_b.o
AES_ASM_OBJ =aes_core.o aes_cbc.o
BF_ENC =bf_enc.o
CAST_ENC =c_enc.o
RC4_ENC =rc4_enc.o rc4_skey.o
RC5_ENC =rc5_enc.o
MD5_OBJ_ASM =
SHA1_OBJ_ASM =
RMD160_OBJ_ASM=
PROCESSOR =
RANLIB =true
ARFLAGS =
PERL =perl
THIRTY_TWO_BIT mode
BN_LLONG mode
RC4_INDEX mode
RC4_CHUNK is undefined
Configured for VC-WIN32.
C:\download\openssl\unzip\openssl-0.9.8k>ms\do_ms
C:\download\openssl\unzip\openssl-0.9.8k>perl util\mkfiles.pl 1>MINFO
C:\download\openssl\unzip\openssl-0.9.8k>perl util\mk1mf.pl no-asm VC-WIN32 1>m
s\nt.mak
C:\download\openssl\unzip\openssl-0.9.8k>perl util\mk1mf.pl dll no-asm VC-WIN32
1>ms\ntdll.mak
C:\download\openssl\unzip\openssl-0.9.8k>perl util\mk1mf.pl no-asm VC-CE 1>ms\c
e.mak
%OSVERSION% is not defined at util/pl/VC-32.pl line 57.
Compilation failed in require at util\mk1mf.pl line 151.
C:\download\openssl\unzip\openssl-0.9.8k>perl util\mk1mf.pl dll no-asm VC-CE 1>
ms\cedll.mak
%OSVERSION% is not defined at util/pl/VC-32.pl line 57.
Compilation failed in require at util\mk1mf.pl line 151.
C:\download\openssl\unzip\openssl-0.9.8k>perl util\mkdef.pl 32 libeay 1>ms\libe
ay32.def
C:\download\openssl\unzip\openssl-0.9.8k>perl util\mkdef.pl 32 ssleay 1>ms\ssle
ay32.def
C:\download\openssl\unzip\openssl-0.9.8k>vcvars32.bat
C:\download\openssl\unzip\openssl-0.9.8k>"C:\apps\Microsoft Visual Studio 2005\r
un\Common7\Tools\vsvars32.bat"
Setting environment for using Microsoft Visual Studio 2005 x86 tools.
C:\download\openssl\unzip\openssl-0.9.8k>nmake -f ms\ntdll.mak
Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.
Building OpenSSL
perl util/copy.pl ".\crypto\buildinf.h" "tmp32dll\buildinf.h"
Copying: ./crypto/buildinf.h to tmp32dll/buildinf.h
perl util/copy.pl ".\crypto\opensslconf.h" "inc32\openssl\opensslconf.h"
Copying: ./crypto/opensslconf.h to inc32/openssl/opensslconf.h
cl /Fotmp32dll\cversion.obj -Iinc32 -Itmp32dll /MD /Ox /O2 /Ob2 /W3 /WX
/Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -
DDSO_WIN32 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DOPENSSL_USE_
APPLINK -I. /Fdout32dll -DOPENSSL_NO_CAMELLIA -DOPENSSL_NO_SEED -DOPENSSL_NO_RC5
-DOPENSSL_NO_MDC2 -DOPENSSL_NO_CMS -DOPENSSL_NO_JPAKE -DOPENSSL_NO_CAPIENG -DOP
ENSSL_NO_KRB5 -DOPENSSL_NO_DYNAMIC_ENGINE -D_WINDLL -DOPENSSL_BUILD_SHLIBCRYPTO
-DMK1MF_BUILD -DMK1MF_PLATFORM_VC_WIN32 -c .\crypto\cversion.c
cversion.c
.\crypto\cversion.c(105) : error C2220: warning treated as error - no 'object' f
ile generated
.\crypto\cversion.c(105) : warning C4129: 'd' : unrecognized character escape se
quence
.\crypto\cversion.c(105) : warning C4129: 'o' : unrecognized character escape se
quence
.\crypto\cversion.c(105) : warning C4129: 'o' : unrecognized character escape se
quence
.\crypto\cversion.c(105) : warning C4129: 'i' : unrecognized character escape se
quence
NMAKE : fatal error U1077: '"C:\apps\Microsoft Visual Studio 2005\run\VC\BIN\cl.
EXE"' : return code '0x2'
Stop.
C:\download\openssl\unzip\openssl-0.9.8k>
[---------------- End Results --------------------]
Paul Kelley | Software Engineer, Interface Development | Digital Technology
International<http://www.dtint.com/> | 801-853-5000 office | 801-853-5002
fax | [email protected]<mailto:[email protected]>
|
I was only able to build using “openssl-0.9.8h”
- Newer versions (i.e. newer than “9.8h”) will not build according
to the instructions found in the “install.w32” file. Help! My Setup: Windows XP SP3 (32-bit) Visual Studio 2005 X86 Using instructions from “install.w32” file: >
perl Configure VC-WIN32 --prefix=c:/some/openssl/dir Where
the prefix argument specifies where OpenSSL will be installed to. Next
you need to build the Makefiles and optionally the assembly language files: -
If you don't want to use the assembly language files at all then run:
> ms\do_ms Then
from the VC++ environment at a prompt do: >
nmake -f ms\ntdll.mak [--------------------
Results --------------------] C:\download\openssl\unzip\openssl-0.9.8k>perl
Configure VC-WIN32 --prefix=C:\dow nload\openssl\unzip\openssl-0.9.8k\installPath Configuring
for VC-WIN32
no-camellia [default] OPENSSL_NO_CAMELLIA (skip
dir)
no-capieng [default] OPENSSL_NO_CAPIENG
(skip dir)
no-cms [default]
OPENSSL_NO_CMS (skip dir)
no-gmp [default]
OPENSSL_NO_GMP (skip dir)
no-jpake [experimental]
OPENSSL_NO_JPAKE (skip dir)
no-krb5 [krb5-flavor not
specified] OPENSSL_NO_KRB5
no-mdc2 [default]
OPENSSL_NO_MDC2 (skip dir)
no-montasm [default]
no-rc5 [default]
OPENSSL_NO_RC5 (skip dir)
no-rfc3779 [default] OPENSSL_NO_RFC3779
(skip dir)
no-seed [default]
OPENSSL_NO_SEED (skip dir)
no-shared [default]
no-zlib [default]
no-zlib-dynamic [default] IsMK1MF=1 CC
=cl CFLAG
=-DOPENSSL_THREADS -DDSO_WIN32 EX_LIBS
= CPUID_OBJ
= BN_ASM
=bn_asm.o DES_ENC
=des_enc.o fcrypt_b.o AES_ASM_OBJ
=aes_core.o aes_cbc.o BF_ENC
=bf_enc.o CAST_ENC
=c_enc.o RC4_ENC
=rc4_enc.o rc4_skey.o RC5_ENC
=rc5_enc.o MD5_OBJ_ASM
= SHA1_OBJ_ASM
= RMD160_OBJ_ASM= PROCESSOR
= RANLIB
=true ARFLAGS
= PERL
=perl THIRTY_TWO_BIT
mode BN_LLONG
mode RC4_INDEX
mode RC4_CHUNK
is undefined Configured
for VC-WIN32. C:\download\openssl\unzip\openssl-0.9.8k>ms\do_ms C:\download\openssl\unzip\openssl-0.9.8k>perl
util\mkfiles.pl 1>MINFO C:\download\openssl\unzip\openssl-0.9.8k>perl
util\mk1mf.pl no-asm VC-WIN32 1>m s\nt.mak C:\download\openssl\unzip\openssl-0.9.8k>perl
util\mk1mf.pl dll no-asm VC-WIN32 1>ms\ntdll.mak C:\download\openssl\unzip\openssl-0.9.8k>perl
util\mk1mf.pl no-asm VC-CE 1>ms\c e.mak %OSVERSION%
is not defined at util/pl/VC-32.pl line 57. Compilation
failed in require at util\mk1mf.pl line 151. C:\download\openssl\unzip\openssl-0.9.8k>perl
util\mk1mf.pl dll no-asm VC-CE 1> ms\cedll.mak %OSVERSION%
is not defined at util/pl/VC-32.pl line 57. Compilation
failed in require at util\mk1mf.pl line 151. C:\download\openssl\unzip\openssl-0.9.8k>perl
util\mkdef.pl 32 libeay 1>ms\libe ay32.def C:\download\openssl\unzip\openssl-0.9.8k>perl
util\mkdef.pl 32 ssleay 1>ms\ssle ay32.def C:\download\openssl\unzip\openssl-0.9.8k>vcvars32.bat C:\download\openssl\unzip\openssl-0.9.8k>"C:\apps\Microsoft
Visual Studio 2005\r un\Common7\Tools\vsvars32.bat" Setting
environment for using Microsoft Visual Studio 2005 x86 tools. C:\download\openssl\unzip\openssl-0.9.8k>nmake
-f ms\ntdll.mak Microsoft
(R) Program Maintenance Utility Version 8.00.50727.762 Copyright
(C) Microsoft Corporation. All rights reserved. Building
OpenSSL
perl util/copy.pl ".\crypto\buildinf.h"
"tmp32dll\buildinf.h" Copying:
./crypto/buildinf.h to tmp32dll/buildinf.h
perl util/copy.pl ".\crypto\opensslconf.h"
"inc32\openssl\opensslconf.h" Copying:
./crypto/opensslconf.h to inc32/openssl/opensslconf.h
cl /Fotmp32dll\cversion.obj -Iinc32 -Itmp32dll /MD /Ox /O2 /Ob2 /W3 /WX /Gs0
/GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN - DDSO_WIN32
-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DOPENSSL_USE_ APPLINK
-I. /Fdout32dll -DOPENSSL_NO_CAMELLIA -DOPENSSL_NO_SEED -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2
-DOPENSSL_NO_CMS -DOPENSSL_NO_JPAKE -DOPENSSL_NO_CAPIENG -DOP ENSSL_NO_KRB5
-DOPENSSL_NO_DYNAMIC_ENGINE -D_WINDLL -DOPENSSL_BUILD_SHLIBCRYPTO -DMK1MF_BUILD
-DMK1MF_PLATFORM_VC_WIN32 -c .\crypto\cversion.c cversion.c .\crypto\cversion.c(105)
: error C2220: warning treated as error - no 'object' f ile
generated .\crypto\cversion.c(105)
: warning C4129: 'd' : unrecognized character escape se quence .\crypto\cversion.c(105)
: warning C4129: 'o' : unrecognized character escape se quence .\crypto\cversion.c(105)
: warning C4129: 'o' : unrecognized character escape se quence .\crypto\cversion.c(105)
: warning C4129: 'i' : unrecognized character escape se quence NMAKE
: fatal error U1077: '"C:\apps\Microsoft Visual Studio 2005\run\VC\BIN\cl. EXE"'
: return code '0x2' Stop. C:\download\openssl\unzip\openssl-0.9.8k> [----------------
End Results --------------------] Paul
Kelley |
Software Engineer, Interface Development | Digital Technology International | 801-853-5000
office | 801-853-5002 fax | [email protected] |
