[Dbix-class] Weird build/test failures on CentOS 3, DBIx::Class .06001

Gavin Carr gavin at openfusion.com.au
Thu Apr 13 05:04:33 CEST 2006


Hi all,

I'm trying to install DBIx::Class 0.06001 on two CentOS3 (RHEL3) boxes and getting
some pretty weird test failures. 'perl Makefile.PL' and 'make' both look fine, and
then 'make test' fails as follows:

  calix:~/.cpan/build/DBIx-Class-0.06001$ make test
  /usr/bin/perl Build --makefile_env_macros 1 test
  t/02pod.............................ok                                       
  t/04dont_break_c3...................ok                                       
  t/05components......................ok                                       
  t/18inserterror.....................NOK 1                                    
  #   Failed test 'use DBICTest;'
  #   in t/18inserterror.t at line 15.
  #     Tried to use 'DBICTest'.
  #     Error:  Can't locate object method "new" via package "DBIx::Class::ResultSource::Table" at /export/home/gavin/.cpan/build/DBIx-Class-0.06001/blib/lib/DBIx/Class/ResultSourceProxy/Table.pm line 50.
  # Compilation failed in require at (eval 14) line 2.
  # BEGIN failed--compilation aborted at t/18inserterror.t line 15.
  # Compilation failed in require at t/lib/DBICTest.pm line 6.
  # BEGIN failed--compilation aborted at t/lib/DBICTest.pm line 6.
  # Compilation failed in require at (eval 8) line 2.
  # BEGIN failed--compilation aborted at (eval 8) line 2.
  t/18inserterror.....................ok 3/3# Looks like you failed 1 test of 3.
  t/18inserterror.....................dubious                                  
          Test returned status 1 (wstat 256, 0x100)
  DIED. FAILED test 1
          Failed 1/3 tests, 66.67% okay
  t/19quotes..........................NOK 1                                    
  #   Failed test 'use DBICTest;'
  #   in t/19quotes.t at line 14.
  #     Tried to use 'DBICTest'.
  #     Error:  Can't locate object method "new" via package "DBIx::Class::ResultSource::Table" at /export/home/gavin/.cpan/build/DBIx-Class-0.06001/blib/lib/DBIx/Class/ResultSourceProxy/Table.pm line 50.
  # Compilation failed in require at (eval 17) line 2.
  # BEGIN failed--compilation aborted at t/19quotes.t line 14.
  # Compilation failed in require at t/lib/DBICTest.pm line 6.
  # BEGIN failed--compilation aborted at t/lib/DBICTest.pm line 6.
  # Compilation failed in require at (eval 7) line 2.
  # BEGIN failed--compilation aborted at (eval 7) line 2.
  t/19quotes..........................NOK 2                                    
  #   Failed test 'use DBICTest::HelperRels;'
  #   in t/19quotes.t at line 16.
  #     Tried to use 'DBICTest::HelperRels'.
  #     Error:  Can't locate object method "result_source_instance" via package "DBICTest::Schema::Artist" at /export/home/gavin/.cpan/build/DBIx-Class-0.06001/blib/lib/DBIx/Class/ResultSourceProxy.pm line 45.
  # Compilation failed in require at t/lib/DBICTest/HelperRels.pm line 5.
  # BEGIN failed--compilation aborted at t/19quotes.t line 16.
  # Compilation failed in require at (eval 53) line 2.
  # BEGIN failed--compilation aborted at (eval 53) line 2.
  Can't locate object method "schema" via package "DBICTest" at t/19quotes.t line 18.
  # Looks like you planned 7 tests but only ran 2.
  # Looks like you failed 2 tests of 2 run.
  # Looks like your test died just after 2.
  t/19quotes..........................dubious                                  
          Test returned status 255 (wstat 65280, 0xff00)
  DIED. FAILED tests 1-7
          Failed 7/7 tests, 0.00% okay
  <snip>

with lots more similar failures following, ending with:

  21 tests skipped.
  Failed 58/84 test scripts, 30.95% okay. 13/110 subtests failed, 88.18% okay.

Same failures on both CentOS 3 machines, which are both running the stock perl:

  calix:~/.cpan/build/DBIx-Class-0.06001$ perl -v

  This is perl, v5.8.0 built for i386-linux-thread-multi
  (with 1 registered patch, see perl -V for more detail)

I've checked the cited packages (DBIx::Class::ResultSource::Table, DBICTest::Schema::Artist, etc.)
and various base classes in blib/lib, and everything looks completely normal. I've got no idea
what's going on. 

Anyone got any ideas where to look next? Anyone out there with a CentOS3 / RHEL3 who's had success
installing DBIx::Class 0.06xxx? 

For the record, I get similar failures with .06000, but .05001 built just fine.

Thanks much,
Gavin




More information about the Dbix-class mailing list