Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on macOS #13

Closed
petdance opened this issue Oct 26, 2019 · 1 comment
Closed

Build fails on macOS #13

petdance opened this issue Oct 26, 2019 · 1 comment
Labels
bug Something isn't working tests

Comments

@petdance
Copy link
Owner

cpanm (App::cpanminus) 1.7044 on perl 5.030000 built for darwin-2level
Work directory is /Users/andy/.cpanm/work/1572113799.93019
You have make /usr/bin/make
You have /usr/local/bin/wget
You have /usr/bin/tar: bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.6
You have /usr/bin/unzip
Searching HTML::Tidy5 () on cpanmetadb ...
--> Working on HTML::Tidy5
Fetching http://www.cpan.org/authors/id/P/PE/PETDANCE/HTML-Tidy5-1.04.tar.gz
-> OK
Unpacking HTML-Tidy5-1.04.tar.gz
Entering HTML-Tidy5-1.04
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.34)
Configuring HTML-Tidy5-1.04
Running Makefile.PL

NOTE: It seems that you don't have LWP::Simple installed.
      The webtidy program will not be able to retrieve web pages.

Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for HTML::Tidy5
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Test::Builder 0 ... Yes (1.302162)
Checking if you have constant 0 ... Yes (1.33)
Checking if you have Exporter 0 ... Yes (5.73)
Checking if you have Getopt::Long 0 ... Yes (2.5)
Checking if you have Test::More 0.98 ... Yes (1.302162)
Checking if you have Encode 0 ... Yes (3.01)
Checking if you have Test::Exception 0 ... Yes (0.43)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.34)
Checking if you have Carp 0 ... Yes (1.50)
Building and testing HTML-Tidy5-1.04
cp lib/HTML/Tidy5/Message.pm blib/lib/HTML/Tidy5/Message.pm
cp lib/HTML/Tidy5.pm blib/lib/HTML/Tidy5.pm
cp lib/Test/HTML/Tidy5.pm blib/lib/Test/HTML/Tidy5.pm
Running Mkbootstrap for Tidy5 ()
chmod 644 "Tidy5.bs"
"/Users/andy/perl5/perlbrew/perls/perl-5.30.0/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Tidy5.bs blib/arch/auto/HTML/Tidy5/Tidy5.bs 644
"/Users/andy/perl5/perlbrew/perls/perl-5.30.0/bin/perl" "/Users/andy/perl5/perlbrew/perls/perl-5.30.0/lib/5.30.0/ExtUtils/xsubpp"  -typemap '/Users/andy/perl5/perlbrew/perls/perl-5.30.0/lib/5.30.0/ExtUtils/typemap'  Tidy5.xs > Tidy5.xsc
mv Tidy5.xsc Tidy5.c
cc -c  -I. -I/usr/include/tidy -I/usr/local/include/tidy -I/usr/include/tidy -fno-common -DPERL_DARWIN -mmacosx-version-min=10.14 -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -DPERL_USE_SAFE_PUTENV -O3   -DVERSION=\"1.04\" -DXS_VERSION=\"1.04\"  "-I/Users/andy/perl5/perlbrew/perls/perl-5.30.0/lib/5.30.0/darwin-2level/CORE"   Tidy5.c
rm -f blib/arch/auto/HTML/Tidy5/Tidy5.bundle
LD_RUN_PATH="/usr/local/lib" cc  -mmacosx-version-min=10.14 -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector-strong  Tidy5.o  -o blib/arch/auto/HTML/Tidy5/Tidy5.bundle  \
	   -ltidy   \
	  
chmod 755 blib/arch/auto/HTML/Tidy5/Tidy5.bundle
cp bin/webtidy5 blib/script/webtidy5
"/Users/andy/perl5/perlbrew/perls/perl-5.30.0/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/webtidy5
Manifying 3 pod documents
"/Users/andy/perl5/perlbrew/perls/perl-5.30.0/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Tidy5.bs blib/arch/auto/HTML/Tidy5/Tidy5.bs 644
PERL_DL_NONLAZY=1 "/Users/andy/perl5/perlbrew/perls/perl-5.30.0/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
# Testing HTML::Tidy5 1.04, tidy 5.6.0, Perl 5.030000, /Users/andy/perl5/perlbrew/perls/perl-5.30.0/bin/perl
[13:16:42] t/00-load.t ................ ok      328 ms ( 0.00 usr  0.00 sys +  0.07 cusr  0.02 csys =  0.09 CPU)
[13:16:42] t/cfg-for-parse.t .......... ok       68 ms ( 0.00 usr  0.00 sys +  0.06 cusr  0.01 csys =  0.07 CPU)
[13:16:43] t/clean-crash.t ............ ok       67 ms ( 0.01 usr  0.00 sys +  0.05 cusr  0.02 csys =  0.08 CPU)

