Re: OpenSSL 0.9.8f Win32 Compile Error

2007-10-24 Thread MaxAndr


Alex Pokotilo wrote:
 
 I used following instruction to build the release(I used MSVC 2005 but
 I think it will work with 2003 too).
 
 1) Create build.bat with following content:
 
 @echo off
 rem the following path point to your MSVC 2005 or 2003
 call E:\Program Files\Microsoft Visual Studio 8\VC\bin\vcvars32.bat
 
 IF %1% == build (
 
if not exist ..\ssl_compile md ..\ssl_compile
perl Configure VC-WIN32 --prefix=..\ssl_compile
call ms\do_ms
copy /y ntdll.mak ms\ntdll.mak
nmake -f ms\ntdll.mak
exit /B 0
 )
 
 IF %1% == test (
nmake -f ms\ntdll.mak test
exit /B 0
 )
 
 IF %1% == install (
nmake -f ms\ntdll.mak install
exit /B 0
 )
 
 echo wrong parameter
 exit
 
 2) change path to Visual studio installation. In my example it is
 E:\Program Files\Microsoft Visual Studio 8\VC\bin\vcvars32.bat
 3) copy build.bat to the release root directory
 4) start build.bat build.
 5) when build failed go to ms directory and copy ntdll.mak to the
 release root directory
 6) open ntdll.mak(in the root directory) go to 19th line and delete /Wx
 option.
 7) start build.bat build again.
 
 After successfully build you can run either build test or build
 install
 
 Best Regards
 Alex Pokotilo
 

As well as Chris Clark, I'm trying to compile version 0.9.8f for Windows,
but I'm using VS2005 SP1.
I've done all the steps you've recommended, but I still have some errors
like this

cl /Fotmp32dll\uplink.obj -Iinc32 -Itmp32dll /I D:\Program Files\Microsoft
Visual Studio 8\VC\include /I D:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\Include /MD /Ox /O2 /Ob2 /W3 /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_TLSEXT -DOPENSSL_NO_KRB5
-DOPENSSL_NO_DYNAMIC_ENGINE -D_WINDLL  -c ms\uplink.c
uplink.c
D:\Program Files\Microsoft Visual Studio 8\VC\include\crtdefs.h(556) : error
C2485: 'deprecated' : unrecognized extended attribute
D:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(69) : warning
C4003: not enough actual parameters for macro
'__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX'
D:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(69) : error
C2169: '_strset' : intrinsic function, cannot be defined
D:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(69) : error
C2143: syntax error : missing ')' before '*'
D:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(69) : error
C2082: redefinition of formal parameter '_strset_s'
D:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(69) : error
C2143: syntax error : missing ';' before '*'
D:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(69) : error
C2059: syntax error : ')'
ms\uplink.c(44) : error C2063: 'strcpy' : not a function

The total number of errors/warnings is 78.

Could you or somebody else tell me what I should do to fix the flaw?
I hope that my problem is rather simple since I'm beginner at OpenSSL.
-- 
View this message in context: 
http://www.nabble.com/OpenSSL-0.9.8f-Win32-Compile-Error-tf4616108.html#a13382152
Sent from the OpenSSL - User mailing list archive at Nabble.com.

__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: OpenSSL 0.9.8f Win32 Compile Error

2007-10-22 Thread Thomas J. Hruska

Thomas J. Hruska wrote:

I am trying to compile version 0.9.8f for Windows, using VC++ 6.0,
ActivePerl, and MASM 6.15.8803.

I am following the instructions in INSTALL.W32, which works fine for
the previous 0.9.8f build, but when I get to the point of running
nmake -f ms\ntdll.mak I get the following errors in 0.9.8f:

Building OpenSSL
ml /Cp /coff /c /Cx /Focrypto\sha\asm\sha512-sse2.obj
.\crypto\sha\asm\sha512-sse2.asm
 Assembling: .\crypto\sha\asm\sha512-sse2.asm
.\crypto\sha\asm\sha512-sse2.asm(29) : error A2006: undefined symbol : 
XMMWORD
.\crypto\sha\asm\sha512-sse2.asm(30) : error A2006: undefined symbol : 
XMMWORD
.\crypto\sha\asm\sha512-sse2.asm(31) : error A2006: undefined symbol : 
XMMWORD
.\crypto\sha\asm\sha512-sse2.asm(32) : error A2006: undefined symbol : 
XMMWORD


