Thanks, this works fine for me with BCB6. No compile
errors/altering header files either.

-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED]
[mailto:owner-openssl-users@;openssl.org] Namens Keary Phillips
Verzonden: zondag 3 november 2002 20:41
Aan: [EMAIL PROTECTED]
Onderwerp: Here is how to build with BCB5 using nasm


Hi all,

Here are directions for compiling OpenSSL 0.9.6g with Borland
C++ Builder 5 (BCB5) using nasm.

BUILD WITH NASM
---------------
1) Setup up ActivePerl

2) Install nasm. I put the executables in my
    {Borland}\CBuilder5\Bin directory because it is on my PATH.

3) Execute "perl Configure BC-32".

4) Execute "ms\do_nasm".

5) In {OpenSSL}\ms\bcb.mak find the line like this: ASM=n_o_T_a_s_m
    and change it to this: ASM=nasmw -f obj

    VC++ uses a newer object format so it uses "nasmw -f win32" while
    Borland uses the older format.

6) Find all the lines in ms\bcb.mak with this: $(ASM) /Focrypto\
    and change the first part so it is like this: $(ASM) -o crypto\

    I didn't hunt down where in the PERL scripts this is broken. The
    VC++ mak doesn't have this.  If someone with PERL knowledge
    and CVS access could fix this that would be great.

7) If you tried making everything now you would get errors like this:

    Error E2293 .\crypto\bn\bn_asm.c 741: ) expected in function
    bn_sqr_comba8

    The solution is to search in crypto\bn\bn.h and find the line like
    this:
         #ifdef _MSC_VER
    and change it to this:
         #if defined(_MSC_VER) || defined(__BORLANDC__)

    Again. If someone with CVS access could change this that would be
    great.

8) Finally execute "make -f ms\bcb.mak" to compile everything.


TEST
----
To confirm this all works I ran the tests by doing this:

  > cd out32
  > ..\ms\test

They all passed.

I also compiled a very old test program I built with BCB4 and the
non-asm version of OpenSSL years ago. It only used RSA but it worked
fine as well.

Cheers,
Keary Phillips

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

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

Reply via email to