#   Failed test '$tidy->clean("") returns empty HTML document'
#   at t/clean.t line 41.
#          got: '<!DOCTYPE html>
# <html>
# <head>
# <meta name="generator" content="HTML Tidy for HTML5 for Apple macOS version 5.6.0">
# <title></title>
# </head>
# <body>
# </body>
# </html>
# '
#     expected: '<!DOCTYPE html>
# <html>
# <head>
# <meta name="generator" content="TIDY">
# <title></title>
# </head>
# <body>
# </body>
# </html>
# '
# Looks like you failed 1 test of 3.
[13:16:43] t/clean.t .................. 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests 
[13:16:43] t/extra-quote.t ............ ok       77 ms ( 0.00 usr  0.00 sys +  0.07 cusr  0.01 csys =  0.08 CPU)
[13:16:43] t/html_fragment_tidy_ok.t .. ok       93 ms ( 0.00 usr  0.00 sys +  0.07 cusr  0.02 csys =  0.09 CPU)
[13:16:43] t/html_tidy_ok.t ........... ok       85 ms ( 0.00 usr  0.00 sys +  0.07 cusr  0.01 csys =  0.08 CPU)
[13:16:43] t/ignore-text.t ............ ok       69 ms ( 0.00 usr  0.00 sys +  0.06 cusr  0.01 csys =  0.07 CPU)
[13:16:43] t/ignore.t ................. ok       69 ms ( 0.00 usr  0.00 sys +  0.06 cusr  0.01 csys =  0.07 CPU)
[13:16:43] t/illegal-options.t ........ ok       84 ms ( 0.01 usr  0.00 sys +  0.07 cusr  0.02 csys =  0.10 CPU)
[13:16:43] t/levels.t ................. ok       74 ms ( 0.00 usr  0.00 sys +  0.06 cusr  0.01 csys =  0.07 CPU)
[13:16:43] t/message.t ................ ok       76 ms ( 0.01 usr  0.00 sys +  0.06 cusr  0.01 csys =  0.08 CPU)
[13:16:43] t/opt-00.t ................. ok       77 ms ( 0.00 usr  0.00 sys +  0.06 cusr  0.01 csys =  0.07 CPU)
[13:16:43] t/parse-errors.t ........... ok       73 ms ( 0.00 usr  0.00 sys +  0.07 cusr  0.02 csys =  0.09 CPU)
[13:16:43] t/parse.t .................. ok       71 ms ( 0.00 usr  0.00 sys +  0.06 cusr  0.01 csys =  0.07 CPU)
[13:16:44] t/perfect.t ................ ok       83 ms ( 0.00 usr  0.01 sys +  0.06 cusr  0.01 csys =  0.08 CPU)

#   Failed test 'Cleaned up properly'
#   at t/roundtrip.t line 36.
#          got: '<!DOCTYPE html>
# <html>
# <head>
# <meta name="generator" content="HTML Tidy for HTML5 for Apple macOS version 5.6.0">
# <title></title>
# </head>
# <body>
# <a href="http://www.example.com/"><em>This is a test.</em></a>
# </body>
# </html>
# '
#     expected: '<!DOCTYPE html>
# <html>
# <head>
# <meta name="generator" content="TIDY">
# <title></title>
# </head>
# <body>
# <a href="http://www.example.com/"><em>This is a test.</em></a>
# </body>
# </html>
# '
# Looks like you failed 1 test of 3.
[13:16:44] t/roundtrip.t .............. 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests 
[13:16:44] t/segfault-form.t .......... ok       68 ms ( 0.00 usr  0.00 sys +  0.05 cusr  0.01 csys =  0.06 CPU)
[13:16:44] t/simple.t ................. ok       81 ms ( 0.01 usr  0.00 sys +  0.07 cusr  0.01 csys =  0.09 CPU)
[13:16:44] t/too-many-titles.t ........ ok       70 ms ( 0.00 usr  0.00 sys +  0.06 cusr  0.01 csys =  0.07 CPU)
[13:16:44] t/unicode-nbsp.t ........... ok       77 ms ( 0.00 usr  0.00 sys +  0.06 cusr  0.02 csys =  0.08 CPU)

    #   Failed test 'Cleanup didn't break anything'
    #   at t/unicode.t line 41.