Actually I get 21 more of these same errors, each with a different 
line number.


Did someone forget to add the equate for XMMWORD?
Can anyone tell me how XMMWORD should be defined?

-Chris


Has this problem been solved yet?  I've got lots of people asking for 
the pre-built binaries of 0.9.8f for Windows and haven't seen anything 
to the effect that this has been fixed.  I can't build this even with 
VS.NET 2003.


Due to the way I build the official binary releases, I can't modify the 
build process to force the compile to succeed.  That is, there has to be 
an official release number from the OpenSSL dev. team.  This probably 
means I'll have to wait for 0.9.8g.


Oops.  Meant 0.9.8h.  Neither 0.9.8f nor 0.9.8g compiles.

--
Thomas Hruska
Shining Light Productions

Home of BMP2AVI, Nuclear Vision, ProtoNova, and Win32 OpenSSL.
http://www.slproweb.com/

Ask me about discounts on any Shining Light Productions product!

__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: OpenSSL 0.9.8f Win32 Compile Error

2007-10-22 Thread Dr. Stephen Henson
On Mon, Oct 22, 2007, Thomas J. Hruska wrote:

 Thomas J. Hruska wrote:
 I am trying to compile version 0.9.8f for Windows, using VC++ 6.0,
 ActivePerl, and MASM 6.15.8803.

 I am following the instructions in INSTALL.W32, which works fine for
 the previous 0.9.8f build, but when I get to the point of running
 nmake -f ms\ntdll.mak I get the following errors in 0.9.8f:

 Building OpenSSL
 ml /Cp /coff /c /Cx /Focrypto\sha\asm\sha512-sse2.obj
 .\crypto\sha\asm\sha512-sse2.asm
  Assembling: .\crypto\sha\asm\sha512-sse2.asm
 .\crypto\sha\asm\sha512-sse2.asm(29) : error A2006: undefined symbol : 
 XMMWORD
 .\crypto\sha\asm\sha512-sse2.asm(30) : error A2006: undefined symbol : 
 XMMWORD
 .\crypto\sha\asm\sha512-sse2.asm(31) : error A2006: undefined symbol : 
 XMMWORD
 .\crypto\sha\asm\sha512-sse2.asm(32) : error A2006: undefined symbol : 
 XMMWORD

 Actually I get 21 more of these same errors, each with a different line 
 number.

 Did someone forget to add the equate for XMMWORD?
 Can anyone tell me how XMMWORD should be defined?

 -Chris
 Has this problem been solved yet?  I've got lots of people asking for the 
 pre-built binaries of 0.9.8f for Windows and haven't seen anything to the 
 effect that this has been fixed.  I can't build this even with VS.NET 
 2003.
 Due to the way I build the official binary releases, I can't modify the 
 build process to force the compile to succeed.  That is, there has to be 
 an official release number from the OpenSSL dev. team.  This probably 
 means I'll have to wait for 0.9.8g.

 Oops.  Meant 0.9.8h.  Neither 0.9.8f nor 0.9.8g compiles.


It's a problem with older versions of MASM.

The following patch works around this issue:

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

However MASM is being phased out in OpenSSL (it wont be supported at all in
0.9.9) so you are advised to switch to the free NASM instead which doesn't
have such problems.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: OpenSSL 0.9.8f Win32 Compile Error

2007-10-21 Thread Thomas J. Hruska

I am trying to compile version 0.9.8f for Windows, using VC++ 6.0,
ActivePerl, and MASM 6.15.8803.

I am following the instructions in INSTALL.W32, which works fine for
the previous 0.9.8f build, but when I get to the point of running
nmake -f ms\ntdll.mak I get the following errors in 0.9.8f:

Building OpenSSL
ml /Cp /coff /c /Cx /Focrypto\sha\asm\sha512-sse2.obj
.\crypto\sha\asm\sha512-sse2.asm
 Assembling: .\crypto\sha\asm\sha512-sse2.asm
.\crypto\sha\asm\sha512-sse2.asm(29) : error A2006: undefined symbol : XMMWORD
.\crypto\sha\asm\sha512-sse2.asm(30) : error A2006: undefined symbol : XMMWORD
.\crypto\sha\asm\sha512-sse2.asm(31) : error A2006: undefined symbol : XMMWORD
.\crypto\sha\asm\sha512-sse2.asm(32) : error A2006: undefined symbol : XMMWORD

