Trouble compiling idea.c

Ben McGinnes ben at adversary.org
Fri Nov 26 08:00:51 CET 2010


Hello,
	I've been set some mail using an old, but still valid key,
using IDEA.  The last time I used IDEA was a long time ago and now
I've finally found the need to compile it for my current system.

The problem is that it doesn't seem able to compile on my MacBook Pro
(OS X 10.5.8).  It fails with this error:

bash-3.2$ gcc -Wall -O2 -shared -fPIC -o idea idea.c
Undefined symbols:
  "_main", referenced from:
      start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
bash-3.2$ gcc -Wall -O2 -shared -fPIC -DBIG_ENDIAN_HOST -o idea idea.c
Undefined symbols:
  "_main", referenced from:
      start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
bash-3.2$

I tried the second even though it's an Intel system, just to be sure.

To answer the obvious question, I have no intention of using IDEA to
encrypt anything (even though it would be legal here), I just want to
read what was sent to me.

So, my question is what do I need to add or tweak to fix this?


Regards,
Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20101126/f5157403/attachment.pgp>


More information about the Gnupg-users mailing list