Looks to me that _idea.c is assuming that all system have /usr/
include/endian.h, which is false (it's probably a Linux assumption).
You can probably get this to work by changing line 8 to:
#include <machine/endian.h>
for Mac OS X anyways.
Edward Moy
Apple
On Jun 15, 2005, at 8:01 AM, John Mercer wrote:
Hi,
I'm having problems installing Crypt::IDEA on my mac (10.4). "sudo
perl Makefile.pl" works fine. However, when I run make or make
test, I get the following error message:
gcc -c -fno-common -DPERL_DARWIN -no-cpp-precomp -
DUSE_SITECUSTOMIZE -DNO_HASH_SEED -DBUILT_BY_ACTIVESTATE -fno-
strict-aliasing -pipe -Os -DVERSION=\"1.02\" -DXS_VERSION=\"1.02
\" "-I/usr/local/ActivePerl-5.8/lib/5.8.7/darwin-thread-
multi-2level/CORE" _idea.c
_idea.c:8:20: error: endian.h: No such file or directory
make: *** [_idea.o] Error 1
Is the problem with "endian.h"? What is endian.h? I googled it, and
found that it was part of GLT, but I don't see how that could be
related to an encryption mod.
Perhaps I should compile this with gcc 3.3 instead of gcc 4.0? If
so, how do I do that?
I'm running ActiveState Perl 5.8.7 on Tiger. Crypt::IDEA was not in
the ActiveState repositories, so I'm doing this manually.
Any help would be greatly appreciated.
--jm