|
|||||||||||
|
linux-ipsec: Freeswan on Netwinder
From: <rhatfield(at)plaintree.com>
Date: Tue Jan 05 1999 - 14:59:16 EST Thanks for the reply. I have been busy debugging this over the past week and have it narrowed down to a problem with GMP. I turned on the pluto debugging messages and after some searching discovered that the n_to_mpz and mpz_to_n functions do not return the correct values. I wrote this code to prove that it was GMP messing things up:
main()
mpz_init_set_ui(&mp,0x1234);
mpz_mul_ui(&mp,&mp,0x100);
printf("MP=%s\n",mpz_get_str(NULL,16,&mp));
}
On the Netwinder, it outputs "MP=FF93EB523400". On an x86, it outputs "MP=123400" as expected. Someone on the Netwinder developers mailing list suggested that some versions of GMP have faulty ARM inline assembly and he recommended that I turn them off. I am working on doing that now. If anyone has any ideas on how to get this working, please let me know.
Thanks,
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 12:59:29 EDT |
||||||||||
|
|||||||||||