I put a warn $ENV{PERL5LIB} type statement in a BEGIN, another just before the "use Inline" statement, and one in an END statement

here is the output. This is on freebsd for whatever thats worth.


-------------

[root@test /tmp/Inline-CPP-0.33_004]# perl Makefile.PL
Warning: prerequisite Inline version 0.49 not found at Makefile.PL line 32. Warning: prerequisite Inline::C version 0.49 not found at Makefile.PL line 32. Warning: prerequisite Parse::RecDescent version 0 not found at Makefile.PL line 32.
This will configure and build Inline::C++.
What default C++ compiler would you like to use? [g++]
What default libraries would you like to include? [-lstdc++]
Detected <iostream> style headers. ('.h' not needed.)
Checking if your kit is complete...
Looks good
Warning: prerequisite Inline 0.49 not found.
Warning: prerequisite Inline::C 0.49 not found.
Warning: prerequisite Parse::RecDescent 0 not found.
Warning: prerequisite Parse::RecDescent 0 not found.
Writing Makefile for Inline::CPP::grammar
Writing MYMETA.yml
Writing Makefile for Inline::CPP
Writing MYMETA.yml
[root@test /tmp/Inline-CPP-0.33_004]# make
cp CPP.pm blib/lib/Inline/CPP.pm
cp lib/Inline/CPP.pod blib/lib/Inline/CPP.pod
cp grammar.pm ../blib/lib/Inline/CPP/grammar.pm
Manifying blib/man3/Inline::CPP.3
[root@test /tmp/Inline-CPP-0.33_004]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01basic.t ... BEGIN PERL5LIB is |/tmp/Inline-CPP-0.33_004/blib/lib:/tmp/Inline-CPP-0.33_004/blib/arch| Can't locate Inline.pm in @INC (@INC contains: /tmp/Inline-CPP-0.33_004/blib/lib /tmp/Inline-CPP-0.33_004/blib/arch /usr/local/lib/perl5/5.14.2/BSDPAN /usr/local/lib/perl5/site_perl/5.14.2/mach /usr/local/lib/perl5/site_perl/5.14.2 /usr/local/lib/perl5/5.14.2/mach /usr/local/lib/perl5/5.14.2 .) at t/01basic.t line 67.
BEGIN failed--compilation aborted at t/01basic.t line 67.
t/01basic.t ... Dubious, test returned 2 (wstat 512, 0x200)
Failed 10/10 subtests
t/02prefix.t .. Can't locate Inline.pm in @INC (@INC contains: /tmp/Inline-CPP-0.33_004/blib/lib /tmp/Inline-CPP-0.33_004/blib/arch /usr/local/lib/perl5/5.14.2/BSDPAN /usr/local/lib/perl5/site_perl/5.14.2/mach /usr/local/lib/perl5/site_perl/5.14.2 /usr/local/lib/perl5/5.14.2/mach /usr/local/lib/perl5/5.14.2 .) at t/02prefix.t line 6.
BEGIN failed--compilation aborted at t/02prefix.t line 6.
t/02prefix.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 4/4 subtests

