Problem with "make test"

Darren Austin <[email protected]> Sun, 10 Dec 2006 01:37:19 +0000 (GMT)
Newsgroups gmane.mail.majordomo.majordomo2.devel
Message-ID <[email protected]>
Hi,
	I've downloaded the latest snapshot (9th Dec '06) and have encountered
a problem whilst installing.

Whilst running the "make test" part of the installation, i'm getting the
following errors:
PERL_DL_NONLAZY=1 /usr/bin/perl5.8.8 "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/addr...........ok
t/bounce.........ok
t/core...........ok
t/db-dbmbtree....ok
t/db-dbmhash.....ok
t/db-text........ok
t/shell..........ok 1/24Can't locate object method "_site_config_get" via package "Majordomo" at blib/lib/Majordomo.pm line 204.
t/shell..........NOK 2Can't locate object method "_site_config_get" via package "Majordomo" at blib/lib/Majordomo.pm line 204.
t/shell..........NOK 3Can't locate object method "_site_config_get" via package "Majordomo" at blib/lib/Majordomo.pm line 204.
[...]
t/shell..........NOK 23Can't locate object method "_site_config_get" via package "Majordomo" at blib/lib/Majordomo.pm line 204.
t/shell..........FAILED tests 2-6, 8-24
        Failed 22/24 tests, 8.33% okay
Failed Test Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/shell.t                 24   22  91.67%  2-6 8-24
Failed 1/7 test scripts, 85.71% okay. 22/202 subtests failed, 89.11% okay.
make: *** [test_dynamic] Error 255

After doing some tinkering it seems that these errors are being caused because
some functions are being defined in Majordomo.pm than after they are being
used in previous functions in the file.

If I move the function (_site_config_get) to before it's use the error goes
away - but other functions are suffering the same problem.

Is this something which can be easily fixed?  Or is it not a bug at all and
i've somehow managed to add a 'use Crack::Pipe' somewhere?

Thanks for any help you can offer.

Darren.

-- 
Ubuntu (Noun): I can't figure out how to configure Slackware.