[Koha-devel] Last Koha development version (from git) mentions missing prerequisites that are already installed

Joe Atzberger ohiocore at gmail.com
Fri Apr 24 21:56:13 CEST 2009


Looks like we need to break out the static functions from C4::Labels so that
the test can use them directly without C4::Labels trying to "use" Members,
Branch, Biblio, etc. and all their dependencies.  That is where the tests
fail since inevitably one of those tries to do some DB access at the class
level (despite it not being used by the test).  Same for C4::Circulation
apparently.

They are safe to ignore for now, but we should still fix them up.
--Joe

On Fri, Apr 24, 2009 at 3:23 PM, Ricardo Dias Marques
<lists at ricmarques.net>wrote:

> Hi Galen,
>
> On Wed, Apr 22, 2009, Galen Charlton <galen.charlton at liblime.com> wrote:
>
> > The error messages show that there are at least two Perl modules that
> > Date::ICal and SMS::Send depend on, namely Date::Leapyear and
> > Params::Util, that are either not installed or not accessible via
> > @INC.  You will need to install those modules from RPMs or CPAN.
> >
>
> Thanks for the information. I think that I solved the problem by
> installing those two Perl modules from CPAN (Date::Leapyear and
> Params::Util) *and also* a third module named Class::Adapter::Builder
> that SMS::Send seemed to also depend on, although I did bump into some
> other errors that I dismissed, as I will mention further down:
>
> ------------------------------
> myhost:~/mykohaclone # perl -MSMS::Send -e 'print $SMS::Send::VERSION,
> "\n"'
> Can't locate Class/Adapter/Builder.pm in @INC [snip]
> Compilation failed in require.
> BEGIN failed--compilation aborted.
>
>
> myhost:~/mykohaclone # cpan
>
> cpan> install Class::Adapter::Builder
> CPAN: Storable loaded ok
> Going to read /root/.cpan/Metadata
>  Database was generated on Wed, 22 Apr 2009 05:26:59 GMT
> Running install for module Class::Adapter::Builder
> [snip]
> All tests successful, 3 tests skipped.
> Files=10, Tests=65,  1 wallclock secs ( 0.36 cusr +  0.25 csys =  0.61 CPU)
>  /usr/bin/make test -- OK
> Running make install
> [snip]
> /usr/bin/make install  -- OK
>
>
> myhost:~/mykohaclone # perl Makefile.PL --prev-install-log
> /root/ric-koha-head/misc/koha-install-log
>
> [snip]
>
> If installing on a Win32 platform, be sure to use:
> 'dmake -x MAXLINELENGTH=300000'
>
> Writing Makefile for koha
> ------------------------------
>
>
> So, this time I got NO more "Warning" lines about missing prerequisites!
>  :)
>
> After doing this, I ran "make test", which did return some ERRORS in
> tests "t/Circulation_barcodedecode.t", "t/Labels_split_ddcn.t" and
> "t/Labels_split_lccn.t ", for test 'use C4::Labels;'. I decided to
> dismiss those errors and ran "make install" anyway:
>
> ------------------------------
> myhost:~/mykohaclone # make test
>
> [snip]
>
> t/Calendar.....................ok
> t/Charset......................ok
> t/Circulation_barcodedecode....Use of uninitialized value in
> concatenation (.) or string at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666.
>
> #   Failed test 'use C4::Circulation;'
> #   in t/Circulation_barcodedecode.t at line 10.
> #     Tried to use 'C4::Circulation'.
> #     Error:  Can't connect to data source
> 'dbname=__DB_NAME__;host=__DB_HOST__;port=__DB_PORT__' because I can't
> work out what driver to use (it doesn't seem to contain a
> 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666
> # Compilation failed in require at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Circulation.pm line 25.
> # BEGIN failed--compilation aborted at t/Circulation_barcodedecode.t line
> 10.
> # Compilation failed in require at (eval 3) line 2.
> # BEGIN failed--compilation aborted at (eval 3) line 2.
> Undefined subroutine &C4::Circulation::barcodedecode called at
> t/Circulation_barcodedecode.t line 31.
> # Looks like you planned 16 tests but only ran 1.
> # Looks like you failed 1 test of 1 run.
> # Looks like your test died just after 1.
> t/Circulation_barcodedecode....dubious
>        Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-16
>        Failed 16/16 tests, 0.00% okay
> t/Dates........................#
> # In order to run without DB access, this test will substitute 'us'
> # as your default date format.  Export environmental variable
> KOHA_TEST_DATE_FORMAT
> # to override this default, or pass the value as an argument to this
> test script.
> #
> # NOTE: we test for the system handling dd=00 and 00 for TIME values,
> therefore
> # you SHOULD see some warnings like:
> # Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t
> ...
> #
> # Testing Legacy Functions: format_date and format_date_in_iso
> #
> Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line
> 62
> Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line
> 65
> #
> # Testing 4 formats.
> # Testing no input (defaults):
> #
> # Testing with valid inputs:
> Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line
> 84
> Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line
> 84
> Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line
> 84
> Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line
> 84
> #
> # Testing object independence from class
> # done.
> t/Dates........................ok
>        12/192 skipped: various reasons
> t/Debug........................# BEFORE use:     $debug is not defined
> # BEFORE use: $cgi_debug is not defined
> #  AFTER use:     $debug is 0
> #  AFTER use: $cgi_debug is 0
> # Done.
> t/Debug........................ok
> t/dummy........................ok
> t/Input........................ok
> t/Koha.........................ok
> t/Labels_split_ddcn............Use of uninitialized value in
> concatenation (.) or string at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666.
>
> #   Failed test 'use C4::Labels;'
> #   in t/Labels_split_ddcn.t at line 11.
> #     Tried to use 'C4::Labels'.
> #     Error:  Can't connect to data source
> 'dbname=__DB_NAME__;host=__DB_HOST__;port=__DB_PORT__' because I can't
> work out what driver to use (it doesn't seem to contain a
> 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666
> # Compilation failed in require at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Circulation.pm line 25.
> # BEGIN failed--compilation aborted at t/Labels_split_ddcn.t line 11.
> # Compilation failed in require at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Overdues.pm line 24.
> # BEGIN failed--compilation aborted at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Overdues.pm line 24.
> # Compilation failed in require at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Members.pm line 27.
> # BEGIN failed--compilation aborted at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Members.pm line 27.
> # Compilation failed in require at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Labels.pm line 27.
> # BEGIN failed--compilation aborted at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Labels.pm line 27.
> # Compilation failed in require at (eval 3) line 2.
> # BEGIN failed--compilation aborted at (eval 3) line 2.
> Bareword "C4::Labels::split_ddcn" not allowed while "strict subs" in
> use at t/Labels_split_ddcn.t line 13.
> Execution of t/Labels_split_ddcn.t aborted due to compilation errors.
> # Looks like you planned 52 tests but only ran 1.
> # Looks like you failed 1 test of 1 run.
> # Looks like your test died just after 1.
> t/Labels_split_ddcn............dubious
>        Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-52
>        Failed 52/52 tests, 0.00% okay
> t/Labels_split_lccn............Use of uninitialized value in
> concatenation (.) or string at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666.
>
> #   Failed test 'use C4::Labels;'
> #   in t/Labels_split_lccn.t at line 11.
> #     Tried to use 'C4::Labels'.
> #     Error:  Can't connect to data source
> 'dbname=__DB_NAME__;host=__DB_HOST__;port=__DB_PORT__' because I can't
> work out what driver to use (it doesn't seem to contain a
> 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666
> # Compilation failed in require at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Circulation.pm line 25.
> # BEGIN failed--compilation aborted at t/Labels_split_lccn.t line 11.
> # Compilation failed in require at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Overdues.pm line 24.
> # BEGIN failed--compilation aborted at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Overdues.pm line 24.
> # Compilation failed in require at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Members.pm line 27.
> # BEGIN failed--compilation aborted at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Members.pm line 27.
> # Compilation failed in require at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Labels.pm line 27.
> # BEGIN failed--compilation aborted at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Labels.pm line 27.
> # Compilation failed in require at (eval 3) line 2.
> # BEGIN failed--compilation aborted at (eval 3) line 2.
> Bareword "C4::Labels::split_lccn" not allowed while "strict subs" in
> use at t/Labels_split_lccn.t line 13.
> Execution of t/Labels_split_lccn.t aborted due to compilation errors.
> # Looks like you planned 44 tests but only ran 1.
> # Looks like you failed 1 test of 1 run.
> # Looks like your test died just after 1.
> t/Labels_split_lccn............dubious
>        Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-44
>        Failed 44/44 tests, 0.00% okay
> t/Languages....................ok
> t/Maintainance.................ok
> t/Output.......................ok
> t/Record.......................ok
> t/Review.......................ok
> t/Scrubber.....................# Note: scrubber test output will have
> whitespace collapsed for readability
> # done.
> t/Scrubber.....................ok
> t/Stats........................ok
> Failed Test                   Stat Wstat Total Fail  Failed  List of Failed
>
> -------------------------------------------------------------------------------
> t/Circulation_barcodedecode.t  255 65280    16   31 193.75%  1-16
> t/Labels_split_ddcn.t          255 65280    52  103 198.08%  1-52
> t/Labels_split_lccn.t          255 65280    44   87 197.73%  1-44
> 12 subtests skipped.
> Failed 3/23 test scripts, 86.96% okay. 112/351 subtests failed, 68.09%
> okay.
> make: *** [test_dynamic] Error 255
>
>
> myhost:~/mykohaclone # make install
>
> [snip]
>
> t/Calendar.....................ok
> t/Charset......................ok
> t/Circulation_barcodedecode....Use of uninitialized value in
> concatenation (.) or string at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666.
>
> #   Failed test 'use C4::Circulation;'
> #   in t/Circulation_barcodedecode.t at line 10.
> #     Tried to use 'C4::Circulation'.
> #     Error:  Can't connect to data source
> 'dbname=__DB_NAME__;host=__DB_HOST__;port=__DB_PORT__' because I can't
> work out what driver to use (it doesn't seem to contain a
> 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666
> # Compilation failed in require at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Circulation.pm line 25.
> # BEGIN failed--compilation aborted at t/Circulation_barcodedecode.t line
> 10.
> # Compilation failed in require at (eval 3) line 2.
> # BEGIN failed--compilation aborted at (eval 3) line 2.
> Undefined subroutine &C4::Circulation::barcodedecode called at
> t/Circulation_barcodedecode.t line 31.
> # Looks like you planned 16 tests but only ran 1.
> # Looks like you failed 1 test of 1 run.
> # Looks like your test died just after 1.
> t/Circulation_barcodedecode....dubious
>        Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-16
>        Failed 16/16 tests, 0.00% okay
> t/Dates........................#
> # In order to run without DB access, this test will substitute 'us'
> # as your default date format.  Export environmental variable
> KOHA_TEST_DATE_FORMAT
> # to override this default, or pass the value as an argument to this
> test script.
> #
> # NOTE: we test for the system handling dd=00 and 00 for TIME values,
> therefore
> # you SHOULD see some warnings like:
> # Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t
> ...
> #
> # Testing Legacy Functions: format_date and format_date_in_iso
> #
> Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line
> 62
> Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line
> 65
> #
> # Testing 4 formats.
> # Testing no input (defaults):
> #
> # Testing with valid inputs:
> Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line
> 84
> Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line
> 84
> Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line
> 84
> Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line
> 84
> #
> # Testing object independence from class
> # done.
> t/Dates........................ok
>        12/192 skipped: various reasons
> t/Debug........................# BEFORE use:     $debug is not defined
> # BEFORE use: $cgi_debug is not defined
> #  AFTER use:     $debug is 0
> #  AFTER use: $cgi_debug is 0
> # Done.
> t/Debug........................ok
> t/dummy........................ok
> t/Input........................ok
> t/Koha.........................ok
> t/Labels_split_ddcn............Use of uninitialized value in
> concatenation (.) or string at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666.
>
> #   Failed test 'use C4::Labels;'
> #   in t/Labels_split_ddcn.t at line 11.
> #     Tried to use 'C4::Labels'.
> #     Error:  Can't connect to data source
> 'dbname=__DB_NAME__;host=__DB_HOST__;port=__DB_PORT__' because I can't
> work out what driver to use (it doesn't seem to contain a
> 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666
> # Compilation failed in require at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Circulation.pm line 25.
> # BEGIN failed--compilation aborted at t/Labels_split_ddcn.t line 11.
> # Compilation failed in require at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Overdues.pm line 24.
> # BEGIN failed--compilation aborted at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Overdues.pm line 24.
> # Compilation failed in require at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Members.pm line 27.
> # BEGIN failed--compilation aborted at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Members.pm line 27.
> # Compilation failed in require at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Labels.pm line 27.
> # BEGIN failed--compilation aborted at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Labels.pm line 27.
> # Compilation failed in require at (eval 3) line 2.
> # BEGIN failed--compilation aborted at (eval 3) line 2.
> Bareword "C4::Labels::split_ddcn" not allowed while "strict subs" in
> use at t/Labels_split_ddcn.t line 13.
> Execution of t/Labels_split_ddcn.t aborted due to compilation errors.
> # Looks like you planned 52 tests but only ran 1.
> # Looks like you failed 1 test of 1 run.
> # Looks like your test died just after 1.
> t/Labels_split_ddcn............dubious
>        Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-52
>        Failed 52/52 tests, 0.00% okay
> t/Labels_split_lccn............Use of uninitialized value in
> concatenation (.) or string at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666.
>
> #   Failed test 'use C4::Labels;'
> #   in t/Labels_split_lccn.t at line 11.
> #     Tried to use 'C4::Labels'.
> #     Error:  Can't connect to data source
> 'dbname=__DB_NAME__;host=__DB_HOST__;port=__DB_PORT__' because I can't
> work out what driver to use (it doesn't seem to contain a
> 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666
> # Compilation failed in require at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Circulation.pm line 25.
> # BEGIN failed--compilation aborted at t/Labels_split_lccn.t line 11.
> # Compilation failed in require at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Overdues.pm line 24.
> # BEGIN failed--compilation aborted at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Overdues.pm line 24.
> # Compilation failed in require at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Members.pm line 27.
> # BEGIN failed--compilation aborted at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Members.pm line 27.
> # Compilation failed in require at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Labels.pm line 27.
> # BEGIN failed--compilation aborted at
> /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Labels.pm line 27.
> # Compilation failed in require at (eval 3) line 2.
> # BEGIN failed--compilation aborted at (eval 3) line 2.
> Bareword "C4::Labels::split_lccn" not allowed while "strict subs" in
> use at t/Labels_split_lccn.t line 13.
> Execution of t/Labels_split_lccn.t aborted due to compilation errors.
> # Looks like you planned 44 tests but only ran 1.
> # Looks like you failed 1 test of 1 run.
> # Looks like your test died just after 1.
> t/Labels_split_lccn............dubious
>        Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-44
>        Failed 44/44 tests, 0.00% okay
> t/Languages....................ok
> t/Maintainance.................ok
> t/Output.......................ok
> t/Record.......................ok
> t/Review.......................ok
> t/Scrubber.....................# Note: scrubber test output will have
> whitespace collapsed for readability
> # done.
> t/Scrubber.....................ok
> t/Stats........................ok
> Failed Test                   Stat Wstat Total Fail  Failed  List of Failed
>
> -------------------------------------------------------------------------------
> t/Circulation_barcodedecode.t  255 65280    16   31 193.75%  1-16
> t/Labels_split_ddcn.t          255 65280    52  103 198.08%  1-52
> t/Labels_split_lccn.t          255 65280    44   87 197.73%  1-44
> 12 subtests skipped.
> Failed 3/23 test scripts, 86.96% okay. 112/351 subtests failed, 68.09%
> okay.
> make: *** [test_dynamic] Error 255
> ------------------------------
>
>
> Like I said, after running "make test", I ran "make install" (that
> went smoothly). After doing this, I went to the "Koha Web Installer"
> (running on the 8080 port) and successfully went through all the
> steps, with one small exception, that was an error regarding notice
> message transports, specifically after activating the checkbox for
> sample_notices_message_transports:
>
> ------------------------------
> sample_notices_message_transports.sql
> ERROR 1452 (23000) at line 1: Cannot add or update a child row: a
> foreign key constraint fails (`kohahead/message_transports`,
> CONSTRAINT `message_transports_ibfk_1` FOREIGN KEY
> (`message_attribute_id`) REFERENCES `message_attributes`
> (`message_attribute_id`) ON DELETE CASCADE ON UPDATE )
> ------------------------------
>
>
> So, I would like to ask: are these errors regarding
> "t/Circulation_barcodedecode.t", "t/Labels_split_ddcn.t",
> "t/Labels_split_lccn.t" and "sample_notices_message_transports.sql"
> SAFE to IGNORE?
>
> Thanks again Galen!
>
> Cheers,
> Ricardo Dias Marques
> lists AT ricmarques DOT net
> Installation Guide for Installing Koha 3 on openSUSE 11
> http://wiki.koha.org/doku.php?id=opensuse_11.0
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha.org
> http://lists.koha.org/mailman/listinfo/koha-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-devel/attachments/20090424/39ddfc83/attachment-0003.htm>


More information about the Koha-devel mailing list