Actually I get 21 more of these same errors, each with a different line number.

Did someone forget to add the equate for XMMWORD?
Can anyone tell me how XMMWORD should be defined?

-Chris


Has this problem been solved yet?  I've got lots of people asking for 
the pre-built binaries of 0.9.8f for Windows and haven't seen anything 
to the effect that this has been fixed.  I can't build this even with 
VS.NET 2003.


Due to the way I build the official binary releases, I can't modify the 
build process to force the compile to succeed.  That is, there has to be 
an official release number from the OpenSSL dev. team.  This probably 
means I'll have to wait for 0.9.8g.


--
Thomas Hruska
Shining Light Productions

Home of BMP2AVI, Nuclear Vision, ProtoNova, and Win32 OpenSSL.


__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: OpenSSL 0.9.8f Win32 Compile Error

2007-10-13 Thread Alex Pokotilo
I used following instruction to build the release(I used MSVC 2005 but
I think it will work with 2003 too).

1) Create build.bat with following content:

@echo off
rem the following path point to your MSVC 2005 or 2003
call E:\Program Files\Microsoft Visual Studio 8\VC\bin\vcvars32.bat

IF %1% == build (

   if not exist ..\ssl_compile md ..\ssl_compile
   perl Configure VC-WIN32 --prefix=..\ssl_compile
   call ms\do_ms
   copy /y ntdll.mak ms\ntdll.mak
   nmake -f ms\ntdll.mak
   exit /B 0
)

IF %1% == test (
   nmake -f ms\ntdll.mak test
   exit /B 0
)

IF %1% == install (
   nmake -f ms\ntdll.mak install
   exit /B 0
)

echo wrong parameter
exit

2) change path to Visual studio installation. In my example it is
E:\Program Files\Microsoft Visual Studio 8\VC\bin\vcvars32.bat
3) copy build.bat to the release root directory
4) start build.bat build.
5) when build failed go to ms directory and copy ntdll.mak to the
release root directory
6) open ntdll.mak(in the root directory) go to 19th line and delete /Wx option.
7) start build.bat build again.

After successfully build you can run either build test or build install

Best Regards
Alex Pokotilo

2007/10/13, Chris Clark [EMAIL PROTECTED]:
 I downloaded NASM (nasm-0.99.04-win32.zip) from Soundforge,
 and gave it a try, and when I run ms\do_nasm it is all sucessful
 but now I get a different error when running nmake -f ms\ntdll.mak:

 Microsoft (R) Program Maintenance Utility   Version 6.00.9782.0
 Copyright (C) Microsoft Corp 1988-1998. 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
 nasmw -f win32 -o crypto\cpu_win32.obj .\crypto\cpu_win32.asm
 'nasmw' is not recognized as an internal or external command,
 operable program or batch file.
 NMAKE : fatal error U1077: 'nasmw' : return code '0x1'
 Stop.

 I do not have NASMW, as the only files included in nasm-0.99.04-win32.zip are:

 COPYING
 nasm.exe
 ndisasm.exe

 Can anyone tell me what I am doing wrong?

 -Chris
 __
 OpenSSL Project http://www.openssl.org
 User Support Mailing Listopenssl-users@openssl.org
 Automated List Manager   [EMAIL PROTECTED]



-- 
Regards,
Alex Pokotilo
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


RE: OpenSSL 0.9.8f Win32 Compile Error

2007-10-13 Thread Ariel Salomon

I was able to build OpenSSL 0.9.8f for Win32 using the VS2003 toolchain with 
the newer version of MASM.  The only added config was to copy ML.EXE from 
VS2005 and place it in the path before the VS2003 tools.

The newer ML supports the SSE2 instructions.  I don't believe SSE3 is an issue 
here.

  - Ariel


From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Chris Clark [EMAIL 
PROTECTED]
Sent: Friday, October 12, 2007 3:58 PM
To: openssl-users@openssl.org
Subject: Re: OpenSSL 0.9.8f Win32 Compile Error

 Did someone forget to add the equate for XMMWORD?
 Can anyone tell me how XMMWORD should be defined?

