Subject: | FAIL Win32+perl5.8.0: t/Simple.t (XML::Twig Weak ref error) |
A fallback to XML::* if XML::Twig fails would be perfect.
Murat
---
CPAN.pm: Going to build P/PE/PETERHI/AI-ExpertSystem-Simple.1.2.tgz
Checking if your kit is complete...
Looks good
Warning: prerequisite XML::Twig 0 not found.
Writing Makefile for AI::ExpertSystem::Simple
Microsoft (R) Program Maintenance Utility Version 7.00.9466
Copyright (C) Microsoft Corporation. All rights reserved.
cp lib/AI/ExpertSystem/Simple.pm blib\lib\AI\ExpertSystem\Simple.pm
cp lib/AI/ExpertSystem/Simple/Knowledge.pm blib\lib\AI\ExpertSystem\Simple\Knowledge.pm
cp lib/AI/ExpertSystem/Simple/Rule.pm blib\lib\AI\ExpertSystem\Simple\Rule.pm
cp lib/AI/ExpertSystem/Simple/Goal.pm blib\lib\AI\ExpertSystem\Simple\Goal.pm
C:\Programme\Perl\bin\perl.exe -MExtUtils::Command -e cp bin/simpleshell blib\script\simpleshell
pl2bat.bat blib\script\simpleshell
C:\Programme\Perl\bin\perl.exe -MExtUtils::Command -e cp bin/consult blib\script\consult
pl2bat.bat blib\script\consult
"C:\Programme\Microsoft Visual Studio .NET\FrameworkSDK\Bin\nmake.exe" -- OK
Running make test
Microsoft (R) Program Maintenance Utility Version 7.00.9466
Copyright (C) Microsoft Corporation. All rights reserved.
C:\Programme\Perl\bin\perl.exe -MExtUtils::Command -e cp bin/simpleshell blib\script\simpleshell
pl2bat.bat blib\script\simpleshell
C:\Programme\Perl\bin\perl.exe -MExtUtils::Command -e cp bin/consult blib\script\consult
pl2bat.bat blib\script\consult
C:\Programme\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t\Goal.t t\Knowledge.t t\Rule.t t\Simple.t
t\Goal.........ok
t\Knowledge....ok
t\Rule.........ok
t\Simple.......# Failed test (t\Simple.t at line 8)
t\Simple.......NOK 1# Tried to use 'AI::ExpertSystem::Simple'.
# Error: Weak references are not implemented in the version of perl at C:/Programme/Perl/site/lib/XML/Twig.pm line 95
# BEGIN failed--compilation aborted at C:/Programme/Perl/site/lib/XML/Twig.pm line 139.
# Compilation failed in require at V:\.cpan\build\AI-ExpertSystem-Simple.1.2\blib\lib/AI/ExpertSystem/Simple.pm line 6.
# BEGIN failed--compilation aborted at V:\.cpan\build\AI-ExpertSystem-Simple.1.2\blib\lib/AI/ExpertSystem/Simple.pm line 6.
# Compilation failed in require at (eval 1) line 2.
t\Simple.......NOK 2# Failed test (t\Simple.t at line 17)
# 'Can't locate object method "new" via package "AI::ExpertSystem::Simple" at t\Simple.t line 16.
# '
# doesn't match '(?-xism:^Simple->new\(\) takes no arguments )'
Can't locate object method "new" via package "AI::ExpertSystem::Simple" at t\Simple.t line 19.
# Looks like you planned 28 tests but only ran 2.
# Looks like your test died just after 2.
t\Simple.......dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-28
Failed 28/28 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t\Simple.t 255 65280 28 54 192.86% 1-28
Failed 1/4 test scripts, 75.00% okay. 28/127 subtests failed, 77.95% okay.
NMAKE : fatal error U1077: 'C:\Programme\Perl\bin\perl.exe' : return code '0x2'
Stop.
"C:\Programme\Microsoft Visual Studio .NET\FrameworkSDK\Bin\nmake.exe" test -- NOT OK
Running make install
make test had returned bad status, won't install without force
----
Though it says XML::Twig 0 not found...
Show quoted text
cpan> install XML::Twig
CPAN: Storable loaded ok
Going to read V:\.cpan\Metadata
Database was generated on Thu, 18 Dec 2003 12:47:36 GMT
XML::Twig is up to date.
----
Summary of my perl5 (revision 5 version 8 subversion 0) configuration:
Platform:
osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
usethreads=undef use5005threads=undef useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cl', ccflags ='-nologo -Gf -W3 -MD -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX'
,
optimize='-MD -DNDEBUG -O1',
cppflags='-DWIN32'
ccversion='', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -libpath:"C:\Programme\Perl\lib\CORE" -machine:x86'
libpth=\lib
libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib
version.lib odbc32.lib odbccp32.lib msvcrt.lib
perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm
.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib
libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl58.lib
gnulibc_version='undef'
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -libpath:"C:\Programme\Perl\lib\CORE" -machine:x86'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
Locally applied patches:
ActivePerl Build 806
Built under MSWin32
Compiled at Apr 24 2003 20:37:33
@INC:
C:/Programme/Perl/lib
C:/Programme/Perl/site/lib
.