Hello,

 

I have built openssl 098k with visual studio 2005 using the following script 
(batch file)

 

perl.exe Configure VC-WIN32 --prefix=C:\tmpopenssl no-idea no-mdc2 no-rc5 
no-asm no-shared
ms\do_ms
nmake -f ms\nt.mak
nmake -f ms\nt.mak install

 

openssl builds with no problem reporting:

 

Configuring for VC-WIN32

no-asm [option] OPENSSL_NO_ASM

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-idea [option] OPENSSL_NO_IDEA (skip dir)

no-jpake [experimental] OPENSSL_NO_JPAKE (skip dir)

no-krb5 [krb5-flavor not specified] OPENSSL_NO_KRB5

no-mdc2 [option] OPENSSL_NO_MDC2 (skip dir)

no-montasm [default]

no-rc5 [option] OPENSSL_NO_RC5 (skip dir)

no-rfc3779 [default] OPENSSL_NO_RFC3779 (skip dir)

no-seed [default] OPENSSL_NO_SEED (skip dir)

no-shared [option]

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.





openssl-0.9.8k>rem ms\do_masm

openssl-0.9.8k>ms\do_ms

openssl-0.9.8k>perl util\mkfiles.pl 1>MINFO

openssl-0.9.8k>perl util\mk1mf.pl no-asm VC-WIN32 1>ms\nt.mak

openssl-0.9.8k>perl util\mk1mf.pl dll no-asm VC-WIN32 1>ms\ntdll.mak

openssl-0.9.8k>perl util\mk1mf.pl no-asm VC-CE 1>ms\ce.mak

%OSVERSION% is not defined at util/pl/VC-32.pl line 57.

Compilation failed in require at util\mk1mf.pl line 151.

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.

openssl-0.9.8k>perl util\mkdef.pl 32 libeay 1>ms\libeay32.def

openssl-0.9.8k>perl util\mkdef.pl 32 ssleay 1>ms\ssleay32.def

Building OpenSSL

perl util/copy.pl ".\crypto\buildinf.h" "tmp32\buildinf.h"

Copying: ./crypto/buildinf.h to tmp32/buildinf.h

perl util/copy.pl ".\crypto\opensslconf.h" "inc32\openssl\opensslconf.h"

Copying: ./crypto/opensslconf.h to inc32/openssl/opensslconf.h

cl /Fotmp32\cryptlib.obj -Iinc32 -Itmp32 /MT /Ox /O2 /Ob2 /W3 /WX /Gs0 /GF /Gy 
/nologo ...

cl ...

...

...

openssl.c

link /nologo /subsystem:console /opt:ref /out:out32\openssl.exe 
@C:\DOCUME~1\dax\LOCALS~1\Temp\nm451.tmp

IF EXIST out32\openssl.exe.manifest mt -nologo -manifest 
out32\openssl.exe.manifest -outputresource:out32\openssl.exe;1

perl util/mkdir-p.pl "C:\tmpopenssl"

perl util/mkdir-p.pl "C:\tmpopenssl\bin"

created directory `C:/tmpopenssl/bin'

perl util/mkdir-p.pl "C:\tmpopenssl\include"

created directory `C:/tmpopenssl/include'

perl util/mkdir-p.pl "C:\tmpopenssl\include\openssl"

created directory `C:/tmpopenssl/include/openssl'

perl util/mkdir-p.pl "C:\tmpopenssl\lib"

created directory `C:/tmpopenssl/lib'

perl util/copy.pl "inc32\openssl\*.[ch]" "C:\tmpopenssl\include\openssl"

Copying: inc32/openssl/aes.h to C:/tmpopenssl/include/openssl/aes.h

Copying: ...

...

...

...

Copying: inc32/openssl/x509v3.h to C:/tmpopenssl/include/openssl/x509v3.h

perl util/copy.pl "out32\openssl.exe" "C:\tmpopenssl\bin"

Copying: out32/openssl.exe to C:/tmpopenssl/bin/openssl.exe

perl util/copy.pl "apps\openssl.cnf" "C:\tmpopenssl"

Copying: apps/openssl.cnf to C:/tmpopenssl/openssl.cnf

perl util/copy.pl "out32\ssleay32.lib" "C:\tmpopenssl\lib"

Copying: out32/ssleay32.lib to C:/tmpopenssl/lib/ssleay32.lib

perl util/copy.pl "out32\libeay32.lib" "C:\tmpopenssl\lib"

Copying: out32/libeay32.lib to C:/tmpopenssl/lib/libeay32.lib

 

So far so good, however, when I link my project I get the following unresolved 
symbols:

 

connect.obj : error LNK2019: unresolved external symbol _RC4_set_key referenced 
in function "void __cdecl InitializeEncryption()

connect.obj : error LNK2019: unresolved external symbol _HMAC_CTX_cleanup 
referenced in function "void __cdecl InitializeEncryption()

connect.obj : error LNK2019: unresolved external symbol _HMAC_Final referenced 
in function "void __cdecl InitializeEncryption()

connect.obj : error LNK2019: unresolved external symbol _HMAC_Update referenced 
in function "void __cdecl InitializeEncryption()

connect.obj : error LNK2019: unresolved external symbol _HMAC_Init_ex 
referenced in function "void __cdecl InitializeEncryption()

connect.obj : error LNK2019: unresolved external symbol _EVP_sha256 referenced 
in function "void __cdecl InitializeEncryption()

connect.obj : error LNK2019: unresolved external symbol _HMAC_CTX_init 
referenced in function "void __cdecl InitializeEncryption()

connect.obj : error LNK2019: unresolved external symbol _RC4 referenced in 
function "protected: bool __thiscall Connect()

 

 

The connect.obj functions are mine. The code is trying to build a console 
application. Am I leaving something out that I get these unresolved?

 

Thank you, I will greatly appreciate any help.

 

Gary Thomas Marlow

_________________________________________________________________
Insert movie times and more without leaving HotmailĀ®.
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd1_052009

Reply via email to