hello,

I tried compiling openssl-SNAP-20040201 with MinGW and
received the following error:

...
gcc -o tmp\bss_file.o  -Ioutinc -Itmp -DL_ENDIAN
-DDSO_WIN32 -fomit-frame-pointe
r -O3 -mcpu=i486 -Wall -DBN_ASM -DMD5_ASM -DSHA1_ASM
-DOPENSSL_BN_ASM_PART_WORDS
 -DOPENSSL_NO_KRB5  -c .\crypto\bio\bss_file.c
crypto/bio/bss_file.c: In function `file_ctrl':
crypto/bio/bss_file.c:218: `fd' undeclared (first use
in this function)
crypto/bio/bss_file.c:218: (Each undeclared identifier
is reported only once
crypto/bio/bss_file.c:218: for each function it
appears in.)
mingw32-make: *** [tmp\bss_file.o] Error 1
...

I replaced the following in crypto/bio/bss_file.c line
216:

#if defined(OPENSSL_SYS_WINDOWS)
  if (num & BIO_FP_TEXT)
   _setmode(fd,_O_TEXT);
  else
   _setmode(fd,_O_BINARY);

with:

#if defined(OPENSSL_SYS_WINDOWS)
  if (num & BIO_FP_TEXT)
   _setmode(fileno((FILE *)ptr),O_TEXT);
  else
   _setmode(fileno((FILE *)ptr),O_BINARY);


and this fixed the problem.

cheers
prefab

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to