Test Summary Report
-------------------
t/01basic.t (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 10 tests but ran 0.
t/02prefix.t (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 4 tests but ran 0.
Files=2, Tests=0, 0 wallclock secs ( 0.04 usr 0.00 sys + 0.03 cusr 0.01 csys = 0.08 CPU)
Result: FAIL
Failed 2/2 test programs. 0/0 subtests failed.
*** Error code 2

Stop in /tmp/Inline-CPP-0.33_004.
[root@test /tmp/Inline-CPP-0.33_004]#
[root@test /tmp/Inline-CPP-0.33_004]# make
cp CPP.pm blib/lib/Inline/CPP.pm
cp lib/Inline/CPP.pod blib/lib/Inline/CPP.pod
cp grammar.pm ../blib/lib/Inline/CPP/grammar.pm
Manifying blib/man3/Inline::CPP.3
[root@test /tmp/Inline-CPP-0.33_004]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01basic.t ... BEGIN PERL5LIB is |/tmp/Inline-CPP-0.33_004/blib/lib:/tmp/Inline-CPP-0.33_004/blib/arch| Can't locate Inline.pm in @INC (@INC contains: /tmp/Inline-CPP-0.33_004/blib/lib /tmp/Inline-CPP-0.33_004/blib/arch /usr/local/lib/perl5/5.14.2/BSDPAN /usr/local/lib/perl5/site_perl/5.14.2/mach /usr/local/lib/perl5/site_perl/5.14.2 /usr/local/lib/perl5/5.14.2/mach /usr/local/lib/perl5/5.14.2 .) at t/01basic.t line 67.
BEGIN failed--compilation aborted at t/01basic.t line 67.
t/01basic.t ... Dubious, test returned 2 (wstat 512, 0x200)
Failed 10/10 subtests
t/02prefix.t .. Can't locate Inline.pm in @INC (@INC contains: /tmp/Inline-CPP-0.33_004/blib/lib /tmp/Inline-CPP-0.33_004/blib/arch /usr/local/lib/perl5/5.14.2/BSDPAN /usr/local/lib/perl5/site_perl/5.14.2/mach /usr/local/lib/perl5/site_perl/5.14.2 /usr/local/lib/perl5/5.14.2/mach /usr/local/lib/perl5/5.14.2 .) at t/02prefix.t line 6.
BEGIN failed--compilation aborted at t/02prefix.t line 6.
t/02prefix.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 4/4 subtests

Test Summary Report
-------------------
t/01basic.t (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 10 tests but ran 0.
t/02prefix.t (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 4 tests but ran 0.
Files=2, Tests=0, 0 wallclock secs ( 0.04 usr 0.00 sys + 0.03 cusr 0.01 csys = 0.08 CPU)
Result: FAIL
Failed 2/2 test programs. 0/0 subtests failed.
*** Error code 2

Stop in /tmp/Inline-CPP-0.33_004.
[root@test /tmp/Inline-CPP-0.33_004]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01basic.t ... BEGIN PERL5LIB is |/tmp/Inline-CPP-0.33_004/blib/lib:/tmp/Inline-CPP-0.33_004/blib/arch| Can't locate Inline.pm in @INC (@INC contains: /tmp/Inline-CPP-0.33_004/blib/lib /tmp/Inline-CPP-0.33_004/blib/arch /usr/local/lib/perl5/5.14.2/BSDPAN /usr/local/lib/perl5/site_perl/5.14.2/mach /usr/local/lib/perl5/site_perl/5.14.2 /usr/local/lib/perl5/5.14.2/mach /usr/local/lib/perl5/5.14.2 .) at t/01basic.t line 67.
BEGIN failed--compilation aborted at t/01basic.t line 67.
t/01basic.t ... Dubious, test returned 2 (wstat 512, 0x200)
Failed 10/10 subtests
t/02prefix.t .. Can't locate Inline.pm in @INC (@INC contains: /tmp/Inline-CPP-0.33_004/blib/lib /tmp/Inline-CPP-0.33_004/blib/arch /usr/local/lib/perl5/5.14.2/BSDPAN /usr/local/lib/perl5/site_perl/5.14.2/mach /usr/local/lib/perl5/site_perl/5.14.2 /usr/local/lib/perl5/5.14.2/mach /usr/local/lib/perl5/5.14.2 .) at t/02prefix.t line 6.
BEGIN failed--compilation aborted at t/02prefix.t line 6.
t/02prefix.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 4/4 subtests

Test Summary Report
-------------------
t/01basic.t (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 10 tests but ran 0.
t/02prefix.t (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 4 tests but ran 0.
Files=2, Tests=0, 0 wallclock secs ( 0.04 usr 0.02 sys + 0.02 cusr 0.02 csys = 0.09 CPU)
Result: FAIL
Failed 2/2 test programs. 0/0 subtests failed.
*** Error code 2

Stop in /tmp/Inline-CPP-0.33_004.
[root@test /tmp/Inline-CPP-0.33_004]#


-------------------------

I dont think this has helped at all...


Dean


On Fri, 20 Jan 2012 21:00:48 +1100, Sisyphus wrote:
----- Original Message ----- From: "Dean Hamstead" <d...@fragfest.com.au>
To: "Sisyphus" <sisyph...@optusnet.com.au>
Cc: "David Oswald" <daosw...@gmail.com>; <inline@perl.org>
Sent: Friday, January 20, 2012 11:34 AM
Subject: Re: Smoke test failure: Inline::CPP: Still dealing with
"Can't locate Parse::RecDescent, and M18 errors.


I just ran this on my rhel6 machine for now...

[r...@dean.dev ~]# perl -e 'BEGIN {warn "\$ENV{PERL5LIB}:
$ENV{PERL5LIB}\n";};'
$ENV{PERL5LIB}:
[r...@dean.dev ~]#

More importantly,I'd like to see what happens to PERL5LIB when your
smokers are building Inline::CPP.

At the end of your reports we get to see what PERL5LIB is set to, but
I'm more curious to see what it's set to when your smokers reach the
'make test' phase of the build process.

David, maybe you could include the change I mentioned to t/01basic.t
in the next devel release. It doesn't have to be a permanent fixture
in the test suite - just a temporary thing to enable us to see if
something unusual has happened to PERL5LIB.
We know something unusual has happened to @INC - it might be helpful
to know whether it's caused by a change to PERL5LIB, or due to some
other factor.

I think we're looking at some quirk of the way the smoker is set up
(or a bug in CPAN::Reporter::Smoker), but that's only guesswork on my
part.

Cheers,
Rob

--
Come play computer games with us at http://fragfest.com.au

Reply via email to