
Zippy1970
Novice
Jan 30, 2014, 6:50 PM
Post #1 of 16
(28840 views)
|
Trying to add a digital signature to an XML with XML::Sig
|
Can't Post
|
|
...and failing hopelessly. It starts with the fact I can't install the XML::Sig module without errors. I'm not sure the final error in my Perl program is because of that, so please allow me to explain. First of all the problem at hand. I need to add a digital signature to an XML::Sig apparently is exactly what I need. XML::Sig isn't installed on my system so I first tried to install it manually. That failed because it was missing a lot of prerequisites. so I tried to install it through
perl -MCPAN -e shell cpan> install XML::Sig That eventually gave an error when it tried to install the Crypt::OpenSSL::X509 prerequisite:
Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/pod.t t/utf8.t t/ x509.t t/pod.....skipped all skipped: Test::Pod 1.00 required for testing POD t/utf8....NOK 10/11 # Failed test 'subject is utf8' # at t/utf8.t line 50. t/utf8....NOK 11/11 # Failed test 'utf8 subject as expected' # at t/utf8.t line 51. Wide character in print at /usr/local/share/perl/5.10.0/Test/Builder.pm line 1821. # got: 'C=PL, ST=mazowieckie, L=Warszawa, O=D.A.S. Towarzystwo Ubezpieczen Ochrony Prawnej S.A., OU=Dzia³ï¿½ Informatyk i, CN=das.pl' # expected: 'C=PL, ST=mazowieckie, L=Warszawa, O=D.A.S. Towarzystwo Ubezpieczen Ochrony Prawnej S.A., OU=Dzi� Informatyki, CN= das.pl' # Looks like you failed 2 tests of 11. t/utf8....dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 10-11 Failed 2/11 tests, 81.82% okay t/x509....ok Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/utf8.t 2 512 11 2 10-11 1 test skipped. Failed 1/3 test scripts. 2/61 subtests failed. Files=3, Tests=61, 1 wallclock secs ( 0.10 cusr + 0.01 csys = 0.11 CPU) Failed 1/3 test programs. 2/61 subtests failed. make: *** [test_dynamic] Error 255 DANIEL/Crypt-OpenSSL-X509-1.804.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports DANIEL/Crypt-OpenSSL-X509-1.804.tar.gz Warning (usually harmless): 'YAML' not installed, will not store persistent state Running make install make test had returned bad status, won't install without force
It then continues to (try to) install XML::Sig, but that fails too:
CPAN.pm: Going to build B/BY/BYRNE/XML-Sig-0.22.tar.gz Warning: Prerequisite 'Crypt::OpenSSL::X509 => 0' for 'B/BY/BYRNE/XML-Sig-0.22.tar.gz' failed when processing 'D/DA/DANIEL/Crypt-Ope nSSL-X509-1.804.tar.gz' with 'make_test => NO'. Continuing, but chances to succeed are limited. cp lib/XML/Sig.pm blib/lib/XML/Sig.pm Manifying blib/man3/XML::Sig.3pm BYRNE/XML-Sig-0.22.tar.gz /usr/bin/make -- OK Warning (usually harmless): 'YAML' not installed, will not store persistent state Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/001_load...........ok 1/2Can't locate object method "bless_pointer" via package "Crypt::OpenSSL::Bignum" at blib/lib/Crypt/OpenSSL /RSA.pm (autosplit into blib/lib/auto/Crypt/OpenSSL/RSA/get_key_parameters.al) line 297. # Looks like you planned 2 tests but ran 1. # Looks like your test exited with 2 just after 1. t/001_load...........dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED test 2 Failed 1/2 tests, 50.00% okay t/002_xmlsec.........ok 4/5 skipped: various reasons t/003_params.........ok 1/5Can't locate object method "bless_pointer" via package "Crypt::OpenSSL::Bignum" at blib/lib/Crypt/OpenSSL /RSA.pm (autosplit into blib/lib/auto/Crypt/OpenSSL/RSA/get_key_parameters.al) line 297. # Looks like you planned 5 tests but ran 1. # Looks like your test exited with 2 just after 1. t/003_params.........dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 2-5 Failed 4/5 tests, 20.00% okay t/004_keyhandling....ok 1/4Can't locate object method "bless_pointer" via package "Crypt::OpenSSL::Bignum" at blib/lib/Crypt/OpenSSL /RSA.pm (autosplit into blib/lib/auto/Crypt/OpenSSL/RSA/get_key_parameters.al) line 297. # Looks like you planned 4 tests but ran 1. # Looks like your test exited with 2 just after 1. t/004_keyhandling....dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 2-4 Failed 3/4 tests, 25.00% okay t/005_rsakeys........ok 1/5Can't locate object method "bless_pointer" via package "Crypt::OpenSSL::Bignum" at blib/lib/Crypt/OpenSSL /RSA.pm (autosplit into blib/lib/auto/Crypt/OpenSSL/RSA/get_key_parameters.al) line 297. # Looks like you planned 5 tests but ran 1. # Looks like your test exited with 2 just after 1. t/005_rsakeys........dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 2-5 Failed 4/5 tests, 20.00% okay t/006_signing........ok 1/13Can't locate object method "bless_pointer" via package "Crypt::OpenSSL::Bignum" at blib/lib/Crypt/OpenSS L/RSA.pm (autosplit into blib/lib/auto/Crypt/OpenSSL/RSA/get_key_parameters.al) line 297. # Looks like you planned 13 tests but ran 1. # Looks like your test exited with 2 just after 1. t/006_signing........dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 2-13 Failed 12/13 tests, 7.69% okay Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/001_load.t 2 512 2 2 2 t/003_params.t 2 512 5 8 2-5 t/004_keyhandling.t 2 512 4 6 2-4 t/005_rsakeys.t 2 512 5 8 2-5 t/006_signing.t 2 512 13 24 2-13 4 subtests skipped. Failed 5/6 test scripts. 24/34 subtests failed. Files=6, Tests=34, 0 wallclock secs ( 0.42 cusr + 0.06 csys = 0.48 CPU) Failed 5/6 test programs. 24/34 subtests failed. make: *** [test_dynamic] Error 2 BYRNE/XML-Sig-0.22.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports BYRNE/XML-Sig-0.22.tar.gz Warning (usually harmless): 'YAML' not installed, will not store persistent state Running make install make test had returned bad status, won't install without force Failed during this command: DANIEL/Crypt-OpenSSL-X509-1.804.tar.gz : make_test NO BYRNE/XML-Sig-0.22.tar.gz : make_test NO
Not sure where to go from here... Can anyone offer some help/pointers?
|