vti/pocketio — Issue #11: Tests failed w/o JSON installed (JSON:PP is not enough)
Author: deniszh
Created: 2011-11-29 05:09:51+00:00
State: open

root@vz3216:~/.cpan/build# uname -a
Linux vz3216 2.6.18-028stab056-aufs-teak-rin1 #27 SMP Wed Mar 9 23:31:49 EET 2011 i686 Intel(R) Xeon(R) CPU X5650 @ 2.67GHz GenuineIntel GNU/Linux

root@vz3216:~/.cpan/build# perl -V
Summary of my perl5 (revision 5 version 12 subversion 2) configuration:

Platform:
osname=linux, osvers=2.6.28-hardened-r9-infra14, archname=i686-linux
uname='linux poseidon 2.6.28-hardened-r9-infra14 #1 smp thu jul 16 15:39:45 utc 2009 i686 amd opteron(tm) processor 844 authenticamd gnulinux '
config_args='-des -Duseshrplib -Darchname=i686-linux -Dcc=i686-pc-linux-gnu-gcc -Doptimize=-O2 -march=i686 -pipe -Dldflags=-Wl,-O1 -Wl,--as-needed -Dprefix=/usr -Dsiteprefix=/usr -Dvendorprefix=/usr -Dscriptdir=/usr/bin -Dprivlib=/usr/lib/perl5/5.12.2 -Darchlib=/usr/lib/perl5/5.12.2/i686-linux -Dsitelib=/usr/lib/perl5/site_perl/5.12.2 -Dsitearch=/usr/lib/perl5/site_perl/5.12.2/i686-linux -Dvendorlib=/usr/lib/perl5/vendor_perl/5.12.2 -Dvendorarch=/usr/lib/perl5/vendor_perl/5.12.2/i686-linux -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/share/man/man1 -Dsiteman3dir=/usr/share/man/man3 -Dvendorman1dir=/usr/share/man/man1 -Dvendorman3dir=/usr/share/man/man3 -Dman1ext=1 -Dman3ext=3pm -Dlibperl=libperl.so.5.12.2 -Dlocincpth= -Duselargefiles -Dd_semctl_semun -Dcf_by=Gentoo -Dmyhostname=localhost -Dperladmin=root@localhost -Dinstallusrbinperl=n -Ud_csh -Uusenm -Di_ndbm -Di_gdbm -Di_db -DDEBUGGING=none -Dinc_version_list=5.12.1/i686-linux 5.12.1 5.12.0/i686-linux 5.12.0 '
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='i686-pc-linux-gnu-gcc', ccflags ='-fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2 -march=i686 -pipe',
cppflags='-fno-strict-aliasing -pipe'
ccversion='', gccversion='4.4.5', 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='i686-pc-linux-gnu-gcc', ldflags ='-Wl,-O1 -Wl,--as-needed -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.11.2.so, so=so, useshrplib=true, libperl=libperl.so.5.12.2
gnulibc_version='2.11.2'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -march=i686 -pipe -L/usr/local/lib -Wl,-O1 -Wl,--as-needed'

Characteristics of this binary (from libperl):
Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP
USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF
Locally applied patches:
0001-gentoo_MakeMaker-RUNPATH.diff
0002-gentoo_config_over.diff
0003-gentoo_cpan_definstalldirs.diff
0004-gentoo_cpanplus_definstalldirs.diff
0005-gentoo_create-libperl-soname.diff
0006-gentoo_MakeMaker-delete_packlist.diff
0007-fixes_8d66b3f9_h2hp_fix.diff
0008-fixes_f178b03b_h2ph_using_deprecated_goto.diff
0009-gentoo_mod-paths.diff
0010-gentoo_enc2xs.diff
0011-gentoo_IO-Compress_AutoLoader_dropped_from_Compress-Zlib.diff
0012-fixes_84601d63_CGI-3.50.diff
0013-fixes_2a1594f6_CGI-3.51.diff
0014-gentoo_drop-fstack-protector.diff
Built under linux
Compiled at Mar 1 2011 19:11:46
@INC:
/etc/perl
/usr/lib/perl5/site_perl/5.12.2/i686-linux
/usr/lib/perl5/site_perl/5.12.2
/usr/lib/perl5/vendor_perl/5.12.2/i686-linux
/usr/lib/perl5/vendor_perl/5.12.2
/usr/lib/perl5/5.12.2/i686-linux
/usr/lib/perl5/5.12.2
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl
/usr/local/lib/site_perl
.

