ports/150968: p5-XML-Parser fails test
Patrick Powell
papowell at astart.com
Sun Sep 26 14:40:12 UTC 2010
>Number: 150968
>Category: ports
>Synopsis: p5-XML-Parser fails test
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Sep 26 14:40:11 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Patrick Powell
>Release: FreeBSD 8.1-RELEASE i386
>Organization:
Astart Technologies
>Environment:
FreeBSD laptop_81.private 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
I have had a problem with p5-SOAP-Simple which uses the p5-XML-Parser port.
I did:
cvsupdate - latest version - no change
cd /usr/ports/textproc/p5-XML-Simple
make ## some errors report with the build:
Expat.xs: In function 'externalEntityRef':
Expat.xs:1011: warning: cast from pointer to integer of different size
Expat.xs:1043: warning: cast from pointer to integer of different size
Expat.xs: In function 'unknownEncoding':
Expat.xs:1166: warning: cast to pointer from integer of different size
Expat.c: In function 'XS_XML__Parser__Expat_FreeEncoding':
Expat.c:2702: warning: cast to pointer from integer of different size
cd work/XML-Parser-2.36
make test ### fails as shown below
PERL_DL_NONLAZY=1 /usr/local/bin/perl5.10.1 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/astress.t ....... ok
t/cdata.t ......... ok
syntax error at line 14, column 3, byte 214:
%ext;
<![%bar;[
==^
<!ATTLIST bar xyz (a|b|c) 'b'>
]]>
error in processing external entity reference at line 21, column 3, byte 3161:
<!ELEMENT bar ANY>
<!ATTLIST bar big CDATA 'This is a large string value to test whether the declaration parser still works when the entity or attribute default value may be broken into multiple calls to the default handler. 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 0123456789012345678901234567890123456789012345678901
2345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 '>
]>
==^
<foo/>
at /usr/ports/textproc/p5-XML-Parser/work/XML-Parser-2.40/blib/lib/XML/Parser.pm line 187
t/decl.t ..........
Dubious, test returned 9 (wstat 2304, 0x900)
Failed 29/30 subtests
t/defaulted.t ..... ok
t/encoding.t ...... ok
t/external_ent.t .. ok
t/file.t .......... ok
t/finish.t ........ ok
t/namespaces.t .... ok
error in processing external entity reference at line 8, column 0, byte 173:
<!ENTITY more SYSTEM "t/ext2.ent">
]
>
^
<foo>Happy, happy
<bar>&joy;, &joy;</bar>
at /usr/ports/textproc/p5-XML-Parser/work/XML-Parser-2.40/blib/lib/XML/Parser.pm line 187
t/parament.t ......
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 11/12 subtests
t/partial.t ....... ok
t/skip.t .......... ok
t/stream.t ........ ok
t/styles.t ........ ok
>How-To-Repeat:
follow the steps outlined above.
>Fix:
Patch attached with submission follows:
istinfo: 3 lines, 202 characters
laptop_81: {33} # make
===> Vulnerability check disabled, database not found
===> License check disabled, port has not defined LICENSE
===> Extracting for p5-XML-Parser-2.36_1
=> MD5 Checksum OK for XML-Parser-2.36.tar.gz.
=> SHA256 Checksum OK for XML-Parser-2.36.tar.gz.
===> p5-XML-Parser-2.36_1 depends on file: /usr/local/bin/perl5.10.1 - found
===> Patching for p5-XML-Parser-2.36_1
===> p5-XML-Parser-2.36_1 depends on file: /usr/local/bin/perl5.10.1 - found
===> p5-XML-Parser-2.36_1 depends on file: /usr/local/sbin/apxs - found
===> p5-XML-Parser-2.36_1 depends on file: /usr/local/bin/perl5.10.1 - found
===> p5-XML-Parser-2.36_1 depends on shared library: expat.6 - found
===> Configuring for p5-XML-Parser-2.36_1
Checking if your kit is complete...
Looks good
Writing Makefile for XML::Parser::Expat
Writing Makefile for XML::Parser
===> Building for p5-XML-Parser-2.36_1
cp Parser/Encodings/x-sjis-cp932.enc blib/lib/XML/Parser/Encodings/x-sjis-cp932.enc
cp Parser/Encodings/iso-8859-7.enc blib/lib/XML/Parser/Encodings/iso-8859-7.enc
cp Parser/Encodings/iso-8859-10.enc blib/lib/XML/Parser/Encodings/iso-8859-10.enc
cp Parser/Style/Tree.pm blib/lib/XML/Parser/Style/Tree.pm
cp Parser/Encodings/iso-8859-9.enc blib/lib/XML/Parser/Encodings/iso-8859-9.enc
cp Parser/Encodings/iso-8859-11.enc blib/lib/XML/Parser/Encodings/iso-8859-11.enc
cp Parser/Encodings/x-euc-jp-unicode.enc blib/lib/XML/Parser/Encodings/x-euc-jp-unicode.enc
cp Parser/Encodings/README blib/lib/XML/Parser/Encodings/README
cp Parser/Encodings/euc-kr.enc blib/lib/XML/Parser/Encodings/euc-kr.enc
cp Parser/Encodings/windows-1250.enc blib/lib/XML/Parser/Encodings/windows-1250.enc
cp Parser/Encodings/iso-8859-14.enc blib/lib/XML/Parser/Encodings/iso-8859-14.enc
cp Parser/Encodings/windows-1252.enc blib/lib/XML/Parser/Encodings/windows-1252.enc
cp Parser/Encodings/iso-8859-1.enc blib/lib/XML/Parser/Encodings/iso-8859-1.enc
cp Parser/Encodings/iso-8859-6.enc blib/lib/XML/Parser/Encodings/iso-8859-6.enc
cp Parser/Encodings/big5.enc blib/lib/XML/Parser/Encodings/big5.enc
cp Parser/Encodings/iso-8859-3.enc blib/lib/XML/Parser/Encodings/iso-8859-3.enc
cp Parser/Encodings/Japanese_Encodings.msg blib/lib/XML/Parser/Encodings/Japanese_Encodings.msg
cp Parser/Style/Subs.pm blib/lib/XML/Parser/Style/Subs.pm
cp Parser/Encodings/iso-8859-13.enc blib/lib/XML/Parser/Encodings/iso-8859-13.enc
cp Parser/Encodings/iso-8859-4.enc blib/lib/XML/Parser/Encodings/iso-8859-4.enc
cp Parser/Encodings/iso-8859-8.enc blib/lib/XML/Parser/Encodings/iso-8859-8.enc
cp Parser/Encodings/x-euc-jp-jisx0221.enc blib/lib/XML/Parser/Encodings/x-euc-jp-jisx0221.enc
cp Parser/Encodings/iso-8859-15.enc blib/lib/XML/Parser/Encodings/iso-8859-15.enc
cp Parser/Encodings/iso-8859-2.enc blib/lib/XML/Parser/Encodings/iso-8859-2.enc
cp Parser/Encodings/x-sjis-jdk117.enc blib/lib/XML/Parser/Encodings/x-sjis-jdk117.enc
cp Parser/Encodings/x-sjis-unicode.enc blib/lib/XML/Parser/Encodings/x-sjis-unicode.enc
cp Parser/LWPExternEnt.pl blib/lib/XML/Parser/LWPExternEnt.pl
cp Parser/Style/Objects.pm blib/lib/XML/Parser/Style/Objects.pm
cp Parser.pm blib/lib/XML/Parser.pm
cp Parser/Style/Debug.pm blib/lib/XML/Parser/Style/Debug.pm
cp Parser/Encodings/x-sjis-jisx0221.enc blib/lib/XML/Parser/Encodings/x-sjis-jisx0221.enc
cp Parser/Style/Stream.pm blib/lib/XML/Parser/Style/Stream.pm
cp Parser/Encodings/iso-8859-5.enc blib/lib/XML/Parser/Encodings/iso-8859-5.enc
cp Expat.pm ../blib/lib/XML/Parser/Expat.pm
/usr/local/bin/perl5.10.1 /usr/local/lib/perl5/site_perl/5.10.1/ExtUtils/xsubpp -noprototypes -typemap /usr/local/lib/perl5/5.10.1/ExtUtils/typemap -typemap typemap Expat.xs > Expat.xsc && mv Expat.xsc Expat.c
cc -c -I/usr/local/include -O2 -pipe -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing -DVERSION=\"2.36\" -DXS_VERSION=\"2.36\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.10.1/mach/CORE" Expat.c
Expat.xs: In function 'externalEntityRef':
Expat.xs:1011: warning: cast from pointer to integer of different size
Expat.xs:1043: warning: cast from pointer to integer of different size
Expat.xs: In function 'unknownEncoding':
Expat.xs:1166: warning: cast to pointer from integer of different size
Expat.c: In function 'XS_XML__Parser__Expat_FreeEncoding':
Expat.c:2702: warning: cast to pointer from integer of different size
Running Mkbootstrap for XML::Parser::Expat ()
chmod 644 Expat.bs
rm -f ../blib/arch/auto/XML/Parser/Expat/Expat.so
LD_RUN_PATH="/usr/local/lib" cc -shared -L/usr/local/lib -fstack-protector Expat.o -o ../blib/arch/auto/XML/Parser/Expat/Expat.so -L/usr/local/lib -lexpat
chmod 755 ../blib/arch/auto/XML/Parser/Expat/Expat.so
cp Expat.bs ../blib/arch/auto/XML/Parser/Expat/Expat.bs
chmod 644 ../blib/arch/auto/XML/Parser/Expat/Expat.bs
Manifying ../blib/man3/XML::Parser::Expat.3
Manifying blib/man3/XML::Parser::Style::Objects.3
Manifying blib/man3/XML::Parser::Style::Debug.3
Manifying blib/man3/XML::Parser.3
Manifying blib/man3/XML::Parser::Style::Subs.3
Manifying blib/man3/XML::Parser::Style::Tree.3
Manifying blib/man3/XML::Parser::Style::Stream.3
laptop_81: {34} # cd work/XML-Parser-2.36/
laptop_81: {35} # make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl5.10.1 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/astress.t ....... ok
t/cdata.t ......... ok
t/decl.t ..........
syntax error at line 14, column 3, byte 214:
%ext;
<![%bar;[
==^
<!ATTLIST bar xyz (a|b|c) 'b'>
]]>
error in processing external entity reference at line 21, column 3, byte 3161:
<!ELEMENT bar ANY>
<!ATTLIST bar big CDATA 'This is a large string value to test whether the declaration parser still works when the entity or attribute default value may be broken into multiple calls to the default handler. 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 0123456789012345678901234567890123456789012345678901
2345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 '>
]>
==^
<foo/>
at /usr/ports/textproc/p5-XML-Parser/work/XML-Parser-2.36/blib/lib/XML/Parser.pm line 187
t/decl.t .......... Dubious, test returned 9 (wstat 2304, 0x900)
Failed 29/30 subtests
t/defaulted.t ..... ok
t/encoding.t ...... ok
t/external_ent.t .. ok
t/file.t .......... ok
t/finish.t ........ ok
t/namespaces.t .... ok
t/parament.t ...... 1/12
error in processing external entity reference at line 8, column 0, byte 173:
<!ENTITY more SYSTEM "t/ext2.ent">
]
>
^
<foo>Happy, happy
<bar>&joy;, &joy;</bar>
at /usr/ports/textproc/p5-XML-Parser/work/XML-Parser-2.36/blib/lib/XML/Parser.pm line 187
t/parament.t ...... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 11/12 subtests
t/partial.t ....... ok
t/skip.t .......... ok
t/stream.t ........ ok
t/styles.t ........ ok
Test Summary Report
-------------------
t/decl.t (Wstat: 2304 Tests: 1 Failed: 0)
Non-zero exit status: 9
Parse errors: Bad plan. You planned 30 tests but ran 1.
t/parament.t (Wstat: 65280 Tests: 1 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 12 tests but ran 1.
Files=14, Tests=90, 1 wallclock secs ( 0.15 usr 0.00 sys + 1.07 cusr 0.12 csys = 1.34 CPU)
Result: FAIL
Failed 2/14 test programs. 0/90 subtests failed.
*** Error code 255
Stop in /usr/ports/textproc/p5-XML-Parser/work/XML-Parser-2.36.
laptop_81: {36} # make test |&tee /tmp/xml_parser
PERL_DL_NONLAZY=1 /usr/local/bin/perl5.10.1 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/astress.t ....... ok
t/cdata.t ......... ok
syntax error at line 14, column 3, byte 214:
%ext;
<![%bar;[
==^
<!ATTLIST bar xyz (a|b|c) 'b'>
]]>
error in processing external entity reference at line 21, column 3, byte 3161:
<!ELEMENT bar ANY>
<!ATTLIST bar big CDATA 'This is a large string value to test whether the declaration parser still works when the entity or attribute default value may be broken into multiple calls to the default handler. 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 0123456789012345678901234567890123456789012345678901
2345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 '>
]>
==^
<foo/>
at /usr/ports/textproc/p5-XML-Parser/work/XML-Parser-2.36/blib/lib/XML/Parser.pm line 187
t/decl.t ..........
Dubious, test returned 9 (wstat 2304, 0x900)
Failed 29/30 subtests
t/defaulted.t ..... ok
t/encoding.t ...... ok
t/external_ent.t .. ok
t/file.t .......... ok
t/finish.t ........ ok
t/namespaces.t .... ok
error in processing external entity reference at line 8, column 0, byte 173:
<!ENTITY more SYSTEM "t/ext2.ent">
]
>
^
<foo>Happy, happy
<bar>&joy;, &joy;</bar>
at /usr/ports/textproc/p5-XML-Parser/work/XML-Parser-2.36/blib/lib/XML/Parser.pm line 187
t/parament.t ......
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 11/12 subtests
t/partial.t ....... ok
t/skip.t .......... ok
t/stream.t ........ ok
t/styles.t ........ ok
Test Summary Report
-------------------
t/decl.t (Wstat: 2304 Tests: 1 Failed: 0)
Non-zero exit status: 9
Parse errors: Bad plan. You planned 30 tests but ran 1.
t/parament.t (Wstat: 65280 Tests: 1 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 12 tests but ran 1.
Files=14, Tests=90, 1 wallclock secs ( 0.10 usr 0.03 sys + 1.07 cusr 0.12 csys = 1.32 CPU)
Result: FAIL
Failed 2/14 test programs. 0/90 subtests failed.
*** Error code 255
Stop in /usr/ports/textproc/p5-XML-Parser/work/XML-Parser-2.36.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list