Subject: | Error on make: "can't figure out ENDIANness"; and test error on perl -noxs attempt |
Date: | Mon, 6 Aug 2007 16:32:50 -0600 (MDT) |
To: | bug-NetAddr-IP [...] rt.cpan.org |
From: | Ann Cantelow <cantelow [...] csd.net> |
Greetings. Thank you for this package.
I am trying to use the newest spamassassin, but am unable to compile
NetAddr (required for the SPF check.)
NetAddr version: 4.007
I get the same error on 2 different machines:
Tru64 V5.1 (rev 732) with perl 5.6.1
Tru64 V5.1B (rev 2650) with perl 5.8.8
Tru64 is a little endian machine.
At the end of "perl Makefile.PL" I see:
-----------------
Checking if your kit is complete...
Looks good
Testing if you have a C compiler and the needed header files....
cc -c compile.c
You have a working compiler.
Writing Makefile for NetAddr::IP::Util
Writing Makefile for NetAddr::IP::Lite
Writing Makefile for NetAddr::IP
------------------
The subsequent "make" command outputs this:
------------------
...
cp IP.pm blib/lib/NetAddr/IP.pm
AutoSplitting blib/lib/NetAddr/IP.pm (blib/lib/auto/NetAddr/IP)
cp Lite.pm ../blib/lib/NetAddr/IP/Lite.pm
./siteconf "cc" ".c" ".o" "" "-std1 -no_ansi_alias -D_INTRINSICS -fprm d
-ieee -DLANGUAGE_C" "" ""
checking for char... yes
checking size of char... 1
checking for short int... yes
checking size of short int... 2
checking for int... yes
checking size of int... 4
checking for u_intXX_t types... no
checking for u_intXX_t types in sys/socket.h... no
checking for uintXX_t types... no
checking for uintXX_t types in stdint.h... no
checking for inet_aton yes
checking for inet_pton yes
checking for ENDIANness error: can't figure out ENDIANness
*** Exit 1
Stop.
-------------------
Is there anything else that I can tell you, that might help?
============================================================================
Next, I tried to use instead, "perl Makefile.PL -noxs"
A test failed, as far as I know it is unrelated to the endian problem:
make succeeded, but make test failed the v4-new test under Lite/t:
------------------------
t/v4-new..........
# Failed test 'Invalid IP returns undef'
# in t/v4-new.t at line 45.
# Failed test 'Invalid IP returns undef'
# in t/v4-new.t at line 46.
t/v4-new..........NOK 1# Failed test 'Invalid IP returns undef'
# in t/v4-new.t at line 47.
t/v4-new..........ok 17/424# Looks like you failed 3 tests of 424.
t/v4-new..........dubious
Test returned status 3 (wstat 768, 0x300)
DIED. FAILED tests 1-3
Failed 3/424 tests, 99.29% okay
-------------------------
Many thanks.
Ann