root@vz3216:~/.cpan/build# cpan PocketIO
Going to read '/root/.cpan/Metadata'
Database was generated on Mon, 28 Nov 2011 18:29:55 GMT
Running install for module 'PocketIO'
Running make for V/VT/VTI/PocketIO-0.00905.tar.gz
Checksum for /root/.cpan/sources/authors/id/V/VT/VTI/PocketIO-0.00905.tar.gz ok

CPAN.pm: Going to build V/VT/VTI/PocketIO-0.00905.tar.gz

*** Module::AutoInstall version 1.03
*** Checking for Perl dependencies...
*** Since we're running under CPAN, I'll just let it take care
of the dependency's installation later.
[Core Features]
- AnyEvent ...loaded. (6.02)
- Twiggy ...loaded. (0.1010)
- JSON ...loaded. (1.14)
- Plack ...loaded. (0.9982)
- Protocol::WebSocket ...loaded. (0.00906 >= 0.009003)
- Scalar::Util ...loaded. (1.23)
- Try::Tiny ...loaded. (0.11)
*** Module::AutoInstall configuration finished.
Checking if your kit is complete...
Looks good
Writing Makefile for PocketIO
Writing MYMETA.yml and MYMETA.json
cp lib/PocketIO/Transport/XHRMultipart.pm blib/lib/PocketIO/Transport/XHRMultipart.pm
cp lib/PocketIO/Connection.pm blib/lib/PocketIO/Connection.pm
cp lib/PocketIO/Resource.pm blib/lib/PocketIO/Resource.pm
cp lib/PocketIO/Pool.pm blib/lib/PocketIO/Pool.pm
cp lib/PocketIO/Transport/XHRPolling.pm blib/lib/PocketIO/Transport/XHRPolling.pm
cp lib/PocketIO/Transport/Base.pm blib/lib/PocketIO/Transport/Base.pm
cp lib/PocketIO/Socket.pm blib/lib/PocketIO/Socket.pm
cp lib/PocketIO/Broadcast.pm blib/lib/PocketIO/Broadcast.pm
cp lib/PocketIO/Transport/JSONPPolling.pm blib/lib/PocketIO/Transport/JSONPPolling.pm
cp lib/PocketIO.pm blib/lib/PocketIO.pm
cp lib/PocketIO/Transport/WebSocket.pm blib/lib/PocketIO/Transport/WebSocket.pm
cp lib/PocketIO/Pool/Redis.pm blib/lib/PocketIO/Pool/Redis.pm
cp lib/PocketIO/Handle.pm blib/lib/PocketIO/Handle.pm
cp lib/PocketIO/Sockets.pm blib/lib/PocketIO/Sockets.pm
cp lib/PocketIO/Transport/Htmlfile.pm blib/lib/PocketIO/Transport/Htmlfile.pm
cp lib/PocketIO/Transport/BasePolling.pm blib/lib/PocketIO/Transport/BasePolling.pm
cp lib/PocketIO/Test.pm blib/lib/PocketIO/Test.pm
cp lib/PocketIO/Message.pm blib/lib/PocketIO/Message.pm
Manifying blib/man3/PocketIO::Transport::XHRMultipart.3pm
Manifying blib/man3/PocketIO::Resource.3pm
Manifying blib/man3/PocketIO::Connection.3pm
Manifying blib/man3/PocketIO::Pool.3pm
Manifying blib/man3/PocketIO::Transport::XHRPolling.3pm
Manifying blib/man3/PocketIO::Transport::Base.3pm
Manifying blib/man3/PocketIO::Socket.3pm
Manifying blib/man3/PocketIO::Broadcast.3pm
Manifying blib/man3/PocketIO::Transport::JSONPPolling.3pm
Manifying blib/man3/PocketIO.3pm
Manifying blib/man3/PocketIO::Transport::WebSocket.3pm
Manifying blib/man3/PocketIO::Pool::Redis.3pm
Manifying blib/man3/PocketIO::Handle.3pm
Manifying blib/man3/PocketIO::Sockets.3pm
Manifying blib/man3/PocketIO::Transport::Htmlfile.3pm
Manifying blib/man3/PocketIO::Transport::BasePolling.3pm
Manifying blib/man3/PocketIO::Test.3pm
Manifying blib/man3/PocketIO::Message.3pm
VTI/PocketIO-0.00905.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl5.12.2 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t t/*/*.t t/*/*/*.t t/*/*/*/*.t
t/app.t ...................... ok
t/conn/broadcast.t ........... ok
t/conn/close-timeout.t ....... ok
t/conn/connect-timeout.t ..... ok
t/conn/parsing.t ............. 1/10 Undefined subroutine &JSON::decode_json called at /root/.cpan/build/PocketIO-0.00905-_JiXWC/blib/lib/PocketIO/Message.pm line 65.
# Looks like you planned 10 tests but ran 4.
# Looks like your test exited with 255 just after 4.
t/conn/parsing.t ............. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 6/10 subtests
t/conn/reconnect-timeout.t ... ok
t/conn/socket.t .............. ok
t/conn/sockets.t ............. ok
t/message.t .................. 1/25 Undefined subroutine &JSON::encode_json called at /root/.cpan/build/PocketIO-0.00905-_JiXWC/blib/lib/PocketIO/Message.pm line 92.
# Looks like you planned 25 tests but ran 9.
# Looks like your test exited with 255 just after 9.
t/message.t .................. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 16/25 subtests
t/pool.t ..................... ok
t/resource.t ................. ok
t/transport/htmlfile.t ....... ok
t/transport/jsonp-polling.t .. ok
t/transport/websocket.t ...... ok
t/transport/xhr-polling.t .... ok

Test Summary Report
-------------------
t/conn/parsing.t (Wstat: 65280 Tests: 4 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 10 tests but ran 4.
t/message.t (Wstat: 65280 Tests: 9 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 25 tests but ran 9.
Files=15, Tests=57, 8 wallclock secs ( 0.06 usr 0.02 sys + 1.60 cusr 0.38 csys = 2.06 CPU)
Result: FAIL
Failed 2/15 test programs. 0/57 subtests failed.
make: *** [test_dynamic] Error 255
VTI/PocketIO-0.00905.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports VTI/PocketIO-0.00905.tar.gz
Running make install
make test had returned bad status, won't install without force

root@vz3216:~/.cpan/build# cpan JSON

root@vz3216:~/.cpan/build# cpan PocketIO
Going to read '/root/.cpan/Metadata'
Database was generated on Mon, 28 Nov 2011 18:29:55 GMT
Running install for module 'PocketIO'
Running make for V/VT/VTI/PocketIO-0.00905.tar.gz
Checksum for /root/.cpan/sources/authors/id/V/VT/VTI/PocketIO-0.00905.tar.gz ok

CPAN.pm: Going to build V/VT/VTI/PocketIO-0.00905.tar.gz

*** Module::AutoInstall version 1.03
*** Checking for Perl dependencies...
*** Since we're running under CPAN, I'll just let it take care
of the dependency's installation later.
[Core Features]
- AnyEvent ...loaded. (6.02)
- Twiggy ...loaded. (0.1010)
- JSON ...loaded. (2.53)
- Plack ...loaded. (0.9982)
- Protocol::WebSocket ...loaded. (0.00906 >= 0.009003)
- Scalar::Util ...loaded. (1.23)
- Try::Tiny ...loaded. (0.11)
*** Module::AutoInstall configuration finished.
Checking if your kit is complete...
Looks good
Writing Makefile for PocketIO
Writing MYMETA.yml and MYMETA.json
cp lib/PocketIO/Transport/XHRMultipart.pm blib/lib/PocketIO/Transport/XHRMultipart.pm
cp lib/PocketIO/Connection.pm blib/lib/PocketIO/Connection.pm
cp lib/PocketIO/Resource.pm blib/lib/PocketIO/Resource.pm
cp lib/PocketIO/Pool.pm blib/lib/PocketIO/Pool.pm
cp lib/PocketIO/Transport/XHRPolling.pm blib/lib/PocketIO/Transport/XHRPolling.pm
cp lib/PocketIO/Transport/Base.pm blib/lib/PocketIO/Transport/Base.pm
cp lib/PocketIO/Socket.pm blib/lib/PocketIO/Socket.pm
cp lib/PocketIO/Broadcast.pm blib/lib/PocketIO/Broadcast.pm
cp lib/PocketIO/Transport/JSONPPolling.pm blib/lib/PocketIO/Transport/JSONPPolling.pm
cp lib/PocketIO.pm blib/lib/PocketIO.pm
cp lib/PocketIO/Transport/WebSocket.pm blib/lib/PocketIO/Transport/WebSocket.pm
cp lib/PocketIO/Pool/Redis.pm blib/lib/PocketIO/Pool/Redis.pm
cp lib/PocketIO/Handle.pm blib/lib/PocketIO/Handle.pm
cp lib/PocketIO/Sockets.pm blib/lib/PocketIO/Sockets.pm
cp lib/PocketIO/Transport/Htmlfile.pm blib/lib/PocketIO/Transport/Htmlfile.pm
cp lib/PocketIO/Transport/BasePolling.pm blib/lib/PocketIO/Transport/BasePolling.pm
cp lib/PocketIO/Test.pm blib/lib/PocketIO/Test.pm
cp lib/PocketIO/Message.pm blib/lib/PocketIO/Message.pm
Manifying blib/man3/PocketIO::Transport::XHRMultipart.3pm
Manifying blib/man3/PocketIO::Resource.3pm
Manifying blib/man3/PocketIO::Connection.3pm
Manifying blib/man3/PocketIO::Pool.3pm
Manifying blib/man3/PocketIO::Transport::XHRPolling.3pm
Manifying blib/man3/PocketIO::Transport::Base.3pm
Manifying blib/man3/PocketIO::Socket.3pm
Manifying blib/man3/PocketIO::Broadcast.3pm
Manifying blib/man3/PocketIO::Transport::JSONPPolling.3pm
Manifying blib/man3/PocketIO.3pm
Manifying blib/man3/PocketIO::Transport::WebSocket.3pm
Manifying blib/man3/PocketIO::Pool::Redis.3pm
Manifying blib/man3/PocketIO::Handle.3pm
Manifying blib/man3/PocketIO::Sockets.3pm
Manifying blib/man3/PocketIO::Transport::Htmlfile.3pm
Manifying blib/man3/PocketIO::Transport::BasePolling.3pm
Manifying blib/man3/PocketIO::Test.3pm
Manifying blib/man3/PocketIO::Message.3pm
VTI/PocketIO-0.00905.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl5.12.2 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t t/*/*.t t/*/*/*.t t/*/*/*/*.t
t/app.t ...................... ok
t/conn/broadcast.t ........... ok
t/conn/close-timeout.t ....... ok
t/conn/connect-timeout.t ..... ok
t/conn/parsing.t ............. ok
t/conn/reconnect-timeout.t ... ok
t/conn/socket.t .............. ok
t/conn/sockets.t ............. ok
t/message.t .................. ok
t/pool.t ..................... ok
t/resource.t ................. ok
t/transport/htmlfile.t ....... ok
t/transport/jsonp-polling.t .. ok
t/transport/websocket.t ...... ok
t/transport/xhr-polling.t .... ok
All tests successful.
Files=15, Tests=79, 7 wallclock secs ( 0.04 usr 0.02 sys + 1.46 cusr 0.36 csys = 1.88 CPU)
Result: PASS
VTI/PocketIO-0.00905.tar.gz
/usr/bin/make test -- OK
Running make install
Installing /usr/lib/perl5/site_perl/5.12.2/PocketIO.pm
Installing /usr/lib/perl5/site_perl/5.12.2/PocketIO/Connection.pm
Installing /usr/lib/perl5/site_perl/5.12.2/PocketIO/Resource.pm
Installing /usr/lib/perl5/site_perl/5.12.2/PocketIO/Pool.pm
Installing /usr/lib/perl5/site_perl/5.12.2/PocketIO/Socket.pm
Installing /usr/lib/perl5/site_perl/5.12.2/PocketIO/Broadcast.pm
Installing /usr/lib/perl5/site_perl/5.12.2/PocketIO/Handle.pm
Installing /usr/lib/perl5/site_perl/5.12.2/PocketIO/Sockets.pm
Installing /usr/lib/perl5/site_perl/5.12.2/PocketIO/Test.pm
Installing /usr/lib/perl5/site_perl/5.12.2/PocketIO/Message.pm
Installing /usr/lib/perl5/site_perl/5.12.2/PocketIO/Transport/XHRMultipart.pm
Installing /usr/lib/perl5/site_perl/5.12.2/PocketIO/Transport/XHRPolling.pm
Installing /usr/lib/perl5/site_perl/5.12.2/PocketIO/Transport/Base.pm
Installing /usr/lib/perl5/site_perl/5.12.2/PocketIO/Transport/JSONPPolling.pm
Installing /usr/lib/perl5/site_perl/5.12.2/PocketIO/Transport/WebSocket.pm
Installing /usr/lib/perl5/site_perl/5.12.2/PocketIO/Transport/Htmlfile.pm
Installing /usr/lib/perl5/site_perl/5.12.2/PocketIO/Transport/BasePolling.pm
Installing /usr/lib/perl5/site_perl/5.12.2/PocketIO/Pool/Redis.pm
Installing /usr/share/man/man3/PocketIO::Transport::XHRMultipart.3pm
Installing /usr/share/man/man3/PocketIO::Resource.3pm
Installing /usr/share/man/man3/PocketIO::Connection.3pm
Installing /usr/share/man/man3/PocketIO::Pool.3pm
Installing /usr/share/man/man3/PocketIO::Transport::XHRPolling.3pm
Installing /usr/share/man/man3/PocketIO::Transport::Base.3pm
Installing /usr/share/man/man3/PocketIO::Socket.3pm
Installing /usr/share/man/man3/PocketIO::Broadcast.3pm
Installing /usr/share/man/man3/PocketIO::Transport::JSONPPolling.3pm
Installing /usr/share/man/man3/PocketIO.3pm
Installing /usr/share/man/man3/PocketIO::Transport::WebSocket.3pm
Installing /usr/share/man/man3/PocketIO::Pool::Redis.3pm
Installing /usr/share/man/man3/PocketIO::Handle.3pm
Installing /usr/share/man/man3/PocketIO::Sockets.3pm
Installing /usr/share/man/man3/PocketIO::Transport::Htmlfile.3pm
Installing /usr/share/man/man3/PocketIO::Transport::BasePolling.3pm
Installing /usr/share/man/man3/PocketIO::Test.3pm
Installing /usr/share/man/man3/PocketIO::Message.3pm
Appending installation info to /usr/lib/perl5/5.12.2/i686-linux/perllocal.pod
VTI/PocketIO-0.00905.tar.gz
/usr/bin/make install -- OK