uperl / Archive-Libarchive-XS

Perl bindings to libarchive via XS
0 stars 1 forks source link

Cannot compile under MAGEIA #43

Open GTAdoum opened 3 years ago

GTAdoum commented 3 years ago

Hello, I cannot compile this module under MAGEIA, the tests returns many errors :

Test Summary Report
-------------------
t/common_basic_write.t                 (Wstat: 1280 Tests: 9 Failed: 5)
  Failed tests:  2, 4-6, 9
  Non-zero exit status: 5
t/common_callback_write.t              (Wstat: 65280 Tests: 1 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 9 tests but ran 1.
t/common_fh_write.t                    (Wstat: 1280 Tests: 9 Failed: 5)
  Failed tests:  2, 4-6, 9
  Non-zero exit status: 5
t/common_memory_write.t                (Wstat: 1280 Tests: 9 Failed: 5)
  Failed tests:  2, 4-6, 9
  Non-zero exit status: 5
Files=29, Tests=214, 18 wallclock secs ( 0.80 usr  0.91 sys + 11.58 cusr  3.19 csys = 16.48 CPU)
Result: FAIL
Failed 4/29 test programs. 15/214 subtests failed.
  PLICEASE/Archive-Libarchive-XS-0.0902.tar.gz
  ./Build test -- NOT OK

Can those errors be ignored and the module forced to be installed?

Thanks.

plicease commented 3 years ago

The output of t/common_00_diag.t includes version of libarchive and other diagnostic data that could be helpful in diagnosing this. You can run it with:

prove -bv t/common_00_diag.t

also running those tests individually with the verbose output may provide extra details:

prove -bv t/common_basic_write.t

GTAdoum commented 3 years ago

On both prove command, it returns "Cannot detect source of 't/...", I guess I am missing something, it is my first time with the prove command :).

plicease commented 3 years ago

where are you running prove from? It needs to be run from the dist install directory after build.

GTAdoum commented 3 years ago

I was running it from ~ (/root)... Here is the result of one prove (it was showing the same errors on the cpan build screen messages) :

t/common_basic_write.t ..
1..9
ok 1 - archive_write_new
not ok 2 - archive_write_set_format_pax_restricted

#   Failed test 'archive_write_set_format_pax_restricted'
#   at t/common_basic_write.t line 24.
#          got: undef
#     expected: '0'
ok 3 - archive_write_open_filename
# Subtest: foo
    1..8
    ok 1 - archive_entry_new
    ok 2 - archive_entry_set_pathname
    ok 3 - archive_entry_set_size
    ok 4 - archive_entry_set_filetype
    ok 5 - archive_entry_set_perm
    not ok 6 - archive_write_header

    #   Failed test 'archive_write_header'
    #   at t/common_basic_write.t line 52.
    #          got: '-30'
    #     expected: '0'
    not ok 7 - archive_write_data

    #   Failed test 'archive_write_data'
    #   at t/common_basic_write.t line 55.
    #          got: '-30'
    #     expected: '3'
    ok 8 - archive_entry_free
    # Looks like you failed 2 tests of 8.
not ok 4 - foo

#   Failed test 'foo'
#   at t/common_basic_write.t line 59.
# Subtest: bar
    1..8
    ok 1 - archive_entry_new
    ok 2 - archive_entry_set_pathname
    ok 3 - archive_entry_set_size
    ok 4 - archive_entry_set_filetype
    ok 5 - archive_entry_set_perm
    not ok 6 - archive_write_header

    #   Failed test 'archive_write_header'
    #   at t/common_basic_write.t line 52.
    #          got: '-30'
    #     expected: '0'
    not ok 7 - archive_write_data

    #   Failed test 'archive_write_data'
    #   at t/common_basic_write.t line 55.
    #          got: '-30'
    #     expected: '3'
    ok 8 - archive_entry_free
    # Looks like you failed 2 tests of 8.
not ok 5 - bar

#   Failed test 'bar'
#   at t/common_basic_write.t line 59.
# Subtest: baz
    1..8
    ok 1 - archive_entry_new
    ok 2 - archive_entry_set_pathname
    ok 3 - archive_entry_set_size
    ok 4 - archive_entry_set_filetype
    ok 5 - archive_entry_set_perm
    not ok 6 - archive_write_header

    #   Failed test 'archive_write_header'
    #   at t/common_basic_write.t line 52.
    #          got: '-30'
    #     expected: '0'
    not ok 7 - archive_write_data

    #   Failed test 'archive_write_data'
    #   at t/common_basic_write.t line 55.
    #          got: '-30'
    #     expected: '5'
    ok 8 - archive_entry_free
    # Looks like you failed 2 tests of 8.
not ok 6 - baz

#   Failed test 'baz'
#   at t/common_basic_write.t line 59.
ok 7 - archive_write_close
ok 8 - archive_write_free
not ok 9 - output matches

