[openssl-users] Borland C++ Builder 5, compile error in randfile.c

Hubert Bugaj hbugaj at forcom.com.pl
Mon Jul 20 06:49:06 UTC 2015

I'm following the instructions from INSTALL.W32 (various OpenSSL
versions, but let's focus on 1.0.2d), in general it's:

     * Configure for building with Borland Builder:
       > perl Configure BC-32
     * Create the appropriate makefile
       > ms\do_nasm
     * Build
       > make -f ms\bcb.mak

When trying to build I get this error:

        bcc32 -otmp32\randfile.obj -Iinc32 -Itmp32 -DWIN32_LEAN_AND_MEAN
-q -w-ccc -w-rch -w-pia -w-aus -w-par -w-inl -c -tWC -tWM
-D_strnicmp=strnicmp -O2 -ff -fp -DBN_ASM -DMD5_ASM -DSHA1_ASM
Warning W8017 C:\CBuilder5\Include\sys/stat.h 34: Redefinition of
'S_IFMT' is not identical
Warning W8017 C:\CBuilder5\Include\sys/stat.h 35: Redefinition of
'S_IFDIR' is not identical
Error E2227 .\crypto\rand\randfile.c 228: Extra parameter in call to
_open in function RAND_write_file
Warning W8053 .\crypto\rand\randfile.c 264: '_chmod(const signed char
*,int,...)' is obsolete in function RAND_write_file
*** 1 errors in Compile ***

Yes, I feel bad for using Borland C++ Builder 5 but I can't do anything
about it. I've succesfully installed the libraries from Shining Light,
(though I had to IMPLIB each .dll) but it's not the solution I want to

I'd be glad for any feedback.

More information about the openssl-users mailing list