patch for idea.c

A Guy Called Tyketto tyketto at
Tue Sep 7 15:23:33 CEST 1999

On Tue, Sep 07, 1999 at 08:57:50PM -0000, Secret Squirrel wrote:
> A Guy Called Tyketto <tyketto at> 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.

	Hmm.. I've heard rumours of gcc-2.95.1 being very buggy, and not 
producing entirely correct code, but I'm not sure on that. I just downloaded 
the new versions of rsa.c and idea.c (Sept. 7), and compiled them. They 
compiled clean, no warnings.

tyketto @ zip [~/src] > gcc -Wall -O2 -shared -fPIC -o idea idea.c
tyketto @ zip [~/src] > gcc -Wall -O2 -shared -fPIC -o rsa rsa.c
tyketto @ zip [~/src] > gcc -v
Reading specs from /usr/lib/gcc-lib/i486-unknown-linux-gnulibc1/
gcc version

	I'll give these a try later tonight, eith egcs-1.1.2, and see what 

Brad Littlejohn                         | Email:        tyketto at 
Unix Systems Administrator,             |            tyketto at
WebMaster, NewsMaster.. Smeghead! :)    |
    PGP: 1024/E9DF4D85 67 6B 33 D0 B9 95 F4 37  4B D1 CE BD 48 B0 06 93

More information about the Gnupg-devel mailing list