> Error build under NT 4, VC6
> 
>         cl /Fotmp32dll\rand_win.obj  -Iinc32 -Itmp32dll /MD /W3 /WX /G5 /Ox /O2
> /Ob2 /Gs0 /GF /Gy /nologo -DWIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DBN_ASM -DMD
> 5_ASM -DSHA1_ASM -DRMD160_ASM /Fdout32dll /GD -D_WINDLL -D_DLL  -c .\crypto\rand
> \rand_win.c
> rand_win.c
> .\crypto\rand\rand_win.c(209) : error C2063: 'netstatget' : not a function
> .\crypto\rand\rand_win.c(212) : error C2063: 'netfree' : not a function
> .\crypto\rand\rand_win.c(214) : error C2063: 'netstatget' : not a function
> .\crypto\rand\rand_win.c(217) : error C2063: 'netfree' : not a function

I have compiled this code on NT4 VC6 and it compiles without errors.
Are you sure that you are actually using the VC header files?  Your
problems appear to be cause both in this case and in the mingw32 case
by a lack of a definition for LMSTR, this indicates you are not using
the Microsoft header: lmcons.h


> ========== mingw32
> gcc -o tmp/rand_win.o  -Ioutinc -Itmp -DL_ENDIAN -fomit-frame-pointer -O3 -m486
> -Wall -DBN_ASM -DMD5_ASM -DSHA1_ASM  -c ./crypto/rand/rand_win.c
> ./crypto/rand/rand_win.c:175: parse error before `DWORD'

LMSTR is defined in lmcons.h

> ./crypto/rand/rand_win.c: In function `RAND_poll':
> ./crypto/rand/rand_win.c:187: warning: `acquire' might be used uninitialized in
> this function
> ./crypto/rand/rand_win.c:188: warning: `gen' might be used uninitialized in this
>  function
> ./crypto/rand/rand_win.c:189: warning: `release' might be used uninitialized in
> this function
> ./crypto/rand/rand_win.c:190: warning: `netstatget' might be used uninitialized
> in this function
> ./crypto/rand/rand_win.c:191: warning: `netfree' might be used uninitialized in
> this function

These need to be initialized.

> ./crypto/rand/rand_win.c: In function `readtimer':
> ./crypto/rand/rand_win.c:505: warning: unused variable `cyclecount'

This should be 

#ifndef __GNUC__
  DWORD cyclecount;
#endif



                  Jeffrey Altman * Sr.Software Designer
                 The Kermit Project * Columbia University
               612 West 115th St * New York, NY * 10025 * USA
     http://www.kermit-project.org/ * [EMAIL PROTECTED]


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

Reply via email to