Skip to content

XML/Stream.pm: Can't call method "can_read" on an undefined value #21

@tgr

Description

@tgr

I get this when I try to install the module on Ubuntu 22.04 with cpanm:

Building and testing Net-XMPP-1.05
Building Net-XMPP
t/1_load.t ............... ok
t/2_client_jabberd1.4.t .. ok
t/3_client_jabberd2.t .... ok
Subroutine SASLAuth redefined at /usr/local/share/perl/5.34.0/XML/Stream.pm line 2184.
Can't call method "can_read" on an undefined value at /usr/local/share/perl/5.34.0/XML/Stream.pm line 1436.
# Looks like your test exited with 22 just after 6.
t/gtalk.t ................ 
Dubious, test returned 22 (wstat 5632, 0x1600)
Failed 26/32 subtests 
        (less 4 skipped subtests: 2 okay)
t/iq.t ................... ok
t/jid.t .................. ok
t/memory_cycle.t ......... skipped: Need Test::Memory::Cycle
t/memory_leak.t .......... skipped: Need Devel::LeakGuard::Object
t/message.t .............. ok
t/packet_iqauth.t ........ ok
t/packet_iqroster.t ...... ok
t/presence.t ............. ok
t/rawxml.t ............... ok
t/roster.t ............... ok
t/srv.t .................. ok

Test Summary Report
-------------------
t/gtalk.t              (Wstat: 5632 Tests: 6 Failed: 0)
  Non-zero exit status: 22
  Parse errors: Bad plan.  You planned 32 tests but ran 6.
Files=15, Tests=663,  6 wallclock secs ( 0.13 usr  0.02 sys +  3.07 cusr  0.41 csys =  3.63 CPU)
Result: FAIL
Failed 1/15 test programs. 0/663 subtests failed.
-> FAIL Installing Net::XMPP failed. See /root/.cpanm/work/1701656032.32541/build.log for details. Retry with --force to force install it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions