RSA & IDEA Howto (Was Re: Signing (with) old pgp 2 keys)

Dave Dykstra dwd at bell-labs.com
Wed Jul 21 15:32:16 CEST 1999


On Jul 21,  2:57pm, Dave Harvill wrote:
> I compiled the RSAREF 2.0 just fine, copied to /usr/lib.  In trying to
> compile the RSAREF 'glue code' afterwards, I run into the following 
> error:
> 
> # gcc -Wall -O2 -shared -fPIC -o rsa rsaref.c /usr/lib/rsaref.a
> /usr/lib/rsaref.a(nn.o): In function `NN_ModExp':
> nn.c(.text+0xa88): multiple definition of `NN_ModExp'
> /tmp/cca020641.o(.text+0x5d8):rsaref.c: first defined here
> /usr/bin/ld: Warning: size of symbol `NN_ModExp' changed from 716 to 568
> in nn.o
> collect2: ld returned 1 exit status
> 
> can anyone help?

The original NN_ModExp function was very slow so people (beginning with
Phil Zimmerman) wrote replacements.  Compile it out in nn.c.  The version
I have has a USEMPILIB define around it, so I add -DUSEMPILIB to the
INCL line in install/unix/makefile.

- Dave Dykstra



More information about the Gnupg-devel mailing list