Subject: | 'make test': failures in all three test files |
Many warnings issued during 'make'. Failures in all three test files.
See attached.
Given this output:
Warning: prerequisite Inline 0.43 not found.
... perhaps Makefile.PL should be modified to exit immediately when the
prerequisite is not found.
Thank you very much.
Jim Keenan
Subject: | Inline-BC.failures.txt |
[Inline-BC-0.08] 566 $ perl Makefile.PL && make && make test
Checking if your kit is complete...
Looks good
Warning: prerequisite Inline 0.43 not found.
Writing Makefile for libbc
Writing Makefile for Inline::BC
cp BC.pm blib/lib/Inline/BC.pm
cd mylib && make
cc -c -I./ -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -O3 -DVERSION=\"\" -DXS_VERSION=\"\" "-I/usr/local/lib/perl5/5.10.1/darwin-2level/CORE" execute.c
In file included from bcdefs.h:32,
from execute.c:31:
config.h:81:1: warning: "VERSION" redefined
<command line>:1:1: warning: this is the location of the previous definition
cc -c -I./ -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -O3 -DVERSION=\"\" -DXS_VERSION=\"\" "-I/usr/local/lib/perl5/5.10.1/darwin-2level/CORE" bc.c
In file included from bcdefs.h:32,
from bc.y:33:
config.h:81:1: warning: "VERSION" redefined
<command line>:1:1: warning: this is the location of the previous definition
cc -c -I./ -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -O3 -DVERSION=\"\" -DXS_VERSION=\"\" "-I/usr/local/lib/perl5/5.10.1/darwin-2level/CORE" global.c
In file included from bcdefs.h:32,
from global.c:31:
config.h:81:1: warning: "VERSION" redefined
<command line>:1:1: warning: this is the location of the previous definition
cc -c -I./ -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -O3 -DVERSION=\"\" -DXS_VERSION=\"\" "-I/usr/local/lib/perl5/5.10.1/darwin-2level/CORE" storage.c
In file included from bcdefs.h:32,
from storage.c:31:
config.h:81:1: warning: "VERSION" redefined
<command line>:1:1: warning: this is the location of the previous definition
cc -c -I./ -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -O3 -DVERSION=\"\" -DXS_VERSION=\"\" "-I/usr/local/lib/perl5/5.10.1/darwin-2level/CORE" load.c
In file included from bcdefs.h:32,
from load.c:31:
config.h:81:1: warning: "VERSION" redefined
<command line>:1:1: warning: this is the location of the previous definition
cc -c -I./ -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -O3 -DVERSION=\"\" -DXS_VERSION=\"\" "-I/usr/local/lib/perl5/5.10.1/darwin-2level/CORE" scan.c
In file included from bcdefs.h:32,
from scan.l:32:
config.h:81:1: warning: "VERSION" redefined
<command line>:1:1: warning: this is the location of the previous definition
scan.l: In function 'yylex':
scan.l:319: warning: pointer targets in assignment differ in signedness
scan.l:335: warning: pointer targets in assignment differ in signedness
scan.l:336: warning: pointer targets in assignment differ in signedness
cc -c -I./ -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -O3 -DVERSION=\"\" -DXS_VERSION=\"\" "-I/usr/local/lib/perl5/5.10.1/darwin-2level/CORE" myutil1.c
In file included from bcdefs.h:32,
from myutil1.c:31:
config.h:81:1: warning: "VERSION" redefined
<command line>:1:1: warning: this is the location of the previous definition
cc -c -I./ -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -O3 -DVERSION=\"\" -DXS_VERSION=\"\" "-I/usr/local/lib/perl5/5.10.1/darwin-2level/CORE" myutil2.c
In file included from bcdefs.h:32,
from myutil2.c:32:
config.h:81:1: warning: "VERSION" redefined
<command line>:1:1: warning: this is the location of the previous definition
cc -c -I./ -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -O3 -DVERSION=\"\" -DXS_VERSION=\"\" "-I/usr/local/lib/perl5/5.10.1/darwin-2level/CORE" getopt.c
getopt.c: In function '_getopt_internal':
getopt.c:490: warning: incompatible implicit declaration of built-in function 'strlen'
getopt.c:514: warning: incompatible implicit declaration of built-in function 'strlen'
getopt.c:544: warning: incompatible implicit declaration of built-in function 'strlen'
getopt.c:557: warning: incompatible implicit declaration of built-in function 'strlen'
getopt.c:561: warning: incompatible implicit declaration of built-in function 'strlen'
getopt.c:394: warning: passing argument 1 of 'exchange' discards qualifiers from pointer target type
getopt.c:417: warning: passing argument 1 of 'exchange' discards qualifiers from pointer target type
cc -c -I./ -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -O3 -DVERSION=\"\" -DXS_VERSION=\"\" "-I/usr/local/lib/perl5/5.10.1/darwin-2level/CORE" getopt1.c
cc -c -I./ -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -O3 -DVERSION=\"\" -DXS_VERSION=\"\" "-I/usr/local/lib/perl5/5.10.1/darwin-2level/CORE" vfprintf.c
In file included from vfprintf.c:4:
config.h:81:1: warning: "VERSION" redefined
<command line>:1:1: warning: this is the location of the previous definition
cc -c -I./ -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -O3 -DVERSION=\"\" -DXS_VERSION=\"\" "-I/usr/local/lib/perl5/5.10.1/darwin-2level/CORE" number.c
In file included from number.c:33:
./config.h:81:1: warning: "VERSION" redefined
<command line>:1:1: warning: this is the location of the previous definition
number.c: In function 'bc_new_num':
number.c:76: warning: incompatible implicit declaration of built-in function 'memset'
number.c: In function 'bc_sub':
number.c:558: warning: incompatible implicit declaration of built-in function 'memset'
number.c: In function 'bc_add':
number.c:607: warning: incompatible implicit declaration of built-in function 'memset'
number.c: In function '_one_mult':
number.c:901: warning: incompatible implicit declaration of built-in function 'memset'
number.c:905: warning: incompatible implicit declaration of built-in function 'memcpy'
number.c: In function 'bc_divide':
number.c:956: warning: incompatible implicit declaration of built-in function 'memset'
number.c:957: warning: incompatible implicit declaration of built-in function 'memcpy'
number.c:978: warning: incompatible implicit declaration of built-in function 'memset'
number.c:979: warning: incompatible implicit declaration of built-in function 'memcpy'
number.c: In function 'bc_out_long':
number.c:1442: warning: incompatible implicit declaration of built-in function 'strlen'
ar cr libbc.a execute.o bc.o global.o storage.o load.o scan.o myutil1.o myutil2.o getopt.o getopt1.o vfprintf.o number.o
ranlib: file: libbc.a(vfprintf.o) has no symbols
ranlib libbc.a
ranlib: file: libbc.a(vfprintf.o) has no symbols
make[1]: Nothing to be done for `all'.
/usr/local/bin/perl /usr/local/lib/perl5/5.10.1/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.10.1/ExtUtils/typemap BC.xs > BC.xsc && mv BC.xsc BC.c
cc -c -Imylib -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -O3 -DVERSION=\"0.08\" -DXS_VERSION=\"0.08\" "-I/usr/local/lib/perl5/5.10.1/darwin-2level/CORE" BC.c
Running Mkbootstrap for Inline::BC ()
chmod 644 BC.bs
rm -f blib/arch/auto/Inline/BC/BC.bundle
env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib -L/opt/local/lib BC.o -o blib/arch/auto/Inline/BC/BC.bundle mylib/libbc.a \
-lfl \
chmod 755 blib/arch/auto/Inline/BC/BC.bundle
cp BC.bs blib/arch/auto/Inline/BC/BC.bs
chmod 644 blib/arch/auto/Inline/BC/BC.bs
Manifying blib/man3/Inline::BC.3
make[1]: Nothing to be done for `all'.
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00use.t ...... 1/1 Can't locate Inline.pm in @INC (@INC contains: /Users/jimk/learn/perl/parsexs/Inline-BC-0.08/blib/lib /Users/jimk/learn/perl/parsexs/Inline-BC-0.08/blib/arch /usr/local/lib/perl5/5.10.1/darwin-2level /usr/local/lib/perl5/5.10.1 /usr/local/lib/perl5/site_perl/5.10.1/darwin-2level /usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/site_perl/5.10.0/darwin-2level /usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/perl5/site_perl .) at t/00use.t line 4.
BEGIN failed--compilation aborted at t/00use.t line 4.
t/00use.t ...... Dubious, test returned 2 (wstat 512, 0x200)
Failed 1/1 subtests
t/01bc.t ....... 1/5 Can't locate Inline.pm in @INC (@INC contains: /Users/jimk/learn/perl/parsexs/Inline-BC-0.08/blib/lib /Users/jimk/learn/perl/parsexs/Inline-BC-0.08/blib/arch /usr/local/lib/perl5/5.10.1/darwin-2level /usr/local/lib/perl5/5.10.1 /usr/local/lib/perl5/site_perl/5.10.1/darwin-2level /usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/site_perl/5.10.0/darwin-2level /usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/perl5/site_perl .) at t/01bc.t line 4.
BEGIN failed--compilation aborted at t/01bc.t line 4.
t/01bc.t ....... Dubious, test returned 2 (wstat 512, 0x200)
Failed 5/5 subtests
t/02mathlib.t .. 1/841 # using Test::More 0.92
# Failed test 'use Inline;'
# at t/02mathlib.t line 14.
# Tried to use 'Inline'.
# Error: Can't locate Inline.pm in @INC (@INC contains: /Users/jimk/learn/perl/parsexs/Inline-BC-0.08/blib/lib /Users/jimk/learn/perl/parsexs/Inline-BC-0.08/blib/arch /usr/local/lib/perl5/5.10.1/darwin-2level /usr/local/lib/perl5/5.10.1 /usr/local/lib/perl5/site_perl/5.10.1/darwin-2level /usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/site_perl/5.10.0/darwin-2level /usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/perl5/site_perl .) at (eval 4) line 2.
# BEGIN failed--compilation aborted at (eval 4) line 2.
Undefined subroutine &main::bc_sin called at t/02mathlib.t line 68.
# Looks like you planned 841 tests but ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test exited with 255 just after 1.
t/02mathlib.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 841/841 subtests
Test Summary Report
-------------------
t/00use.t (Wstat: 512 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 2
t/01bc.t (Wstat: 512 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 2
Parse errors: Bad plan. You planned 5 tests but ran 1.
t/02mathlib.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 841 tests but ran 1.
Files=3, Tests=3, 0 wallclock secs ( 0.10 usr 0.04 sys + 0.09 cusr 0.05 csys = 0.28 CPU)
Result: FAIL
Failed 3/3 test programs. 3/3 subtests failed.
make: *** [test_dynamic] Error 255
$ perl -v
This is perl, v5.10.1 (*) built for darwin-2level
$ uname -a
Darwin Macintosh-8.local 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc