On 10 Oct 01, Jason E. Stewart writes:
> > After commenting out the cxx definitions in hints/dec_osf1.pl (since
> > gcc should be able to handle C++ code), I get the following error in
> > "make":
> >
> > > gcc -c -I. -IHandler -I/sw/common/src/xerces-c_2001-10-05/alpha-osf1/include
>-D_REENTRANT -DHAS_BOOL -O3 -DVERSION=\"1.5.7\" -DXS_VERSION=\"1.5.7\" -fpic
>-I/sw/common/share/perl/5.00503/alpha-osf1/CORE Xerces.C
> > > Xerces.C: In function `struct swig_type_info * SWIG_TypeCheck(SV *,
>swig_type_info *)':
> > > Xerces.C:175: passing `const char *' as argument 2 of `Perl_sv_derived_from(SV
>*, char *)' discards qualifiers
> > > make: *** [Xerces.o] Error 1
> >
> > Is that a problem with my configuration or with Xerces.C?
>
> Looks like an issue with Xerces.C because the call to
> sv_derived_from() is inserted by me.
>
> Test this. Edit Xerces.C line 175 from:
>
> if (sv_derived_from(sv,s->name)) {
>
> to:
>
> if (sv_derived_from(sv,(char*)s->name)) {
Thanks! That worked. I get a number of failures during 'make test',
though. I can't investigate further until tomorrow, but for now I
get:
> make[1]: Entering directory
>`/cluster/members/member1/net/nfs0/vol1/sw/src/perl-modules/XML-Xerces-1.5.7/alpha-osf1/DOMParse'
> make[1]: Leaving directory
>`/cluster/members/member1/net/nfs0/vol1/sw/src/perl-modules/XML-Xerces-1.5.7/alpha-osf1/DOMParse'
> PERL_DL_NONLAZY=1 /sw/arch/bin/perl -Iblib/arch -Iblib/lib
>-I/sw/common/share/perl/5.00503/alpha-osf1 -I/sw/common/share/perl/5.00503 -e 'use
>Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
> t/DOMCount..........ok
> t/DOMCreate.........ok
> t/DOMException......dubious
> Test returned status 0 (wstat 134, 0x86)
> test program seems to have generated a core
> DIED. FAILED tests 2-7
> Failed 6/7 tests, 14.29% okay
> t/DOMParser.........Bareword "XML::Xerces::DOMParser" not allowed while "strict
>subs" in use at (eval 1) line 1.
> FAILED test 3
> Failed 1/9 tests, 88.89% okay
> t/DOMPrint..........ok
> t/DOM_Attr..........ok
> t/DOM_Element.......ok
> t/DOM_Entity........ Failed test 3 as expected, no worries
> ok
> t/DOM_NamedNodeMap..ok
> t/DOM_NodeList......ok
> t/EntityResolver....ok
> t/IDOMParser........Using
>/cluster/members/member1/net/nfs0/vol1/sw/src/perl-modules/XML-Xerces-1.5.7/alpha-osf1/blib
> ok
> t/IDOM_Attr.........ok
> t/IDOM_DOMException.dubious
> Test returned status 0 (wstat 134, 0x86)
> test program seems to have generated a core
> DIED. FAILED tests 2-6
> Failed 5/6 tests, 16.67% okay
> t/IDOM_Element......ok
> t/InputSource.......ok
> t/LocalFileInputSource.dubious
> Test returned status 0 (wstat 134, 0x86)
> test program seems to have generated a core
> DIED. FAILED tests 4-6
> Failed 3/6 tests, 50.00% okay
> t/MemBufInputSource.ok
> t/PerlErrorHandler..ok
> t/SAX2Count.........Use of uninitialized value at t/SAX2Count.t line 52.
> Use of uninitialized value at t/SAX2Count.t line 53.
> Use of uninitialized value at t/SAX2Count.t line 54.
> Use of uninitialized value at t/SAX2Count.t line 55.
> Use of uninitialized value at t/SAX2Count.t line 56.
> Use of uninitialized value at t/SAX2Count.t line 57.
> Use of uninitialized value at t/SAX2Count.t line 58.
> Use of uninitialized value at t/SAX2Count.t line 59.
> FAILED tests 2, 5
> Failed 2/5 tests, 60.00% okay
> t/SAXCount..........ok
> t/SAXException......dubious
> Test returned status 0 (wstat 134, 0x86)
> test program seems to have generated a core
> DIED. FAILED tests 2-5
> Failed 4/5 tests, 20.00% okay
> t/SAXParser.........ok
> t/Schema............ok
> t/StdInInputSource..ok
> t/URLInputSource....dubious
> Test returned status 0 (wstat 134, 0x86)
> test program seems to have generated a core
> DIED. FAILED test 7
> Failed 1/7 tests, 85.71% okay
> t/XMLException......dubious
> Test returned status 0 (wstat 134, 0x86)
> test program seems to have generated a core
> DIED. FAILED tests 2-4
> Failed 3/4 tests, 25.00% okay
> t/actualCast........ok
> t/domTest...........ok
> Failed Test Status Wstat Total Fail Failed List of failed
> -------------------------------------------------------------------------------
> t/DOMException. 0 134 7 6 85.71% 2-7
> t/DOMParser.t 9 1 11.11% 3
> t/IDOM_DOMExcep 0 134 6 5 83.33% 2-6
> t/LocalFileInpu 0 134 6 3 50.00% 4-6
> t/SAX2Count.t 5 2 40.00% 2, 5
> t/SAXException. 0 134 5 4 80.00% 2-5
> t/URLInputSourc 0 134 7 1 14.29% 7
> t/XMLException. 0 134 4 3 75.00% 2-4
> Failed 8/29 test scripts, 72.41% okay. 25/139 subtests failed, 82.01% okay.
> make: *** [test_dynamic] Error 2
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]