Skip Menu |

This queue is for tickets about the libwww-perl CPAN distribution.

Report information
The Basics
Id: 59275
Status: resolved
Priority: 0/
Queue: libwww-perl

People
Owner: Nobody in particular
Requestors: ribasushi [...] leporine.io
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Fails tests on 5.8.1
rabbit@Thesaurus:~/.cpancache/build/libwww-perl-5.836$ perlbrew switch 5.8.1 rabbit@Thesaurus:~/.cpancache/build/libwww-perl-5.836$ perl Makefile.PL Writing Makefile for LWP rabbit@Thesaurus:~/.cpancache/build/libwww-perl-5.836$ make test Skip blib/lib/HTTP/Response.pm (unchanged) Skip blib/lib/LWP/Protocol/http.pm (unchanged) Skip blib/lib/LWP/Debug.pm (unchanged) Skip blib/lib/LWP/Protocol/https.pm (unchanged) Skip blib/lib/LWP/Authen/Basic.pm (unchanged) Skip blib/lib/LWP/Protocol.pm (unchanged) Skip blib/lib/LWP/Protocol/nogo.pm (unchanged) Skip blib/lib/HTTP/Daemon.pm (unchanged) Skip blib/lib/lwpcook.pod (unchanged) Skip blib/lib/HTTP/Cookies/Microsoft.pm (unchanged) Skip blib/lib/HTTP/Status.pm (unchanged) Skip blib/lib/HTTP/Headers/Util.pm (unchanged) Skip blib/lib/Bundle/LWP.pm (unchanged) Skip blib/lib/LWP/Protocol/cpan.pm (unchanged) Skip blib/lib/HTTP/Request/Common.pm (unchanged) Skip blib/lib/Net/HTTP/NB.pm (unchanged) Skip blib/lib/LWP/DebugFile.pm (unchanged) Skip blib/lib/LWP/Authen/Ntlm.pm (unchanged) Skip blib/lib/LWP/MediaTypes.pm (unchanged) Skip blib/lib/HTTP/Headers/ETag.pm (unchanged) Skip blib/lib/HTTP/Request.pm (unchanged) Skip blib/lib/HTTP/Cookies.pm (unchanged) Skip blib/lib/LWP/Authen/Digest.pm (unchanged) Skip blib/lib/LWP/Protocol/http10.pm (unchanged) Skip blib/lib/Net/HTTPS.pm (unchanged) Skip blib/lib/WWW/RobotRules.pm (unchanged) Skip blib/lib/LWP/Protocol/loopback.pm (unchanged) Skip blib/lib/LWP/MemberMixin.pm (unchanged) Skip blib/lib/HTTP/Headers.pm (unchanged) Skip blib/lib/HTTP/Cookies/Netscape.pm (unchanged) Skip blib/lib/File/Listing.pm (unchanged) Skip blib/lib/HTTP/Config.pm (unchanged) Skip blib/lib/LWP/ConnCache.pm (unchanged) Skip blib/lib/lwptut.pod (unchanged) Skip blib/lib/LWP/Protocol/https10.pm (unchanged) Skip blib/lib/HTTP/Negotiate.pm (unchanged) Skip blib/lib/LWP/Protocol/gopher.pm (unchanged) Skip blib/lib/LWP/Simple.pm (unchanged) Skip blib/lib/HTTP/Date.pm (unchanged) Skip blib/lib/Net/HTTP/Methods.pm (unchanged) Skip blib/lib/LWP/Protocol/GHTTP.pm (unchanged) Skip blib/lib/HTML/Form.pm (unchanged) Skip blib/lib/LWP.pm (unchanged) Skip blib/lib/LWP/Protocol/file.pm (unchanged) Skip blib/lib/LWP/media.types (unchanged) Skip blib/lib/LWP/Protocol/data.pm (unchanged) Skip blib/lib/HTTP/Headers/Auth.pm (unchanged) Skip blib/lib/WWW/RobotRules/AnyDBM_File.pm (unchanged) Skip blib/lib/LWP/RobotUA.pm (unchanged) Skip blib/lib/Net/HTTP.pm (unchanged) Skip blib/lib/LWP/Protocol/ftp.pm (unchanged) Skip blib/lib/LWP/Protocol/nntp.pm (unchanged) Skip blib/lib/LWP/Protocol/mailto.pm (unchanged) Skip blib/lib/LWP/UserAgent.pm (unchanged) Skip blib/lib/HTTP/Message.pm (unchanged) cp bin/lwp-download blib/script/lwp-download /home/rabbit/perl5/perlbrew/perls/5.8.1/bin/perl5.8.1 -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-download cp bin/lwp-rget blib/script/lwp-rget /home/rabbit/perl5/perlbrew/perls/5.8.1/bin/perl5.8.1 -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-rget cp bin/lwp-dump blib/script/lwp-dump /home/rabbit/perl5/perlbrew/perls/5.8.1/bin/perl5.8.1 -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-dump cp bin/lwp-request blib/script/lwp-request /home/rabbit/perl5/perlbrew/perls/5.8.1/bin/perl5.8.1 -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-request cp bin/lwp-mirror blib/script/lwp-mirror /home/rabbit/perl5/perlbrew/perls/5.8.1/bin/perl5.8.1 -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-mirror /home/rabbit/perl5/perlbrew/perls/5.8.1/bin/perl5.8.1 t/TEST 0 base/common-req.t ......... ok base/cookies.t ............ ok base/date.t ............... ok base/headers-auth.t ....... ok base/headers-etag.t ....... ok base/headers-util.t ....... ok base/headers.t ............ ok base/http-config.t ........ ok base/http.t ............... ok base/listing.t ............ ok base/mediatypes.t ......... ok base/message-charset.t .... skipped: Encode not available base/message-old.t ........ ok base/message-parts.t ...... ok base/message.t ............ 1/125 # Test 125 got: <UNDEF> (base/message.t at line 508) # Expected: '<?xml version="1.0"?> <root>�ric</root> ' # base/message.t line 508 is: ok($m->decoded_content, "<?xml version=\"1.0\"?>\n<root>\xC9ric</root>\n"); base/message.t ............ Failed 1/125 subtests base/negotiate.t .......... ok base/protocols.t .......... ok base/request.t ............ ok base/response.t ........... ok base/status-old.t ......... ok base/status.t ............. ok base/ua.t ................. ok html/form-maxlength.t ..... ok html/form-multi-select.t .. ok html/form-param.t ......... ok html/form-selector.t ...... 1/12 Too many arguments for Encode::decode_utf8 at ../blib/lib/HTTP/Message.pm line 274, near "))" BEGIN not safe after errors--compilation aborted at ../blib/lib/HTTP/Message.pm line 643. Compilation failed in require at ../blib/lib/HTTP/Request.pm line 3. Compilation failed in require at ../blib/lib/HTML/Form.pm line 704. html/form-selector.t ...... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 5/12 subtests html/form.t ............... 1/127 Too many arguments for Encode::decode_utf8 at ../blib/lib/HTTP/Message.pm line 274, near "))" BEGIN not safe after errors--compilation aborted at ../blib/lib/HTTP/Message.pm line 643. Compilation failed in require at ../blib/lib/HTTP/Request.pm line 3. Compilation failed in require at ../blib/lib/HTML/Form.pm line 704. html/form.t ............... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 123/127 subtests robot/rules-dbm.t ......... ok robot/rules.t ............. ok robot/ua-get.t ............ ok robot/ua.t ................ ok local/autoload-get.t ...... ok local/autoload.t .......... ok local/chunked.t ........... ok local/get.t ............... ok local/http.t .............. ok local/protosub.t .......... ok Test Summary Report ------------------- base/message.t (Wstat: 0 Tests: 125 Failed: 1) Failed test: 125 html/form-selector.t (Wstat: 65280 Tests: 7 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 12 tests but ran 7. html/form.t (Wstat: 65280 Tests: 4 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 127 tests but ran 4. Files=37, Tests=990, 24 wallclock secs ( 0.30 usr 0.12 sys + 2.12 cusr 0.46 csys = 3.00 CPU) Result: FAIL Failed 3/37 test programs. 1/990 subtests failed. make: *** [test] Error 255 rabbit@Thesaurus:~/.cpancache/build/libwww-perl-5.836$ perl -V Summary of my perl5 (revision 5.0 version 8 subversion 1) configuration: Platform: osname=linux, osvers=2.6.29.2.thes2, archname=i686-linux-thread-multi uname='linux thesaurus 2.6.29.2.thes2 #1 preempt tue sep 8 11:27:43 cest 2009 i686 gnulinux ' config_args='-de -Dprefix=/home/rabbit/perl5/perlbrew/perls/5.8.1 -Dusethreads' hint=recommended, useposix=true, d_sigaction=define usethreads=define 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='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2', cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -I/usr/local/include' ccversion='', gccversion='4.4.4', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='cc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc libc=/lib/libc-2.11.1.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.11.1' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic' cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Built under linux Compiled at Jul 5 2010 14:36:17 %ENV: PERL5LIB="/home/rabbit/devel/utils/perl:/home/rabbit/devel/utils/perl:/home/rabbit/devel/utils/perl:" PERL_AUTOINSTALL_PREFER_CPAN="1" @INC: /home/rabbit/devel/utils/perl /home/rabbit/devel/utils/perl /home/rabbit/devel/utils/perl /home/rabbit/perl5/perlbrew/perls/5.8.1/lib/5.8.1/i686-linux-thread-multi /home/rabbit/perl5/perlbrew/perls/5.8.1/lib/5.8.1 /home/rabbit/perl5/perlbrew/perls/5.8.1/lib/site_perl/5.8.1/i686-linux-thread-multi /home/rabbit/perl5/perlbrew/perls/5.8.1/lib/site_perl/5.8.1 /home/rabbit/perl5/perlbrew/perls/5.8.1/lib/site_perl .
Subject: Fails tests on 5.8.1, 5.8.3, 5.8.5
Absolutely the same failure as with 5.8.1 above manifested on 5.8.3 and 5.8.5. 5.8.6 and later seem to build properly.
On Mon Oct 11 00:42:50 2010, RIBASUSHI wrote: Show quoted text
> Absolutely the same failure as with 5.8.1 above manifested on 5.8.3 and > 5.8.5. 5.8.6 and later seem to build properly.
I have a related test failure in 5.8.5 (actually, the same one as above, but I only get the base/message.t #125 error): /usr/bin/perl t/TEST 0 base/common-req...........ok base/cookies..............ok 62/66Day too big - 88298 > 24855 Sec too big - 88298 > 11647 base/cookies..............ok base/date.................ok base/headers-auth.........ok base/headers-etag.........ok base/headers-util.........ok base/headers..............ok base/http-config..........ok base/http.................ok base/listing..............ok base/mediatypes...........ok base/message-charset......skipped all skipped: Encode not available base/message-old..........ok base/message-parts........ok base/message..............ok 124/125# Test 125 got: <UNDEF> (base/message.t at line 508) # Expected: "<?xml version=\"1.0\"?>\n<root>\xC9ric</root>\n" base/message..............NOK 125# base/message.t line 508 is: ok($m->decoded_content, "<?xml version=\"1.0\"?>\n<root>\xC9ric</root>\n"); base/message..............FAILED test 125 Failed 1/125 tests, 99.20% okay base/negotiate............ok base/protocols............ok base/request..............ok base/response.............ok base/status-old...........ok base/status...............ok base/ua...................ok html/form-maxlength.......ok html/form-multi-select....ok html/form-param...........ok html/form-selector........ok html/form.................ok robot/rules-dbm...........ok robot/rules...............ok robot/ua-get..............ok robot/ua..................ok local/autoload-get........ok local/autoload............ok local/chunked.............ok local/get.................ok local/http................ok local/protosub............ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- base/message.t 125 1 0.80% 125 1 test skipped. Failed 1/37 test scripts, 97.30% okay. 1/1118 subtests failed, 99.91% okay. This is with the latest version of libwww-perl, 5.837 on a centos4 x86_64 system. Works fine on a centos5 x86_64 system (perl 5.8.8). My automated build/test/rpmgen program is hung up on this versions here. Any chance there's a workaround for this, or if it's just a bum test and the package is still ok (I doubt this from my initial testing)? Let me know if I can help work this issue out, or if you need any more information on the problem. Thanks, Judd
On Wed Nov 10 17:08:31 2010, CJTAYLOR wrote: Show quoted text
> On Mon Oct 11 00:42:50 2010, RIBASUSHI wrote:
> > Absolutely the same failure as with 5.8.1 above manifested on 5.8.3
> and
> > 5.8.5. 5.8.6 and later seem to build properly.
> > I have a related test failure in 5.8.5 (actually, the same one as > above, > but I only get the base/message.t #125 error): > > > /usr/bin/perl t/TEST 0 > base/common-req...........ok > base/cookies..............ok 62/66Day too big - 88298 > 24855 > Sec too big - 88298 > 11647 > base/cookies..............ok > base/date.................ok > base/headers-auth.........ok > base/headers-etag.........ok > base/headers-util.........ok > base/headers..............ok > base/http-config..........ok > base/http.................ok > base/listing..............ok > base/mediatypes...........ok > base/message-charset......skipped > all skipped: Encode not available > base/message-old..........ok > base/message-parts........ok > base/message..............ok 124/125# Test 125 got: <UNDEF> > (base/message.t at line 508) > # Expected: "<?xml version=\"1.0\"?>\n<root>\xC9ric</root>\n" > base/message..............NOK 125# base/message.t line 508 is: > ok($m->decoded_content, "<?xml > version=\"1.0\"?>\n<root>\xC9ric</root>\n"); > base/message..............FAILED test 125 > Failed 1/125 tests, 99.20% okay > base/negotiate............ok > base/protocols............ok > base/request..............ok > base/response.............ok > base/status-old...........ok > base/status...............ok > base/ua...................ok > html/form-maxlength.......ok > html/form-multi-select....ok > html/form-param...........ok > html/form-selector........ok > html/form.................ok > robot/rules-dbm...........ok > robot/rules...............ok > robot/ua-get..............ok > robot/ua..................ok > local/autoload-get........ok > local/autoload............ok > local/chunked.............ok > local/get.................ok > local/http................ok > local/protosub............ok > Failed Test Stat Wstat Total Fail Failed List of Failed >
------------------------------------------------------------------------------- Show quoted text
> base/message.t 125 1 0.80% 125 > 1 test skipped. > Failed 1/37 test scripts, 97.30% okay. 1/1118 subtests failed, 99.91% > okay. > > > This is with the latest version of libwww-perl, 5.837 on a centos4 > x86_64 system. Works fine on a centos5 x86_64 system (perl 5.8.8). > > My automated build/test/rpmgen program is hung up on this versions > here. > Any chance there's a workaround for this, or if it's just a bum test > and > the package is still ok (I doubt this from my initial testing)? > > Let me know if I can help work this issue out, or if you need any more > information on the problem. > > Thanks, > Judd
Also fails the same way with version 5.835 of libwww-perl.
On Wed Nov 10 17:15:00 2010, CJTAYLOR wrote: Show quoted text
> On Wed Nov 10 17:08:31 2010, CJTAYLOR wrote:
> > On Mon Oct 11 00:42:50 2010, RIBASUSHI wrote:
> > > Absolutely the same failure as with 5.8.1 above manifested on
> 5.8.3
> > and
> > > 5.8.5. 5.8.6 and later seem to build properly.
> > > > I have a related test failure in 5.8.5 (actually, the same one as > > above, > > but I only get the base/message.t #125 error): > > > > > > /usr/bin/perl t/TEST 0 > > base/common-req...........ok > > base/cookies..............ok 62/66Day too big - 88298 > 24855 > > Sec too big - 88298 > 11647 > > base/cookies..............ok > > base/date.................ok > > base/headers-auth.........ok > > base/headers-etag.........ok > > base/headers-util.........ok > > base/headers..............ok > > base/http-config..........ok > > base/http.................ok > > base/listing..............ok > > base/mediatypes...........ok > > base/message-charset......skipped > > all skipped: Encode not available > > base/message-old..........ok > > base/message-parts........ok > > base/message..............ok 124/125# Test 125 got: <UNDEF> > > (base/message.t at line 508) > > # Expected: "<?xml version=\"1.0\"?>\n<root>\xC9ric</root>\n" > > base/message..............NOK 125# base/message.t line 508 is: > > ok($m->decoded_content, "<?xml > > version=\"1.0\"?>\n<root>\xC9ric</root>\n"); > > base/message..............FAILED test 125 > > Failed 1/125 tests, 99.20% okay > > base/negotiate............ok > > base/protocols............ok > > base/request..............ok > > base/response.............ok > > base/status-old...........ok > > base/status...............ok > > base/ua...................ok > > html/form-maxlength.......ok > > html/form-multi-select....ok > > html/form-param...........ok > > html/form-selector........ok > > html/form.................ok > > robot/rules-dbm...........ok > > robot/rules...............ok > > robot/ua-get..............ok > > robot/ua..................ok > > local/autoload-get........ok > > local/autoload............ok > > local/chunked.............ok > > local/get.................ok > > local/http................ok > > local/protosub............ok > > Failed Test Stat Wstat Total Fail Failed List of Failed > >
> ----------------------------------------------------------------------
--------- Show quoted text
> > base/message.t 125 1 0.80% 125 > > 1 test skipped. > > Failed 1/37 test scripts, 97.30% okay. 1/1118 subtests failed,
> 99.91%
> > okay. > > > > > > This is with the latest version of libwww-perl, 5.837 on a centos4 > > x86_64 system. Works fine on a centos5 x86_64 system (perl 5.8.8). > > > > My automated build/test/rpmgen program is hung up on this versions > > here. > > Any chance there's a workaround for this, or if it's just a bum test > > and > > the package is still ok (I doubt this from my initial testing)? > > > > Let me know if I can help work this issue out, or if you need any
> more
> > information on the problem. > > > > Thanks, > > Judd
> > Also fails the same way with version 5.835 of libwww-perl.
Had the same errors. LWP::UserAgent instaled okay after installing Encode (note in your output above tests were skipped because Encode isn't installed, but the test that failed was about decoding content) and HTML::Parser (install of Encode failed because HTML::Parser wasn't installed).
This problem is entirely due to URI.pm's issues, the 5.8.3/5 fails were bogus (as demonstrated in RT#74190).