RE: [openssl.org #2155] [Bug report] OpenSSL 1.0.0 64-bit build fails under MSVC

2010-02-04 Thread Big Muscle via RT
I've updated to the latest snapshot and the problem has gone. If it appears 
again, I will try what you advise. Thanks.

-Original Message-
From: Stephen Henson via RT [mailto:r...@openssl.org] 
Sent: Thursday, February 04, 2010 4:14 AM
To: bigmus...@centrum.cz
Cc: openssl-dev@openssl.org
Subject: [openssl.org #2155] [Bug report] OpenSSL 1.0.0 64-bit build fails 
under MSVC 

> [bigmus...@centrum.cz - Wed Feb 03 22:37:19 2010]:
> 
> Thanks. I tried your patch and now it compiles well.
> 
> However, I'm not able to make TLS connections with that. I often get
>"sslv3 alert bad record mac" or "decryption failed or bad record
>mac". No problem when using x64 with no-asm, but I guess it will be
>different problem.
> 

You could also try nasm. That's not tricky to do, all you need to do is
download the latest version from for example:

http://www.nasm.us/pub/nasm/releasebuilds/2.07/nasm-2.07.zip

and extract nasm.exe somewhere on your path. Don't have access to Win64
or I'd test this myself.

Steve.
-- 
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org



__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org


[openssl.org #2155] [Bug report] OpenSSL 1.0.0 64-bit build fails under MSVC

2010-02-03 Thread Stephen Henson via RT
> [bigmus...@centrum.cz - Wed Feb 03 22:37:19 2010]:
> 
> Thanks. I tried your patch and now it compiles well.
> 
> However, I'm not able to make TLS connections with that. I often get
>"sslv3 alert bad record mac" or "decryption failed or bad record
>mac". No problem when using x64 with no-asm, but I guess it will be
>different problem.
> 

You could also try nasm. That's not tricky to do, all you need to do is
download the latest version from for example:

http://www.nasm.us/pub/nasm/releasebuilds/2.07/nasm-2.07.zip

and extract nasm.exe somewhere on your path. Don't have access to Win64
or I'd test this myself.

Steve.
-- 
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org

__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org


[openssl.org #2155] [Bug report] OpenSSL 1.0.0 64-bit build fails under MSVC

2010-02-03 Thread Stephen Henson via RT
> [bigmus...@centrum.cz - Wed Feb 03 22:37:19 2010]:
> 
> Thanks. I tried your patch and now it compiles well.
> 
> However, I'm not able to make TLS connections with that. I often get
>"sslv3 alert bad record mac" or "decryption failed or bad record
>mac". No problem when using x64 with no-asm, but I guess it will be
>different problem.
> 

Does the self test work i.e. nmake -f ms\ntdll.mak test

Otherwise one for Andy I think...

Steve.
-- 
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org

__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org


RE: [openssl.org #2155] [Bug report] OpenSSL 1.0.0 64-bit build fails under MSVC

2010-02-03 Thread Big Muscle via RT
Thanks. I tried your patch and now it compiles well.

However, I'm not able to make TLS connections with that. I often get "sslv3 
alert bad record mac" or "decryption failed or bad record mac". No problem when 
using x64 with no-asm, but I guess it will be different problem.

-Original Message-
From: Stephen Henson via RT [mailto:r...@openssl.org] 
Sent: Wednesday, February 03, 2010 7:27 PM
To: bigmus...@centrum.cz
Cc: openssl-dev@openssl.org
Subject: [openssl.org #2155] [Bug report] OpenSSL 1.0.0 64-bit build fails 
under MSVC 

> [bigmus...@centrum.cz - Wed Feb 03 17:40:50 2010]:
> 
> No, I didn't. Since I'm not too familiar with assembler things, I just
>wanted to use only that one which is available with MSVS2008.
> 
> Anyway, I'm not sure if it would help. If I look at errorneous lines,
>they look like "   DD  1h, 0x0002, 0x0004,
>0x0008". Question is why 1st hexa-value has different format
>(01h) than the rest (0x02)?
> 

Ah, good catch. I've fixed the asm translation script now. Now compiles
but don't have a WIN64 platform to test it on. Try the next shapshot,
current CVS or just apply this patch:

http://cvs.openssl.org/chngview?cn=19243

Let me know if that works for you.

Steve.
-- 
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org



__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org


[openssl.org #2155] [Bug report] OpenSSL 1.0.0 64-bit build fails under MSVC

2010-02-03 Thread Stephen Henson via RT
> [bigmus...@centrum.cz - Wed Feb 03 17:40:50 2010]:
> 
> No, I didn't. Since I'm not too familiar with assembler things, I just
>wanted to use only that one which is available with MSVS2008.
> 
> Anyway, I'm not sure if it would help. If I look at errorneous lines,
>they look like "   DD  1h, 0x0002, 0x0004,
>0x0008". Question is why 1st hexa-value has different format
>(01h) than the rest (0x02)?
> 

Ah, good catch. I've fixed the asm translation script now. Now compiles
but don't have a WIN64 platform to test it on. Try the next shapshot,
current CVS or just apply this patch:

http://cvs.openssl.org/chngview?cn=19243

Let me know if that works for you.

Steve.
-- 
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org

__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org


RE: [openssl.org #2155] [Bug report] OpenSSL 1.0.0 64-bit build fails under MSVC

2010-02-03 Thread Big Muscle via RT
No, I didn't. Since I'm not too familiar with assembler things, I just wanted 
to use only that one which is available with MSVS2008.

Anyway, I'm not sure if it would help. If I look at errorneous lines, they look 
like "  DD  1h, 0x0002, 0x0004, 0x0008". Question is 
why 1st hexa-value has different format (01h) than the rest (0x02)?

-Original Message-
From: Stephen Henson via RT [mailto:r...@openssl.org] 
Sent: Wednesday, February 03, 2010 4:27 PM
To: bigmus...@centrum.cz
Cc: openssl-dev@openssl.org
Subject: [openssl.org #2155] [Bug report] OpenSSL 1.0.0 64-bit build fails 
under MSVC 

> [bigmus...@centrum.cz - Mon Jan 25 11:42:47 2010]:
> 
> 
> I’m trying to build version 1.0 (doesn’t depend which beta snapshot,
>0.9.8l is ok) under MS Visual Studio 2008 and it fails if building
>64-bit version (switch VC-WIN64A). 32-bit builds ok, also 64-bit
>with “no-asm” builds ok, but it is about 4x slower which is
>unacceptable for our application. OS is Windows 7 Professional x64,
>CPU AMD Athlon II X4 620.
> 
> The 64-bit build ends up with following errors:
> 
> Microsoft (R) Macro Assembler (x64) Version 9.00.30729.01 Copyright
>(C) Microsoft Corporation.  All rights reserved.
> 
>  Assembling: tmp32.dbgaes-x86_64.asm
> tmp32.dbgaes-x86_64.asm(2197) : error A2206:missing operator in
>expression
> tmp32.dbgaes-x86_64.asm(2198) : error A2206:missing operator in
>expression

Have you tried installing and using nasm instead?

Steve.
-- 
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org



__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org


[openssl.org #2155] [Bug report] OpenSSL 1.0.0 64-bit build fails under MSVC

2010-02-03 Thread Stephen Henson via RT
> [bigmus...@centrum.cz - Mon Jan 25 11:42:47 2010]:
> 
> 
> I’m trying to build version 1.0 (doesn’t depend which beta snapshot,
>0.9.8l is ok) under MS Visual Studio 2008 and it fails if building
>64-bit version (switch VC-WIN64A). 32-bit builds ok, also 64-bit
>with “no-asm” builds ok, but it is about 4x slower which is
>unacceptable for our application. OS is Windows 7 Professional x64,
>CPU AMD Athlon II X4 620.
> 
> The 64-bit build ends up with following errors:
> 
> Microsoft (R) Macro Assembler (x64) Version 9.00.30729.01 Copyright
>(C) Microsoft Corporation.  All rights reserved.
> 
>  Assembling: tmp32.dbgaes-x86_64.asm
> tmp32.dbgaes-x86_64.asm(2197) : error A2206:missing operator in
>expression
> tmp32.dbgaes-x86_64.asm(2198) : error A2206:missing operator in
>expression

Have you tried installing and using nasm instead?

Steve.
-- 
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org

__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org


[openssl.org #2155] [Bug report] OpenSSL 1.0.0 64-bit build fails under MSVC

2010-01-25 Thread Big Muscle via RT

I’m trying to build version 1.0 (doesn’t depend which beta snapshot, 0.9.8l is 
ok) under MS Visual Studio 2008 and it fails if building 64-bit version (switch 
VC-WIN64A). 32-bit builds ok, also 64-bit with “no-asm” builds ok, but it is 
about 4x slower which is unacceptable for our application. OS is Windows 7 
Professional x64, CPU AMD Athlon II X4 620.

The 64-bit build ends up with following errors:

Microsoft (R) Macro Assembler (x64) Version 9.00.30729.01 Copyright (C) 
Microsoft Corporation.  All rights reserved.

 Assembling: tmp32.dbgaes-x86_64.asm
tmp32.dbgaes-x86_64.asm(2197) : error A2206:missing operator in expression
tmp32.dbgaes-x86_64.asm(2198) : error A2206:missing operator in expression
tmp32.dbgaes-x86_64.asm(2199) : error A2206:missing operator in expression
tmp32.dbgaes-x86_64.asm(2200) : error A2206:missing operator in expression
tmp32.dbgaes-x86_64.asm(2491) : error A2206:missing operator in expression
tmp32.dbgaes-x86_64.asm(2492) : error A2206:missing operator in expression
tmp32.dbgaes-x86_64.asm(2525) : error A2206:missing operator in expression
tmp32.dbgaes-x86_64.asm(2526) : error A2206:missing operator in expression
tmp32.dbgaes-x86_64.asm(2559) : error A2206:missing operator in expression
tmp32.dbgaes-x86_64.asm(2560) : error A2206:missing operator in expression
tmp32.dbgaes-x86_64.asm(2593) : error A2206:missing operator in expression
tmp32.dbgaes-x86_64.asm(2594) : error A2206:missing operator in expression
tmp32.dbgaes-x86_64.asm(2624) : error A2075:jump destination too far : by 31 by
te(s)
tmp32.dbgaes-x86_64.asm(2631) : error A2075:jump destination too far : by 11 by
te(s)
NMAKE : fatal error U1077: '"C:Program Files (x86)Microsoft Visual Studio 9.0 
VCBINx86_amd64ml64.EXE"' : return code '0x1'
Stop.


-
Big Muscle

__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org