#   Failed test 'output matches'
#   at t/common_basic_write.t line 81.
#          got: ''
#     expected: 'foo=one
# bar=two
# baz=three
# '
# Looks like you failed 5 tests of 9.
Dubious, test returned 5 (wstat 1280, 0x500)
Failed 5/9 subtests

Test Summary Report
-------------------
t/common_basic_write.t (Wstat: 1280 Tests: 9 Failed: 5)
  Failed tests:  2, 4-6, 9
  Non-zero exit status: 5
Files=1, Tests=9,  1 wallclock secs ( 0.11 usr  0.05 sys +  0.52 cusr  0.08 csys =  0.76 CPU)
Result: FAIL
plicease commented 3 years ago

Can you please provide the output of prove -bv t/common_00_diag.t that will include the version and other diagnostic information specific to your version of libarchive.

GTAdoum commented 3 years ago

Here goes :

t/common_00_diag.t ..
1..1
ok 1 - okay
#
#
# missing constants:
#  - ARCHIVE_API_FEATURE
#  - ARCHIVE_API_VERSION
#  - ARCHIVE_BYTES_PER_RECORD
#  - ARCHIVE_DEFAULT_BYTES_PER_BLOCK
#  - ARCHIVE_LIBRARY_VERSION
#  - ARCHIVE_VERSION_STAMP
#
#
# missing functions:
#  - archive_entry_copy_fflags_text
#  - archive_entry_copy_sourcepath
#  - archive_read_append_filter
#  - archive_read_append_filter_program
#  - archive_read_append_filter_program_signature
#  - archive_read_set_format
#  - archive_read_support_filter_bzip2
#  - archive_read_support_filter_gzip
#  - archive_read_support_filter_lzip
#  - archive_read_support_filter_lzma
#  - archive_read_support_filter_lzop
#  - archive_read_support_filter_xz
#  - archive_read_support_format_7zip
#  - archive_read_support_format_by_code
#  - archive_read_support_format_cab
#  - archive_read_support_format_iso9660
#  - archive_read_support_format_rar
#  - archive_read_support_format_zip
#  - archive_write_add_filter
#  - archive_write_add_filter_by_name
#  - archive_write_add_filter_bzip2
#  - archive_write_add_filter_gzip
#  - archive_write_add_filter_lzip
#  - archive_write_add_filter_lzma
#  - archive_write_add_filter_lzop
#  - archive_write_add_filter_xz
#  - archive_write_set_format_7zip
#  - archive_write_set_format_gnutar
#  - archive_write_set_format_iso9660
#  - archive_write_set_format_mtree
#  - archive_write_set_format_mtree_classic
#  - archive_write_set_format_old_tar
#  - archive_write_set_format_option
#  - archive_write_set_format_pax
#  - archive_write_set_format_pax_restricted
#  - archive_write_set_format_shar
#  - archive_write_set_format_shar_dump
#  - archive_write_set_format_ustar
#  - archive_write_set_format_v7tar
#  - archive_write_set_format_zip
#  - archive_write_zip_set_compression_deflate
#  - archive_write_zip_set_compression_store
#
#
# archive_perl_codeset:   UTF-8
# archive_perl_utf8_mode: 1
#
#
# read filters:
# bzip2           no
# compress        yes
# grzip           external
# gzip            no
# lrzip           external
# lzip            no
# lzma            no
# lzop            no
# none            yes
# rpm             yes
# uu              yes
# xz              no
#
#
# read formats:
# 7zip            no
# ar              yes
# cab             no
# cpio            yes
# empty           yes
# gnutar          yes
# iso9660         no
# lha             yes
# mtree           yes
# rar             no
# raw             yes
# tar             yes
# xar             Xar not supported on this platform
# zip             no
#
#
# write filters:
# b64encode       yes
# bzip2           no
# compress        yes
# grzip           external
# gzip            no
# lrzip           external
# lzip            no
# lzma            no
# lzop            no
# none            yes
# uuencode        yes
# xz              no
#
#
# write formats:
# 7zip            no
# ar_bsd          yes
# ar_svr4         yes
# cpio            yes
# cpio_newc       yes
# gnutar          no
# iso9660         no
# mtree           no
# mtree_classic   no
# old_tar         no
# option          no
# pax             no
# pax_restricted  no
# shar            no
# shar_dump       no
# ustar           no
# v7tar           no
# xar             Xar not supported on this platform
# zip             no
#
#
# cflags  = -I/usr/local/lib64/perl5/auto/share/dist/Alien-Libarchive3/include
# libs    = -L/usr/local/lib64/perl5/auto/share/dist/Alien-Libbz2/lib -L/usr/local/lib64/perl5/auto/share/dist/Alien-LZO/lib -L/usr/local/lib64/perl5/auto/share/dist/Alien-Nettle/lib -L/usr/local/lib64/perl5/auto/share/dist/Alien-Libarchive3/lib -larchive
# version = 3.4.2
#
#
ok
All tests successful.
Files=1, Tests=1,  2 wallclock secs ( 0.15 usr  0.04 sys +  0.64 cusr  0.16 csys =  0.99 CPU)
Result: PASS