rjray / rpc-xml

A Perl implementation of the XML-RPC specification
https://metacpan.org/release/RPC-XML
24 stars 14 forks source link

make fails #12

Closed thedp closed 8 years ago

thedp commented 8 years ago

Unable to make:

root@me:~/tmp/rpc-xml# perl Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for RPC::XML
Writing MYMETA.yml and MYMETA.json
root@me:~/tmp/rpc-xml# make && make test
/usr/bin/perl etc/make_method --base=lib/Apache/RPC/status
/usr/bin/perl etc/make_method --base=methods/identity
/usr/bin/perl etc/make_method --base=methods/introspection
/usr/bin/perl etc/make_method --base=methods/listMethods
/usr/bin/perl etc/make_method --base=methods/methodHelp
/usr/bin/perl etc/make_method --base=methods/methodSignature
/usr/bin/perl etc/make_method --base=methods/multicall
/usr/bin/perl etc/make_method --base=methods/status
cp methods/methodHelp.xpl blib/lib/RPC/XML/methodHelp.xpl
cp lib/RPC/XML/Parser/XMLParser.pm blib/lib/RPC/XML/Parser/XMLParser.pm
cp lib/Apache/RPC/status.xpl blib/lib/Apache/RPC/status.xpl
cp lib/RPC/XML/Parser/XMLLibXML.pm blib/lib/RPC/XML/Parser/XMLLibXML.pm
cp lib/Apache/RPC/Server.pm blib/lib/Apache/RPC/Server.pm
cp lib/RPC/XML.pm blib/lib/RPC/XML.pm
cp methods/status.xpl blib/lib/RPC/XML/status.xpl
cp lib/Apache/RPC/Status.pm blib/lib/Apache/RPC/Status.pm
cp lib/RPC/XML/Client.pm blib/lib/RPC/XML/Client.pm
cp methods/identity.xpl blib/lib/RPC/XML/identity.xpl
cp methods/methodSignature.xpl blib/lib/RPC/XML/methodSignature.xpl
cp lib/RPC/XML/Procedure.pm blib/lib/RPC/XML/Procedure.pm
cp lib/RPC/XML/Server.pm blib/lib/RPC/XML/Server.pm
cp lib/RPC/XML/Parser.pm blib/lib/RPC/XML/Parser.pm
cp methods/introspection.xpl blib/lib/RPC/XML/introspection.xpl
cp methods/listMethods.xpl blib/lib/RPC/XML/listMethods.xpl
cp lib/RPC/XML/ParserFactory.pm blib/lib/RPC/XML/ParserFactory.pm
cp methods/multicall.xpl blib/lib/RPC/XML/multicall.xpl
cp etc/make_method blib/script/make_method
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/make_method
Manifying blib/man1/make_method.1p
Manifying blib/man3/Apache::RPC::Server.3pm
Manifying blib/man3/Apache::RPC::Status.3pm
Manifying blib/man3/RPC::XML.3pm
Manifying blib/man3/RPC::XML::Client.3pm
Manifying blib/man3/RPC::XML::Parser.3pm
Manifying blib/man3/RPC::XML::Parser::XMLLibXML.3pm
Manifying blib/man3/RPC::XML::Parser::XMLParser.3pm
Manifying blib/man3/RPC::XML::ParserFactory.3pm
Manifying blib/man3/RPC::XML::Procedure.3pm
Manifying blib/man3/RPC::XML::Server.3pm
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00_load.t ..................... ok    
t/10_data.t ..................... ok      
t/11_base64_fh.t ................ ok    
t/12_nil.t ...................... ok    
t/13_no_deep_recursion.t ........ ok    
t/14_datetime_iso8601.t ......... ok      
t/15_serialize.t ................ ok    
t/20_xml_parser.t ............... ok      
t/21_xml_libxml.t ............... ok      
t/25_parser_negative.t .......... ok    
t/29_parserfactory.t ............ ok    
t/30_procedure.t ................ ok    
t/35_namespaces.t ............... ok  
t/40_server.t ................... ok    
t/40_server_xmllibxml.t ......... ok    
t/41_server_hang.t .............. ok  
t/50_client.t ................... ok    
t/51_client_with_host_header.t .. ok  
t/60_net_server.t ............... 2/30
#   Failed test 'system.identity matches $srv->product_tokens'
#   at t/60_net_server.t line 79.
#          got: undef
#     expected: 'RPC::XML::Server/1.73'

#   Failed test 'system.listMethods returned ARRAY ref'
#   at t/60_net_server.t line 88.
#          got: ''
#     expected: 'ARRAY'

#   Failed test 'system.listMethods returned ARRAY ref'
#   at t/60_net_server.t line 103.
#          got: ''
#     expected: 'ARRAY'

#   Failed test 'system.listMethods returned ARRAY ref'
#   at t/60_net_server.t line 116.
#          got: ''
#     expected: 'ARRAY'

#   Failed test 'system.status returned HASH ref'
#   at t/60_net_server.t line 130.
#          got: ''
#     expected: 'HASH'

#   Failed test 'system.methodHelp returned correct string'
#   at t/60_net_server.t line 144.
#          got: undef
#     expected: 'Return the server name and version as a string'

#   Failed test 'system.methodHelp returned ARRAY ref'
#   at t/60_net_server.t line 150.
#          got: ''
#     expected: 'ARRAY'

#   Failed test ''system.methodHelp (bad arg) response' isa 'RPC::XML::fault''
#   at t/60_net_server.t line 165.
#     'system.methodHelp (bad arg) response' isn't a 'RPC::XML::fault'

#   Failed test 'system.methodSignature returned ARRAY ref'
#   at t/60_net_server.t line 178.
#          got: ''
#     expected: 'ARRAY'

#   Failed test ''system.methodSignature (bad arg) response' isa 'RPC::XML::fault''
#   at t/60_net_server.t line 194.
#     'system.methodSignature (bad arg) response' isn't a 'RPC::XML::fault'

#   Failed test 'system.multicall returned ARRAY ref'
#   at t/60_net_server.t line 251.
#          got: ''
#     expected: 'ARRAY'
# Looks like you planned 30 tests but ran 29.
# Looks like you failed 11 tests of 29 run.
t/60_net_server.t ............... Dubious, test returned 11 (wstat 2816, 0xb00)
Failed 12/30 subtests
    (less 16 skipped subtests: 2 okay)
t/70_compression_detect.t ....... ok  
t/90_rt50013_parser_bugs.t ...... ok  
t/90_rt54183_sigpipe.t .......... ok  
t/90_rt54494_blessed_refs.t ..... ok  
t/90_rt58065_allow_nil.t ........ ok  
t/90_rt58323_push_parser.t ...... ok  

Test Summary Report
-------------------
t/60_net_server.t             (Wstat: 2816 Tests: 29 Failed: 11)
  Failed tests:  3-4, 7, 9, 11, 14-15, 17, 19, 21, 24
  Non-zero exit status: 11
  Parse errors: Bad plan.  You planned 30 tests but ran 29.
Files=25, Tests=1103, 36 wallclock secs ( 0.15 usr  0.04 sys +  2.80 cusr  0.36 csys =  3.35 CPU)
Result: FAIL
Failed 1/25 test programs. 11/1103 subtests failed.
Makefile:962: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
rjray commented 8 years ago

This was fixed in the release I uploaded to CPAN just yesterday (0.80). The "fix" is really just a work-around for an issue with combining Net::Server and IO::Socket::IP.