I'm having the issue to build x64-bit DLL flavor of OpenSSL 1.0.1g with VS2010

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

I'm having the issue to build x64-bit DLL flavor of OpenSSL 1.0.1g with VS2010

mikmela
I'm having the issue to build x64-bit DLL flavor of OpenSSL 1.0.1g with VS2010.

The last step when it tries to compile some asm code using ml64 I'm getting the following..

        ml64  /c ms\uptable.asm
Microsoft (R) Macro Assembler (x64) Version 10.00.40219.01
Copyright (C) Microsoft Corporation.  All rights reserved.

 Assembling: ms\uptable.asm
ms\uptable.asm(3) : error A2008:syntax error : OPENSSL_Uplink
ms\uptable.asm(4) : error A2008:syntax error : OPENSSL_UplinkTable
ms\uptable.asm(6) : error A2206:missing operator in expression
ms\uptable.asm(6) : error A2063:can ALIGN only to power of 2 : 0
ms\uptable.asm(7) : error A2008:syntax error : _lazy1
ms\uptable.asm(9) : error A2008:syntax error : mov
ms\uptable.asm(10) : error A2008:syntax error : mov
ms\uptable.asm(11) : error A2008:syntax error : mov
ms\uptable.asm(12) : error A2008:syntax error : mov
ms\uptable.asm(13) : error A2008:syntax error : lea
ms\uptable.asm(14) : error A2008:syntax error : mov
ms\uptable.asm(15) : error A2008:syntax error : call
ms\uptable.asm(16) : error A2008:syntax error : mov
ms\uptable.asm(17) : error A2008:syntax error : mov
ms\uptable.asm(18) : error A2008:syntax error : mov
ms\uptable.asm(19) : error A2008:syntax error : mov
ms\uptable.asm(20) : error A2008:syntax error : lea
ms\uptable.asm(21) : error A2008:syntax error : add
ms\uptable.asm(22) : error A2008:syntax error : jmp
ms\uptable.asm(23) : error A2008:syntax error : _lazy1_end
ms\uptable.asm(24) : error A2008:syntax error : .type
ms\uptable.asm(26) : error A2206:missing operator in expression
ms\uptable.asm(26) : error A2063:can ALIGN only to power of 2 : 0
ms\uptable.asm(27) : error A2008:syntax error : _lazy2
ms\uptable.asm(29) : error A2008:syntax error : mov
ms\uptable.asm(30) : error A2008:syntax error : mov
ms\uptable.asm(31) : error A2008:syntax error : mov
ms\uptable.asm(32) : error A2008:syntax error : mov
ms\uptable.asm(33) : error A2008:syntax error : lea
ms\uptable.asm(34) : error A2008:syntax error : mov
ms\uptable.asm(35) : error A2008:syntax error : call
ms\uptable.asm(36) : error A2008:syntax error : mov
ms\uptable.asm(37) : error A2008:syntax error : mov
ms\uptable.asm(38) : error A2008:syntax error : mov
ms\uptable.asm(39) : error A2008:syntax error : mov
ms\uptable.asm(40) : error A2008:syntax error : lea
ms\uptable.asm(41) : error A2008:syntax error : add
ms\uptable.asm(42) : error A2008:syntax error : jmp
ms\uptable.asm(43) : error A2008:syntax error : _lazy2_end
ms\uptable.asm(44) : error A2008:syntax error : .type
ms\uptable.asm(46) : error A2206:missing operator in expression
ms\uptable.asm(46) : error A2063:can ALIGN only to power of 2 : 0
ms\uptable.asm(47) : error A2008:syntax error : _lazy3
ms\uptable.asm(49) : error A2008:syntax error : mov
ms\uptable.asm(50) : error A2008:syntax error : mov
ms\uptable.asm(51) : error A2008:syntax error : mov
ms\uptable.asm(52) : error A2008:syntax error : mov
ms\uptable.asm(53) : error A2008:syntax error : lea
ms\uptable.asm(54) : error A2008:syntax error : mov
ms\uptable.asm(55) : error A2008:syntax error : call
ms\uptable.asm(56) : error A2008:syntax error : mov
ms\uptable.asm(57) : error A2008:syntax error : mov
ms\uptable.asm(58) : error A2008:syntax error : mov
ms\uptable.asm(59) : error A2008:syntax error : mov
ms\uptable.asm(60) : error A2008:syntax error : lea
ms\uptable.asm(61) : error A2008:syntax error : add
ms\uptable.asm(62) : error A2008:syntax error : jmp
ms\uptable.asm(63) : error A2008:syntax error : _lazy3_end
ms\uptable.asm(64) : error A2008:syntax error : .type
ms\uptable.asm(66) : error A2206:missing operator in expression
ms\uptable.asm(66) : error A2063:can ALIGN only to power of 2 : 0
ms\uptable.asm(67) : error A2008:syntax error : _lazy4
ms\uptable.asm(69) : error A2008:syntax error : mov
ms\uptable.asm(70) : error A2008:syntax error : mov
ms\uptable.asm(71) : error A2008:syntax error : mov
ms\uptable.asm(72) : error A2008:syntax error : mov
ms\uptable.asm(73) : error A2008:syntax error : lea
ms\uptable.asm(74) : error A2008:syntax error : mov
ms\uptable.asm(75) : error A2008:syntax error : call
ms\uptable.asm(76) : error A2008:syntax error : mov
ms\uptable.asm(77) : error A2008:syntax error : mov
ms\uptable.asm(78) : error A2008:syntax error : mov
ms\uptable.asm(79) : error A2008:syntax error : mov
ms\uptable.asm(80) : error A2008:syntax error : lea
ms\uptable.asm(81) : error A2008:syntax error : add
ms\uptable.asm(82) : error A2008:syntax error : jmp
ms\uptable.asm(83) : error A2008:syntax error : _lazy4_end
ms\uptable.asm(84) : error A2008:syntax error : .type
ms\uptable.asm(86) : error A2206:missing operator in expression
ms\uptable.asm(86) : error A2063:can ALIGN only to power of 2 : 0
ms\uptable.asm(87) : error A2008:syntax error : _lazy5
ms\uptable.asm(89) : error A2008:syntax error : mov
ms\uptable.asm(90) : error A2008:syntax error : mov
ms\uptable.asm(91) : error A2008:syntax error : mov
ms\uptable.asm(92) : error A2008:syntax error : mov
ms\uptable.asm(93) : error A2008:syntax error : lea
ms\uptable.asm(94) : error A2008:syntax error : mov
ms\uptable.asm(95) : error A2008:syntax error : call
ms\uptable.asm(96) : error A2008:syntax error : mov
ms\uptable.asm(97) : error A2008:syntax error : mov
ms\uptable.asm(98) : error A2008:syntax error : mov
ms\uptable.asm(99) : error A2008:syntax error : mov
ms\uptable.asm(100) : error A2008:syntax error : lea
ms\uptable.asm(101) : error A2008:syntax error : add
ms\uptable.asm(102) : error A2008:syntax error : jmp
ms\uptable.asm(103) : error A2008:syntax error : _lazy5_end
ms\uptable.asm(104) : error A2008:syntax error : .type
ms\uptable.asm(106) : error A2206:missing operator in expression
ms\uptable.asm(106) : error A2063:can ALIGN only to power of 2 : 0
ms\uptable.asm(107) : error A2008:syntax error : _lazy6
ms\uptable.asm(109) : fatal error A1012:error count exceeds 100; stopping assembly
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\ml64.EXE"' : return code '
0x1'
Stop.

