[openssl.org #425] Build error on Windows NT4?

2003-02-28 Thread Mike Schmidt via RT

I am getting the same error as well on Windows XP Home / VC++ 6.0.

I followed the instructions on the apache.org site to build this for Windows
for inclusion in the Apache build.  I haven't touched the codebase at all.

I found this discussion and ran the perl Configure VC-WIN32 (I needed to add
a -IPath because of my personal installation) and it then compiled fine.

Thanks for the info!!

__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]


[openssl.org #425] Build error on Windows NT4?

2003-02-23 Thread Brendan Law via RT

So I've read this thread, and had a look at the code.  What do I have to do
to fix this error? (exactly)
 
Thank you!
 
Brendan Law
 
 
original thread
 
The ticket #425 is indeed closable.

That note #define OPENSSL_EXPORT_VAR_AS_FUNCTION made me check my own
doings again (with a magnifying glass)... That error ended up being my
careless mistake :-( Sorry for all the trouble. OpenSSL is doing everything
right. Combination: NT4 + SP6a + VC++(12.00.8804) passed all the tests.

Yours  VW


-Original Message-
From: Stephen Henson via RT [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 02, 2003 2:53 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [openssl.org #425] Build error on Windows NT4? 



[EMAIL PROTECTED] - Wed Jan  1 18:40:53 2003]:

   cl ... -c .\crypto\asn1\n_pkey.c
   .\crypto\asn1\n_pkey.c(96) : error C2370:
'NETSCAPE_ENCRYPTED_PKEY_it' :
   redefinition; different storage class
   .\crypto\asn1\n_pkey.c(93) : see declaration of
   'NETSCAPE_ENCRYPTED_PKEY_it'
 
  Strange, I checked VC++ 6.0 SP3 and had no problems. What version of
  VC++ are you using?
 
 First of all I want to make it clear that I do *not* have environment
 for VC-WIN32 build. All I say here is based on experinence not related
 to OpenSSL.
 
 How does one tell VC++SP level? I couldn't find a way. It's probably
 more appropriate to ask for version number returned by cl. Mine says
 12.00.8804...
 

Well the version is in the about box of visual studio. Not sure about
the SP level, I just know I installed SP3 on this box and I'll try SP5
when I can find time to download the 100Mb or so of it...

I also have cl version 12.00.8804 BTW

 In either case I believe it's OPENSSL_EXTERN which is responsible
for
 this. On Windows OPENSLL_EXTERN is[?]/can be defined as extern
 _declspec(dllimport) and the problem must be that n_pkey.c refers to
 same variable as both local and OPENSSL_EXTERN. The catch is that
 _decspec(dllimport) is [and has to be] treated differently. Most
notably
 _declspec(dllimport) int i; int foo(){return i;} effectively
compiles
 as int *_i; int foo() {return *_i;}. As you can see generated
machine
 code has to be substantially different from one generated for plain
int
 i; int foo(){return i;} and this is what the compiler must be
 complaining about. At the very least if I try to compile int
 i;_declspec(dllimport) int i; I get the very same error code, C2370.
 
 A.
 

I was a little puzzled by the original report. Because it seems to be
complaining about the NETSCAPE_ENCRYPTED_PKEY_it variable whereas under
Win32 this should in fact be a function. 

Win32 should #define OPENSSL_EXPORT_VAR_AS_FUNCTION which causes a
different part of asn1t.h to be used. This should end up being written
to opensslconf.h when perl Configure VC-WIN32 is initially called.

So the original poster might want to check to see if this is the case...

__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]


[openssl.org #425] Build error on Windows NT4?

2003-02-23 Thread Stephen Henson via RT

[EMAIL PROTECTED] - Sun Feb 23 22:17:03 2003]:

 So I've read this thread, and had a look at the code.  What do I have
to do
 to fix this error? (exactly)
  

I didn't find out exactly what the OP did to get this error.

However you can check that there is a line:

#define EXPORT_VAR_AS_FUNCTION

in crypto\opensslconf.h

If not make sure you are following all the steps in INSTALL.W32 to the
letter.

STeve.

__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]


Re: [openssl.org #425] Build error on Windows NT4?

2003-01-01 Thread Andy Polyakov via RT

  cl ... -c .\crypto\asn1\n_pkey.c
  .\crypto\asn1\n_pkey.c(96) : error C2370: 'NETSCAPE_ENCRYPTED_PKEY_it' :
  redefinition; different storage class
  .\crypto\asn1\n_pkey.c(93) : see declaration of
  'NETSCAPE_ENCRYPTED_PKEY_it'
 
 Strange, I checked VC++ 6.0 SP3 and had no problems. What version of
 VC++ are you using?

First of all I want to make it clear that I do *not* have environment
for VC-WIN32 build. All I say here is based on experinence not related
to OpenSSL.

How does one tell VC++SP level? I couldn't find a way. It's probably
more appropriate to ask for version number returned by cl. Mine says
12.00.8804...

In either case I believe it's OPENSSL_EXTERN which is responsible for
this. On Windows OPENSLL_EXTERN is[?]/can be defined as extern
_declspec(dllimport) and the problem must be that n_pkey.c refers to
same variable as both local and OPENSSL_EXTERN. The catch is that
_decspec(dllimport) is [and has to be] treated differently. Most notably
_declspec(dllimport) int i; int foo(){return i;} effectively compiles
as int *_i; int foo() {return *_i;}. As you can see generated machine
code has to be substantially different from one generated for plain int
i; int foo(){return i;} and this is what the compiler must be
complaining about. At the very least if I try to compile int
i;_declspec(dllimport) int i; I get the very same error code, C2370.

A.

__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]



Re: [openssl.org #425] Build error on Windows NT4?

2003-01-01 Thread Jeffrey Altman




Andy Polyakov via RT wrote:

  

  cl ... -c .\crypto\asn1\n_pkey.c
.\crypto\asn1\n_pkey.c(96) : error C2370: 'NETSCAPE_ENCRYPTED_PKEY_it' :
redefinition; different storage class
.\crypto\asn1\n_pkey.c(93) : see declaration of
'NETSCAPE_ENCRYPTED_PKEY_it'
  

Strange, I checked VC++ 6.0 SP3 and had no problems. What version of
VC++ are you using?

  
  
First of all I want to make it clear that I do *not* have environment
for VC-WIN32 build. All I say here is based on experinence not related
to OpenSSL.

How does one tell VC++SP level? I couldn't find a way. It's probably
more appropriate to ask for version number returned by cl. Mine says
12.00.8804...

In either case I believe it's OPENSSL_EXTERN which is "responsible" for
this. On Windows OPENSLL_EXTERN is[?]/can be defined as "extern
_declspec(dllimport)" and the problem must be that n_pkey.c refers to
same variable as both local and OPENSSL_EXTERN. The catch is that
_decspec(dllimport) is [and has to be] treated differently. Most notably
"_declspec(dllimport) int i; int foo(){return i;}" effectively compiles
as "int *_i; int foo() {return *_i;}." As you can see generated machine
code has to be substantially different from one generated for plain "int
i; int foo(){return i;}" and this is what the compiler must be
complaining about. At the very least if I try to compile "int
i;_declspec(dllimport) int i;" I get the very same error code, C2370.

A.
  

I've built 0.9.7 with VC 6.0 SP3 as well as VC 7.0 without incident.
I'm wondering if there are any Environment Variables defined that
might be altering the build environment.

Also, it would be useful to know which makefile is being used.






[openssl.org #425] Build error on Windows NT4?

2002-12-31 Thread Wirta Ville via RT

Hi!

I took 0.9.7 from OpenSSL.org and tried compiling it on Windows NT4 sp6a
with Visual Studio command line tools. I followed the instructions of
install.w32 but got the following error with ms\do_nasm:

SNIP
cl /Fotmp32dll\n_pkey.obj  -Iinc32 -Itmp32dll /MD /W3 /WX /G5 /Ox
/O2 /Ob2 /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAM
E_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DBN_ASM -DMD5_ASM
-DSHA1_ASM -DRMD160_ASM /Fdout32dll -DOPENSSL_NO
_KRB5 -D_WINDLL  -DOPENSSL_BUILD_SHLIBCRYPTO -c .\crypto\asn1\n_pkey.c
n_pkey.c
.\crypto\asn1\n_pkey.c(96) : error C2370: 'NETSCAPE_ENCRYPTED_PKEY_it' :
redefinition; different storage class
.\crypto\asn1\n_pkey.c(93) : see declaration of
'NETSCAPE_ENCRYPTED_PKEY_it'
.\crypto\asn1\n_pkey.c(106) : error C2370: 'NETSCAPE_PKEY_it' :
redefinition; different storage class
.\crypto\asn1\n_pkey.c(103) : see declaration of 'NETSCAPE_PKEY_it'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.

D:\openssl-0.9.7
SNIP

(ms\do_masm and ms\do_ms didn't work either). OpenSSL 0.9.6h compiled OK and
passed all the tests with same instructions. Is there something that could
be done to fix this? Am I doing somethig wrong?

Yours  VW
__
OpenSSL Project http://www.openssl.org
User Support Mailing List[EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]
__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]



Re: [openssl.org #425] Build error on Windows NT4?

2002-12-31 Thread Dr. Stephen Henson
On Tue, Dec 31, 2002, Wirta Ville via RT wrote:

 
 Hi!
 
 I took 0.9.7 from OpenSSL.org and tried compiling it on Windows NT4 sp6a
 with Visual Studio command line tools. I followed the instructions of
 install.w32 but got the following error with ms\do_nasm:
 

What version of VC++ are you using?

Steve.
--
Dr. Stephen Henson  [EMAIL PROTECTED]
OpenSSL Project http://www.openssl.org/~steve/
__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]



[openssl.org #425] Build error on Windows NT4?

2002-12-31 Thread Stephen Henson via RT

[[EMAIL PROTECTED] - Tue Dec 31 13:20:55 2002]:

 Hi!
 
 I took 0.9.7 from OpenSSL.org and tried compiling it on Windows NT4 sp6a
 with Visual Studio command line tools. I followed the instructions of
 install.w32 but got the following error with ms\do_nasm:
 
 SNIP
 cl /Fotmp32dll\n_pkey.obj  -Iinc32 -Itmp32dll /MD /W3 /WX /G5 /Ox
 /O2 /Ob2 /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAM
 E_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DBN_ASM -DMD5_ASM
 -DSHA1_ASM -DRMD160_ASM /Fdout32dll -DOPENSSL_NO
 _KRB5 -D_WINDLL  -DOPENSSL_BUILD_SHLIBCRYPTO -c .\crypto\asn1\n_pkey.c
 n_pkey.c
 .\crypto\asn1\n_pkey.c(96) : error C2370: 'NETSCAPE_ENCRYPTED_PKEY_it' :
 redefinition; different storage class
 .\crypto\asn1\n_pkey.c(93) : see declaration of
 'NETSCAPE_ENCRYPTED_PKEY_it'
 .\crypto\asn1\n_pkey.c(106) : error C2370: 'NETSCAPE_PKEY_it' :
 redefinition; different storage class
 .\crypto\asn1\n_pkey.c(103) : see declaration of
'NETSCAPE_PKEY_it'
 NMAKE : fatal error U1077: 'cl' : return code '0x2'
 Stop.
 
 D:\openssl-0.9.7
 SNIP
 
 (ms\do_masm and ms\do_ms didn't work either). OpenSSL 0.9.6h compiled
OK and
 passed all the tests with same instructions. Is there something that could
 be done to fix this? Am I doing somethig wrong?
 

Strange, I checked VC++ 6.0 SP3 and had no problems. What version of
VC++ are you using?



__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]