Wide character in print at /Users/andy/perl5/perlbrew/perls/perl-5.30.0/lib/5.30.0/Test2/Formatter/TAP.pm line 124, <DATA> line 10.
    #          got: '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
    # <html>
    # <head>
    # <meta name="generator" content="HTML Tidy for HTML5 for Apple macOS version 5.6.0">
    # <title>日本語のホムページ</title>
    # </head>
    # <body>
    # <p>Unicodeが好きですか?</p>
    # </body>
    # </html>
    # '
    #     expected: '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
    # <html>
    # <head>
    # <meta name="generator" content="TIDY">
    # <title>日本語のホムページ</title>
    # </head>
    # <body>
    # <p>Unicodeが好きですか?</p>
    # </body>
    # </html>
    # '
    # Looks like you failed 1 test of 8.

#   Failed test 'utf8 testing'
#   at t/unicode.t line 52.

    #   Failed test 'Cleanup didn't break anything'
    #   at t/unicode.t line 66.
Wide character in print at /Users/andy/perl5/perlbrew/perls/perl-5.30.0/lib/5.30.0/Test2/Formatter/TAP.pm line 124, <DATA> line 10.
    #          got: '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
    # <html>
    # <head>
    # <meta name="generator" content="HTML Tidy for HTML5 for Apple macOS version 5.6.0">
    # <title>日本語のホムページ</title>
    # </head>
    # <body>
    # <p>Unicodeが好きですか?</p>
    # </body>
    # </html>
    # '
    #     expected: '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
    # <html>
    # <head>
    # <meta name="generator" content="TIDY">
    # <title>日本語のホムページ</title>
    # </head>
    # <body>
    # <p>Unicodeが好きですか?</p>
    # </body>
    # </html>
    # '
    # Looks like you failed 1 test of 3.

#   Failed test 'Try send bytes to clean method.'
#   at t/unicode.t line 67.
# Looks like you failed 2 tests of 2.
[13:16:44] t/unicode.t ................ 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests 
[13:16:44] t/venus.t .................. ok       71 ms ( 0.00 usr  0.00 sys +  0.06 cusr  0.01 csys =  0.07 CPU)
[13:16:44] t/version.t ................ ok       68 ms ( 0.00 usr  0.00 sys +  0.06 cusr  0.02 csys =  0.08 CPU)
[13:16:44] t/wordwrap.t ............... ok       70 ms ( 0.00 usr  0.00 sys +  0.06 cusr  0.01 csys =  0.07 CPU)
[13:16:44]

Test Summary Report
-------------------
t/clean.t                (Wstat: 256 Tests: 3 Failed: 1)
  Failed test:  3
  Non-zero exit status: 1
t/roundtrip.t            (Wstat: 256 Tests: 3 Failed: 1)
  Failed test:  3
  Non-zero exit status: 1
t/unicode.t              (Wstat: 512 Tests: 2 Failed: 2)
  Failed tests:  1-2
  Non-zero exit status: 2
Files=25, Tests=85,  2 wallclock secs ( 0.09 usr  0.05 sys +  1.57 cusr  0.33 csys =  2.04 CPU)
Result: FAIL
Failed 3/25 test programs. 4/85 subtests failed.
make: *** [test_dynamic] Error 255
-> FAIL Installing HTML::Tidy5 failed. See /Users/andy/.cpanm/work/1572113799.93019/build.log for details. Retry with --force to force install it.

@petdance petdance added bug Something isn't working tests labels Oct 26, 2019
@petdance
Copy link
Owner Author

fixed in 1.06.

shlomif pushed a commit to shlomif/html-tidy5 that referenced this issue Jan 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tests
Projects
None yet
Development

No branches or pull requests

1 participant