Subject: | _sha256.c compile error using Cygwin and perl v5.8.5 built for cygwin-thread-multi-64int |
Under Cygwin and using Perl v5.8.5 built for cygwin-thread-multi-64int (under Win XP):
1) GCC output this error after launching 'make'.
gcc -c -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -I/usr/local/include -DUSEIMPORTLIB -O2 -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" "-I/usr/lib/perl5/5.8.5/cygwin-thread-multi-64int/CORE" _sha256.c
_sha256.c: In function `sha_transform':
_sha256.c:99: warning: right shift count >= width of type
2) 2 errors are generated when running 'make test':
/usr/bin/perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/test....FAILED tests 2-3
3) A quick hack to solve the problem is :
- do "perl Makefile.PL"
- edit the generated "endian.h" file and change:
#define BYTEORDER 12345678
to
#define BYTEORDER 1234
- do "make", "make test", make "install"
OTH
Buzz