It appears that I need more then just the newer version of MASM,
and while reading the MASM32 forums they reference this page:
http://www.intel.com/cd/ids/developer/asmo-na/eng/167741.htm?page=6

It mentions that the following include file is needed to assemble SSE3
instructions: 'include ia_pni.inc'

Can anyone tell me where to find this, or of there is a simpler
solution for compiling 0.9.8F for Windows?

- Chris
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: OpenSSL 0.9.8f Win32 Compile Error

2007-10-13 Thread Dr. Stephen Henson
On Fri, Oct 12, 2007, Chris Clark wrote:

 
 I do not have NASMW, as the only files included in nasm-0.99.04-win32.zip are:
 
 COPYING
 nasm.exe
 ndisasm.exe
 
 Can anyone tell me what I am doing wrong?
 

In some distros nasm.exe is named nasmw.exe . Try copying or renaming
nasm.exe to nasmw.exe.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


OpenSSL 0.9.8f Win32 Compile Error

2007-10-12 Thread Chris Clark
I am trying to compile version 0.9.8f for Windows, using VC++ 6.0,
ActivePerl, and MASM 6.15.8803.

I am following the instructions in INSTALL.W32, which works fine for
the previous 0.9.8f build, but when I get to the point of running
nmake -f ms\ntdll.mak I get the following errors in 0.9.8f:

Building OpenSSL
ml /Cp /coff /c /Cx /Focrypto\sha\asm\sha512-sse2.obj
.\crypto\sha\asm\sha512-sse2.asm
 Assembling: .\crypto\sha\asm\sha512-sse2.asm
.\crypto\sha\asm\sha512-sse2.asm(29) : error A2006: undefined symbol : XMMWORD
.\crypto\sha\asm\sha512-sse2.asm(30) : error A2006: undefined symbol : XMMWORD
.\crypto\sha\asm\sha512-sse2.asm(31) : error A2006: undefined symbol : XMMWORD
.\crypto\sha\asm\sha512-sse2.asm(32) : error A2006: undefined symbol : XMMWORD

Actually I get 21 more of these same errors, each with a different line number.

Did someone forget to add the equate for XMMWORD?
Can anyone tell me how XMMWORD should be defined?

-Chris
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: OpenSSL 0.9.8f Win32 Compile Error

2007-10-12 Thread Chris Clark
 I am following the instructions in INSTALL.W32, which works fine for
 the previous 0.9.8f build, but when I get to the point of running
 nmake -f ms\ntdll.mak I get the following errors in 0.9.8f:

oops..  I ment to say that the previous version 0.9.8E works fine, and
now that I look closer I see that 0.9.8E did not include the asm file
sha512-sse2.asm so this appears to be a new issue in 0.9.8F.

I looked at the .ASM code and XMMWORD is not a variable, but rather a
type definition which my version of ML does not understand. I see some
info here:
http://msdn2.microsoft.com/en-us/library/cw0399sf(VS.80).aspx
which indicates that I need a newer ML from VS2005. Is that correct?

-Chris
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: OpenSSL 0.9.8f Win32 Compile Error

2007-10-12 Thread Chris Clark
 Did someone forget to add the equate for XMMWORD?
 Can anyone tell me how XMMWORD should be defined?

It appears that I need more then just the newer version of MASM,
and while reading the MASM32 forums they reference this page:
http://www.intel.com/cd/ids/developer/asmo-na/eng/167741.htm?page=6

It mentions that the following include file is needed to assemble SSE3
instructions: 'include ia_pni.inc'

Can anyone tell me where to find this, or of there is a simpler
solution for compiling 0.9.8F for Windows?

- Chris
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: OpenSSL 0.9.8f Win32 Compile Error

2007-10-12 Thread Chris Clark
I downloaded NASM (nasm-0.99.04-win32.zip) from Soundforge,
and gave it a try, and when I run ms\do_nasm it is all sucessful
but now I get a different error when running nmake -f ms\ntdll.mak:

Microsoft (R) Program Maintenance Utility   Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. 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
nasmw -f win32 -o crypto\cpu_win32.obj .\crypto\cpu_win32.asm
'nasmw' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'nasmw' : return code '0x1'
Stop.

I do not have NASMW, as the only files included in nasm-0.99.04-win32.zip are:

COPYING
nasm.exe
ndisasm.exe

Can anyone tell me what I am doing wrong?

-Chris
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]