I changed the code as follows, sorry it is not in diff format. Essentially
remove the assembly language section and define and set tsc=0 which causes
the later code to use another random gen method.
static int have_perfc =1;
static int have_tsc = 0;//add line
#ifndef __GNUC__
/* //add line
static int have_tsc = 1;
DWORD cyclecount;
if (have_tsc) {
__try {
__asm {
rdtsc
mov cyclecount, eax
}
RAND_add(&cyclecount, sizeof(cyclecount), 1);
} __except(EXCEPTION_EXECUTE_HANDLER) {
have_tsc = 0;
}
}
*/ //add line
#else
----- Original Message -----
From: "Fabio Di Cianno" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, October 22, 2000 7:21 AM
Subject: Problem Compiling openssl with BCB
> Hi
>
> I'm using BCB v3.0 on a win98 PC. I tried to build openssl-0.9.6 and I
> get the following error message.
>
> MAKE Version 5.1 Copyright (c) 1987, 1998 Borland International
> Building OpenSSL
> mkdir tmp32
> mkdir out32
> mkdir inc32
> mkdir inc32\openssl
> bcc32 -otmp32\rand_win.obj -Iinc32 -Itmp32 -DWIN32_LEAN_AND_MEAN -w-aus
> -w-par -w-inl -c -tWC -tWM -DWINDOWS -DWIN32 -DL_ENDIAN -DDSO_WIN32 -O2
> -ff -fp -c .\crypto\rand\rand_win.c
> Borland C++ 5.3 for Win32 Copyright (c) 1993, 1998 Borland International
>
> .\crypto\rand\rand_win.c:
> Warning .\crypto\rand\rand_win.c 579: Restarting compile using assembly
> in function readtimer
> Turbo Assembler Version 5.2b Copyright (c) 1988, 1996 Borland
> International
> Serial No: Tester:
>
> Assembling file: tmp32\rand_win.ASM
> **Error** tmp32\rand_win.ASM(786) Illegal instruction for currently
> selected processor(s)
> Error messages: 1
> Warning messages: None
> Passes: 1
>
>
> ** error 1 ** deleting tmp32\rand_win.obj
>
>
>
> I also found I had to remove the -q switch from the CFLAGS variable in
> the make file.
>
> Is this a problem with my compiler?
>
> Fabio
>
> ______________________________________________________________________
> 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]