patch for idea.c

Secret Squirrel secret_squirrel at nym.alias.net
Tue Sep 7 21:57:50 CEST 1999


A Guy Called Tyketto <tyketto at wizard.com> wrote:

>         The following patch fixes the parse error for compiling the idea.c
> plug-in, to use the IDEA algorithm in GnuPG. the recent version, uploaded Sept
> 1, currently gives the following error:
> 
> bash# gcc -Wall -O2 -shared -fPIC -o idea idea.c
> idea.c:122: parse error
> 
>         It's only missing the ending ) for the line. the attached patch fixes
> this.

There is no missing ')' in idea.c and rsa.c, at least not in the latest
versions (uploaded Sept 7), but gcc 2.95.1 fails to compile them:

$ gcc -Wall -O2 -shared -fPIC -o idea idea.c
idea.c:120: Invalid token in expression
$ gcc -Wall -O2 -shared -fPIC -o rsa rsa.c
rsa.c:49: Invalid token in expression

The "invalid token" is \r\n (the DOS end-of-line marker) after \.
Fix:  Run the files through dos2unix or "recode ibmpc:latin1" and
re-upload.



More information about the Gnupg-devel mailing list