Did anybody experienced it?
Reply | Threaded
Open this post in threaded view
|

Re: I'm having the issue to build x64-bit DLL flavor of OpenSSL 1.0.1g with VS2010

mikmela
This post was updated on .
Just to give a bit more details - I used pretty much default configuration:
1. perl Configure VC-WIN64A no-asm

Configuring for VC-WIN64A
    no-asm          [option]   OPENSSL_NO_ASM
    no-ec_nistp_64_gcc_128 [default]  OPENSSL_NO_EC_NISTP_64_GCC_128 (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-md2          [default]  OPENSSL_NO_MD2 (skip dir)
    no-rc5          [default]  OPENSSL_NO_RC5 (skip dir)
    no-rfc3779      [default]  OPENSSL_NO_RFC3779 (skip dir)
    no-sctp         [default]  OPENSSL_NO_SCTP (skip dir)
    no-shared       [default]
    no-store        [experimental] OPENSSL_NO_STORE (skip dir)
    no-zlib         [default]
    no-zlib-dynamic [default]
IsMK1MF=1
CC            =cl
CFLAG         =-DOPENSSL_THREADS  -DDSO_WIN32 -W3 -Gs0 -Gy -nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_END
IAN -DUNICODE -D_UNICODE -D_CRT_SECURE_NO_DEPRECATE
EX_LIBS       =
CPUID_OBJ     =mem_clr.o
BN_ASM        =bn_asm.o
DES_ENC       =des_enc.o fcrypt_b.o
AES_ENC       =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=
CMLL_ENC      =camellia.o cmll_misc.o cmll_cbc.o
MODES_OBJ     =
ENGINES_OBJ   =
PROCESSOR     =
RANLIB        =true
ARFLAGS       =
PERL          =perl
SIXTY_FOUR_BIT mode
DES_INT used
RC4_CHUNK is unsigned long long

Configured for VC-WIN64A.


2. ms\do_win64a.bat
3. nmake -f ms\ntdll.mak
   
Reply | Threaded
Open this post in threaded view
|

Re: I'm having the issue to build x64-bit DLL flavor of OpenSSL 1.0.1g with VS2010

Mario Brandt-2
You may try

perl Configure VC-WIN64A
ms\do_win64a
nmake -f ms\ntdll.mak
nmake -f ms\ntdll.mak test



On 8 May 2014 23:23, mikmela <[hidden email]> wrote:

> Just to give a bit more details - I used pretty much default configuration:
> 1. perl Configure VC-WIN64A no-asm
>
> Configuring for VC-WIN64A
>     no-asm          [option]   OPENSSL_NO_ASM
>     no-ec_nistp_64_gcc_128 [default]  OPENSSL_NO_EC_NISTP_64_GCC_128 (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-md2          [default]  OPENSSL_NO_MD2 (skip dir)
>     no-rc5          [default]  OPENSSL_NO_RC5 (skip dir)
>     no-rfc3779      [default]  OPENSSL_NO_RFC3779 (skip dir)
>     no-sctp         [default]  OPENSSL_NO_SCTP (skip dir)
>     no-shared       [default]
>     no-store        [experimental] OPENSSL_NO_STORE (skip dir)
>     no-zlib         [default]
>     no-zlib-dynamic [default]
> IsMK1MF=1
> CC            =cl
> CFLAG         =-DOPENSSL_THREADS  -DDSO_WIN32 -W3 -Gs0 -Gy -nologo
> -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_END
> IAN -DUNICODE -D_UNICODE -D_CRT_SECURE_NO_DEPRECATE
> EX_LIBS       =
> CPUID_OBJ     =mem_clr.o
> BN_ASM        =bn_asm.o
> DES_ENC       =des_enc.o fcrypt_b.o
> AES_ENC       =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=
> CMLL_ENC      =camellia.o cmll_misc.o cmll_cbc.o
> MODES_OBJ     =
> ENGINES_OBJ   =
> PROCESSOR     =
> RANLIB        =true
> ARFLAGS       =
> PERL          =perl
> SIXTY_FOUR_BIT mode
> DES_INT used
> RC4_CHUNK is unsigned long long
>
> Configured for VC-WIN64A.
>
>
> 2. Configuring for VC-WIN64A
> 3. nmake -f ms\ntdll.mak
>
>
>
>
> --
> View this message in context: http://openssl.6102.n7.nabble.com/I-m-having-the-issue-to-build-x64-bit-DLL-flavor-of-OpenSSL-1-0-1g-with-VS2010-tp50031p50032.html
> Sent from the OpenSSL - Dev mailing list archive at Nabble.com.
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> Development Mailing List                       [hidden email]
> Automated List Manager                           [hidden email]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: I'm having the issue to build x64-bit DLL flavor of OpenSSL 1.0.1g with VS2010

Steven Kneizys
In reply to this post by mikmela
This:
>>perl Configure VC-WIN64A no-asm

tells it to configure without assembly modules, but 

>>the last step when it tries to compile some asm code using ml64

is where you are having trouble!  Make sure you are starting with a clean (fresh pristine) directory tree.  

I currently do not have access to VS2010, I use the VS 2012/2013 express editions and it works for me there.  On VS 2013 express this worked OK for me on 1.0.1g:
perl Configure VC-WIN64A no-asm
ms\do_win64a
nmake -f ms\ntdll.mak

(If you had wanted to do it with assembly modules you will need NASM.)

Best of luck,

Steve..

On Thu, May 8, 2014 at 5:23 PM, mikmela <[hidden email]> wrote:
Just to give a bit more details - I used pretty much default configuration:
1. perl Configure VC-WIN64A no-asm

Configuring for VC-WIN64A
    no-asm          [option]   OPENSSL_NO_ASM
    no-ec_nistp_64_gcc_128 [default]  OPENSSL_NO_EC_NISTP_64_GCC_128 (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-md2          [default]  OPENSSL_NO_MD2 (skip dir)
    no-rc5          [default]  OPENSSL_NO_RC5 (skip dir)
    no-rfc3779      [default]  OPENSSL_NO_RFC3779 (skip dir)
    no-sctp         [default]  OPENSSL_NO_SCTP (skip dir)
    no-shared       [default]
    no-store        [experimental] OPENSSL_NO_STORE (skip dir)
    no-zlib         [default]
    no-zlib-dynamic [default]
IsMK1MF=1
CC            =cl
CFLAG         =-DOPENSSL_THREADS  -DDSO_WIN32 -W3 -Gs0 -Gy -nologo
-DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_END
IAN -DUNICODE -D_UNICODE -D_CRT_SECURE_NO_DEPRECATE
EX_LIBS       =
CPUID_OBJ     =mem_clr.o
BN_ASM        =bn_asm.o
DES_ENC       =des_enc.o fcrypt_b.o
AES_ENC       =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=
CMLL_ENC      =camellia.o cmll_misc.o cmll_cbc.o
MODES_OBJ     =
ENGINES_OBJ   =
PROCESSOR     =
RANLIB        =true
ARFLAGS       =
PERL          =perl
SIXTY_FOUR_BIT mode
DES_INT used
RC4_CHUNK is unsigned long long

Configured for VC-WIN64A.


2. Configuring for VC-WIN64A
3. nmake -f ms\ntdll.mak




--
View this message in context: http://openssl.6102.n7.nabble.com/I-m-having-the-issue-to-build-x64-bit-DLL-flavor-of-OpenSSL-1-0-1g-with-VS2010-tp50031p50032.html
Sent from the OpenSSL - Dev mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]



--
Steve Kneizys
Senior Business Process Engineer
Voice: (610) 256-1396  [For Emergency Service (888)864-3282]
Ferrilli Information Group -- Quality Service and Solutions for Higher Education
web: http://www.ferrilli.com/

Making you a success while exceeding your expectations.
Reply | Threaded
Open this post in threaded view
|

Re: I'm having the issue to build x64-bit DLL flavor of OpenSSL 1.0.1g with VS2010

mikmela
This post was updated on .
Not sure what I'm doing wrong:
Unzip tar with 1.0.1g and in Visual Studio x64 Win64 Command Prompt (2010) :
1. perl Configure VC-WIN64A no-asm
2. ms\do_win64a>txt.txt 2>&1
The next thing it fails the masm compilation

perl util\mkfiles.pl  1>MINFO

cmd /c "nasm -f win64 -v"  1>NUL 2>&1

if 1 NEQ 0 goto ml64

perl ms\uplink-x86_64.pl masm  1>ms\uptable.asm

ml64 -c -Foms\uptable.obj ms\uptable.asm
 Assembling: ms\uptable.asm
ms\uptable.asm(3) : error A2008:syntax error : OPENSSL_Uplink
ms\uptable.asm(4) : error A2008:syntax error : OPENSSL_UplinkTable
ms\uptable.asm(6) : error A2206:missing operator in expression
ms\uptable.asm(6) : error A2063:can ALIGN only to power of 2 : 0
ms\uptable.asm(7) : error A2008:syntax error : _lazy1
ms\uptable.asm(9) : error A2008:syntax error : mov
ms\uptable.asm(10) : error A2008:syntax error : mov
ms\uptable.asm(11) : error A2008:syntax error : mov
ms\uptable.asm(12) : error A2008:syntax error : mov
ms\uptable.asm(13) : error A2008:syntax error : lea
ms\uptable.asm(14) : error A2008:syntax error : mov
ms\uptable.asm(15) : error A2008:syntax error : call
ms\uptable.asm(16) : error A2008:syntax error : mov
ms\uptable.asm(17) : error A2008:syntax error : mov
ms\uptable.asm(18) : error A2008:syntax error : mov
ms\uptable.asm(19) : error A2008:syntax error : mov
ms\uptable.asm(20) : error A2008:syntax error : lea
ms\uptable.asm(21) : error A2008:syntax error : add
ms\uptable.asm(22) : error A2008:syntax error : jmp
ms\uptable.asm(23) : error A2008:syntax error : _lazy1_end
ms\uptable.asm(24) : error A2008:syntax error : .type
ms\uptable.asm(26) : error A2206:missing operator in expression
ms\uptable.asm(26) : error A2063:can ALIGN only to power of 2 : 0
ms\uptable.asm(27) : error A2008:syntax error : _lazy2
ms\uptable.asm(29) : error A2008:syntax error : mov
ms\uptable.asm(30) : error A2008:syntax error : mov
ms\uptable.asm(31) : error A2008:syntax error : mov
ms\uptable.asm(32) : error A2008:syntax error : mov
ms\uptable.asm(33) : error A2008:syntax error : lea
ms\uptable.asm(34) : error A2008:syntax error : mov
ms\uptable.asm(35) : error A2008:syntax error : call
ms\uptable.asm(36) : error A2008:syntax error : mov
ms\uptable.asm(37) : error A2008:syntax error : mov
ms\uptable.asm(38) : error A2008:syntax error : mov
ms\uptable.asm(39) : error A2008:syntax error : mov
ms\uptable.asm(40) : error A2008:syntax error : lea
ms\uptable.asm(41) : error A2008:syntax error : add
ms\uptable.asm(42) : error A2008:syntax error : jmp
ms\uptable.asm(43) : error A2008:syntax error : _lazy2_end
ms\uptable.asm(44) : error A2008:syntax error : .type
ms\uptable.asm(46) : error A2206:missing operator in expression
ms\uptable.asm(46) : error A2063:can ALIGN only to power of 2 : 0
ms\uptable.asm(47) : error A2008:syntax error : _lazy3
ms\uptable.asm(49) : error A2008:syntax error : mov
ms\uptable.asm(50) : error A2008:syntax error : mov
ms\uptable.asm(51) : error A2008:syntax error : mov
ms\uptable.asm(52) : error A2008:syntax error : mov
ms\uptable.asm(53) : error A2008:syntax error : lea
ms\uptable.asm(54) : error A2008:syntax error : mov
ms\uptable.asm(55) : error A2008:syntax error : call
ms\uptable.asm(56) : error A2008:syntax error : mov
ms\uptable.asm(57) : error A2008:syntax error : mov
ms\uptable.asm(58) : error A2008:syntax error : mov
ms\uptable.asm(59) : error A2008:syntax error : mov
ms\uptable.asm(60) : error A2008:syntax error : lea
ms\uptable.asm(61) : error A2008:syntax error : add
ms\uptable.asm(62) : error A2008:syntax error : jmp
ms\uptable.asm(63) : error A2008:syntax error : _lazy3_end
ms\uptable.asm(64) : error A2008:syntax error : .type
ms\uptable.asm(66) : error A2206:missing operator in expression
ms\uptable.asm(66) : error A2063:can ALIGN only to power of 2 : 0
ms\uptable.asm(67) : error A2008:syntax error : _lazy4
ms\uptable.asm(69) : error A2008:syntax error : mov
ms\uptable.asm(70) : error A2008:syntax error : mov
ms\uptable.asm(71) : error A2008:syntax error : mov
ms\uptable.asm(72) : error A2008:syntax error : mov
ms\uptable.asm(73) : error A2008:syntax error : lea
ms\uptable.asm(74) : error A2008:syntax error : mov
ms\uptable.asm(75) : error A2008:syntax error : call
ms\uptable.asm(76) : error A2008:syntax error : mov
ms\uptable.asm(77) : error A2008:syntax error : mov
ms\uptable.asm(78) : error A2008:syntax error : mov
ms\uptable.asm(79) : error A2008:syntax error : mov
ms\uptable.asm(80) : error A2008:syntax error : lea
ms\uptable.asm(81) : error A2008:syntax error : add
ms\uptable.asm(82) : error A2008:syntax error : jmp
ms\uptable.asm(83) : error A2008:syntax error : _lazy4_end
ms\uptable.asm(84) : error A2008:syntax error : .type
ms\uptable.asm(86) : error A2206:missing operator in expression
ms\uptable.asm(86) : error A2063:can ALIGN only to power of 2 : 0
ms\uptable.asm(87) : error A2008:syntax error : _lazy5
ms\uptable.asm(89) : error A2008:syntax error : mov
ms\uptable.asm(90) : error A2008:syntax error : mov
ms\uptable.asm(91) : error A2008:syntax error : mov
ms\uptable.asm(92) : error A2008:syntax error : mov
ms\uptable.asm(93) : error A2008:syntax error : lea
ms\uptable.asm(94) : error A2008:syntax error : mov
ms\uptable.asm(95) : error A2008:syntax error : call
ms\uptable.asm(96) : error A2008:syntax error : mov
ms\uptable.asm(97) : error A2008:syntax error : mov
ms\uptable.asm(98) : error A2008:syntax error : mov
ms\uptable.asm(99) : error A2008:syntax error : mov
ms\uptable.asm(100) : error A2008:syntax error : lea
ms\uptable.asm(101) : error A2008:syntax error : add
ms\uptable.asm(102) : error A2008:syntax error : jmp
ms\uptable.asm(103) : error A2008:syntax error : _lazy5_end
ms\uptable.asm(104) : error A2008:syntax error : .type
ms\uptable.asm(106) : error A2206:missing operator in expression
ms\uptable.asm(106) : error A2063:can ALIGN only to power of 2 : 0
ms\uptable.asm(107) : error A2008:syntax error : _lazy6
ms\uptable.asm(109) : fatal error A1012:error count exceeds 100; stopping assembly
Microsoft (R) Macro Assembler (x64) Version 10.00.40219.01
Copyright (C) Microsoft Corporation.  All rights reserved.


perl util\mk1mf.pl VC-WIN64A  1>ms\nt.mak

perl util\mk1mf.pl dll VC-WIN64A  1>ms\ntdll.mak

perl util\mkdef.pl 32 libeay  1>ms\libeay32.def

perl util\mkdef.pl 32 ssleay  1>ms\ssleay32.def


So before even compiling the actual source it is already failing...
And then it fails again with error I already quoted in earlier posts...
It seems that perl script uplink-x86_64.pl  generating ms\uptable.asm  giving me this problem...
I'm using: This is perl, version 5.005_03 built for MSWin32-x86

Any ideas?
Reply | Threaded
Open this post in threaded view
|

Re: I'm having the issue to build x64-bit DLL flavor of OpenSSL 1.0.1g with VS2010

Steven Kneizys
You might want to install NASM so that MASM won't fail.  

Also, perl's before 5.8 (i think) do not have Unicode and handle bytes a bit differently, I would recommend an upgrade there.

Steve...


On Mon, May 12, 2014 at 12:54 PM, mikmela <[hidden email]> wrote:
Not sure what I'm doing wrong:
Unzip tar with 1.0.1g and in Visual Studio x64 Win64 Command Prompt (2010) :
1. perl Configure VC-WIN64A no-asm
2. ms\do_win64a>txt.txt 2>&1
The next thing it fails the masm compilation

C:\Users\mmelamud\Downloads\openssl-1.0.1g.tar\openssl-1.0.1g-x64\openssl-1.0.1g\openssl-1.0.1g>perl
util\mkfiles.pl  1>MINFO

C:\Users\mmelamud\Downloads\openssl-1.0.1g.tar\openssl-1.0.1g-x64\openssl-1.0.1g\openssl-1.0.1g>cmd
/c "nasm -f win64 -v"  1>NUL 2>&1

C:\Users\mmelamud\Downloads\openssl-1.0.1g.tar\openssl-1.0.1g-x64\openssl-1.0.1g\openssl-1.0.1g>if
1 NEQ 0 goto ml64

C:\Users\mmelamud\Downloads\openssl-1.0.1g.tar\openssl-1.0.1g-x64\openssl-1.0.1g\openssl-1.0.1g>perl
ms\uplink-x86_64.pl masm  1>ms\uptable.asm

C:\Users\mmelamud\Downloads\openssl-1.0.1g.tar\openssl-1.0.1g-x64\openssl-1.0.1g\openssl-1.0.1g>ml64
-c -Foms\uptable.obj ms\uptable.asm
* Assembling: ms\uptable.asm
ms\uptable.asm(3) : error A2008:syntax error : OPENSSL_Uplink
ms\uptable.asm(4) : error A2008:syntax error : OPENSSL_UplinkTable
ms\uptable.asm(6) : error A2206:missing operator in expression
ms\uptable.asm(6) : error A2063:can ALIGN only to power of 2 : 0
ms\uptable.asm(7) : error A2008:syntax error : _lazy1
ms\uptable.asm(9) : error A2008:syntax error : mov
ms\uptable.asm(10) : error A2008:syntax error : mov
ms\uptable.asm(11) : error A2008:syntax error : mov
ms\uptable.asm(12) : error A2008:syntax error : mov
ms\uptable.asm(13) : error A2008:syntax error : lea
ms\uptable.asm(14) : error A2008:syntax error : mov
ms\uptable.asm(15) : error A2008:syntax error : call
ms\uptable.asm(16) : error A2008:syntax error : mov
ms\uptable.asm(17) : error A2008:syntax error : mov
ms\uptable.asm(18) : error A2008:syntax error : mov
ms\uptable.asm(19) : error A2008:syntax error : mov
ms\uptable.asm(20) : error A2008:syntax error : lea
ms\uptable.asm(21) : error A2008:syntax error : add
ms\uptable.asm(22) : error A2008:syntax error : jmp
ms\uptable.asm(23) : error A2008:syntax error : _lazy1_end
ms\uptable.asm(24) : error A2008:syntax error : .type
ms\uptable.asm(26) : error A2206:missing operator in expression
ms\uptable.asm(26) : error A2063:can ALIGN only to power of 2 : 0
ms\uptable.asm(27) : error A2008:syntax error : _lazy2
ms\uptable.asm(29) : error A2008:syntax error : mov
ms\uptable.asm(30) : error A2008:syntax error : mov
ms\uptable.asm(31) : error A2008:syntax error : mov
ms\uptable.asm(32) : error A2008:syntax error : mov
ms\uptable.asm(33) : error A2008:syntax error : lea
ms\uptable.asm(34) : error A2008:syntax error : mov
ms\uptable.asm(35) : error A2008:syntax error : call
ms\uptable.asm(36) : error A2008:syntax error : mov
ms\uptable.asm(37) : error A2008:syntax error : mov
ms\uptable.asm(38) : error A2008:syntax error : mov
ms\uptable.asm(39) : error A2008:syntax error : mov
ms\uptable.asm(40) : error A2008:syntax error : lea
ms\uptable.asm(41) : error A2008:syntax error : add
ms\uptable.asm(42) : error A2008:syntax error : jmp
ms\uptable.asm(43) : error A2008:syntax error : _lazy2_end
ms\uptable.asm(44) : error A2008:syntax error : .type
ms\uptable.asm(46) : error A2206:missing operator in expression
ms\uptable.asm(46) : error A2063:can ALIGN only to power of 2 : 0
ms\uptable.asm(47) : error A2008:syntax error : _lazy3
ms\uptable.asm(49) : error A2008:syntax error : mov
ms\uptable.asm(50) : error A2008:syntax error : mov
ms\uptable.asm(51) : error A2008:syntax error : mov
ms\uptable.asm(52) : error A2008:syntax error : mov
ms\uptable.asm(53) : error A2008:syntax error : lea
ms\uptable.asm(54) : error A2008:syntax error : mov
ms\uptable.asm(55) : error A2008:syntax error : call
ms\uptable.asm(56) : error A2008:syntax error : mov
ms\uptable.asm(57) : error A2008:syntax error : mov
ms\uptable.asm(58) : error A2008:syntax error : mov
ms\uptable.asm(59) : error A2008:syntax error : mov
ms\uptable.asm(60) : error A2008:syntax error : lea
ms\uptable.asm(61) : error A2008:syntax error : add
ms\uptable.asm(62) : error A2008:syntax error : jmp
ms\uptable.asm(63) : error A2008:syntax error : _lazy3_end
ms\uptable.asm(64) : error A2008:syntax error : .type
ms\uptable.asm(66) : error A2206:missing operator in expression
ms\uptable.asm(66) : error A2063:can ALIGN only to power of 2 : 0
ms\uptable.asm(67) : error A2008:syntax error : _lazy4
ms\uptable.asm(69) : error A2008:syntax error : mov
ms\uptable.asm(70) : error A2008:syntax error : mov
ms\uptable.asm(71) : error A2008:syntax error : mov
ms\uptable.asm(72) : error A2008:syntax error : mov
ms\uptable.asm(73) : error A2008:syntax error : lea
ms\uptable.asm(74) : error A2008:syntax error : mov
ms\uptable.asm(75) : error A2008:syntax error : call
ms\uptable.asm(76) : error A2008:syntax error : mov
ms\uptable.asm(77) : error A2008:syntax error : mov
ms\uptable.asm(78) : error A2008:syntax error : mov
ms\uptable.asm(79) : error A2008:syntax error : mov
ms\uptable.asm(80) : error A2008:syntax error : lea
ms\uptable.asm(81) : error A2008:syntax error : add
ms\uptable.asm(82) : error A2008:syntax error : jmp
ms\uptable.asm(83) : error A2008:syntax error : _lazy4_end
ms\uptable.asm(84) : error A2008:syntax error : .type
ms\uptable.asm(86) : error A2206:missing operator in expression
ms\uptable.asm(86) : error A2063:can ALIGN only to power of 2 : 0
ms\uptable.asm(87) : error A2008:syntax error : _lazy5
ms\uptable.asm(89) : error A2008:syntax error : mov
ms\uptable.asm(90) : error A2008:syntax error : mov
ms\uptable.asm(91) : error A2008:syntax error : mov
ms\uptable.asm(92) : error A2008:syntax error : mov
ms\uptable.asm(93) : error A2008:syntax error : lea
ms\uptable.asm(94) : error A2008:syntax error : mov
ms\uptable.asm(95) : error A2008:syntax error : call
ms\uptable.asm(96) : error A2008:syntax error : mov
ms\uptable.asm(97) : error A2008:syntax error : mov
ms\uptable.asm(98) : error A2008:syntax error : mov
ms\uptable.asm(99) : error A2008:syntax error : mov
ms\uptable.asm(100) : error A2008:syntax error : lea
ms\uptable.asm(101) : error A2008:syntax error : add
ms\uptable.asm(102) : error A2008:syntax error : jmp
ms\uptable.asm(103) : error A2008:syntax error : _lazy5_end
ms\uptable.asm(104) : error A2008:syntax error : .type
ms\uptable.asm(106) : error A2206:missing operator in expression
ms\uptable.asm(106) : error A2063:can ALIGN only to power of 2 : 0
ms\uptable.asm(107) : error A2008:syntax error : _lazy6
ms\uptable.asm(109) : fatal error A1012:error count exceeds 100; stopping
assembly
Microsoft (R) Macro Assembler (x64) Version 10.00.40219.01
Copyright (C) Microsoft Corporation.  All rights reserved.


perl util\mk1mf.pl VC-WIN64A  1>ms\nt.mak

perl util\mk1mf.pl dll VC-WIN64A  1>ms\ntdll.mak

perl util\mkdef.pl 32 libeay  1>ms\libeay32.def

perl util\mkdef.pl 32 ssleay  1>ms\ssleay32.def *

So before even compiling the actual source it is already failing...
And then it fails agains with error I already quoted in earlier posts...
It seems that perl script uplink-x86_64.pl  generating ms\uptable.asm
giving me this problem...
I'm using: *This is perl, version 5.005_03 built for MSWin32-x86*

Any ideas?



--
View this message in context: http://openssl.6102.n7.nabble.com/I-m-having-the-issue-to-build-x64-bit-DLL-flavor-of-OpenSSL-1-0-1g-with-VS2010-tp50031p50105.html
Sent from the OpenSSL - Dev mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]



--
Steve Kneizys
Senior Business Process Engineer
Voice: (610) 256-1396  [For Emergency Service (888)864-3282]
Ferrilli Information Group -- Quality Service and Solutions for Higher Education
web: http://www.ferrilli.com/

Making you a success while exceeding your expectations.
Reply | Threaded
Open this post in threaded view
|

Re: I'm having the issue to build x64-bit DLL flavor of OpenSSL 1.0.1g with VS2010

mikmela
Thank you Steven!
Steven Kneizys wrote
Also, perl's before 5.8 (i think) do not have Unicode and handle bytes a
bit differently, I would recommend an upgrade there.

Steve...
I installed latest perl and that was it!!!

Thanks to everyone who triied to help as well!