On Mon, 26 Feb 2001, Richard Lefebvre wrote:
> I'm trying to get ssh 2.4 running on a NEC SX-5 vector computer.
> Everything seem to compile fine, but the installation fails at
> the hostkey generation, ssh-keygen2 goes into an infinite loop.
Yes, I had a similar problem with SSH (version 1.2.30, though).
- For a start, I was using an old file gmp-mparam.h, which had not
actually been created by cre-mparam.c on that machine.
The output of cre-mparam.c was
#define BITS_PER_MP_LIMB 64
#define BYTES_PER_MP_LIMB 8
#define BITS_PER_LONGINT 64
but this was different from gmp-mparam.h!
- It turned out that "#define BITS_PER_MP_LIMB 64" was unusable,
and we had to do arithmetic with 32 bit integers (using -D_SHORT_LIMB).
But perhaps this little program works correctly on your machine?
#include <stdio.h>
int main(int argc, char **argv)
{
unsigned long number, divisor, remainder;
number = 4159265358979323846;
divisor = 10;
remainder = number % divisor;
printf("%lu %% %lu = %lu\n", number, divisor, remainder);
return 0;
}
(On ours, it produces 4159265358979323846 % 10 = 326 !)
Good luck!
Werner Nagel ([EMAIL PROTECTED])
_____________________________________________________________________
Garching Computing Centre, Boltzmannstr.2, D-85748 Garching, Germany