Giter Club home page Giter Club logo

html-tidy's People

Contributors

dsteinbrunner avatar petdance avatar theory avatar threebytesfull avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

html-tidy's Issues

unescaped & or unknown entity "&d" - in URL?

my $html = <<'END_HTML';

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<img src="https://secure.gravatar.com/a?s=130&d=b" alt="" />
<a href="https://www.google.com/search?q=html&es_sm=119&source=lnms&tbm=isch&sa=X&ei=hsNKVJqLCsbdaOv1gcgJ&ved=0CAkQ_AUoAg&biw=1438&bih=802">html</a>

</body>
</html>
END_HTML

use 5.010;
use HTML::Tidy;
my $tidy = HTML::Tidy->new;
$tidy->parse('foo.html', $html);
for my $message ( $tidy->messages ) {
    say $message->as_string;
}

prints

foo.html (8:46) Warning: unescaped & or unknown entity "&d"
foo.html (9:46) Warning: unescaped & or unknown entity "&biw"
foo.html (9:55) Warning: unescaped & or unknown entity "&bih"
foo.html (9:63) Warning: unescaped & or unknown entity "&source"
foo.html (9:75) Warning: unescaped & or unknown entity "&tbm"
foo.html (9:84) Warning: unescaped & or unknown entity "&sa"
foo.html (9:89) Warning: unescaped & or unknown entity "&ei"
foo.html (9:113) Warning: unescaped & or unknown entity "&ved"

What should I put in the URL instead of plain & in order to make the link work and to make html-tidy happy?

libhtml-tidy-perl: FTBFS: Failed 7/21 test programs. 8/69 subtests failed.

We have the following bug reported to the Debian package of HTML-Tidy
(https://bugs.debian.org/829409):

The reason for the test failure are most probably the update of
(lib)tidy(-dev) from 20091223cvs-1.5 to 1:5.2.0-1.1 (a.k.a. a
5.2.0 upstream release) in Debian some days ago.

------8<-----------8<-----------8<-----------8<-----------8<-----

Dear Maintainer,

libhtml-tidy-perl fails to build from source in unstable/amd64:

  [..]

  t/extra-quote.t ...... 
  1..4
  ok 1 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
  ok 2 - Parsed OK
  ok 3 - Should have exactly three messages
  ok 4 - Matching warnings
  ok

  #   Failed test 'Matching warnings'
  #   at t/ignore-text.t line 33.
  #     Structures begin differing at:
  #          $got->[0] = Does not exist
  #     $expected->[0] = 'DATA (24:XX) Warning: unescaped & which should be written as &amp;'
  # Looks like you failed 1 test of 3.
  t/ignore-text.t ...... 
  1..3
  ok 1 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
  ok 2 - Parsed OK
  not ok 3 - Matching warnings
  Dubious, test returned 1 (wstat 256, 0x100)
  Failed 1/3 subtests 

  #   Failed test 'Matching warnings'
  #   at t/ignore.t line 38.
  #     Structures begin differing at:
  #          $got->[2] = Does not exist
  #     $expected->[2] = '- (24:XX) Warning: unescaped & which should be written as &amp;'
  # Looks like you failed 1 test of 9.
  t/ignore.t ........... 
  1..9
  ok 1 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
  ok 2 - Parsed OK
  not ok 3 - Matching warnings
  ok 4 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
  ok 5 - Parsed OK
  ok 6 - Matching errors
  ok 7 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
  ok 8 - eval should fail
  ok 9 - Throws an error
  Dubious, test returned 1 (wstat 256, 0x100)
  Failed 1/9 subtests 

  #   Failed test 'Matching messages'
  #   at t/levels.t line 28.
  #     Structures begin differing at:
  #          $got->[3] = Does not exist
  #     $expected->[3] = '- (24:XX) Warning: unescaped & which should be written as &amp;'
  # Looks like you failed 1 test of 3.
  t/levels.t ........... 
  1..3
  ok 1 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
  ok 2 - Parsed OK
  not ok 3 - Matching messages
  Dubious, test returned 1 (wstat 256, 0x100)
  Failed 1/3 subtests 
  t/message.t .......... 
  1..4
  ok 1 - An object of class 'HTML::Tidy::Message' isa 'HTML::Tidy::Message'
      # Subtest: _matchup( With line numbers )
      1..6
      ok 1 - as_string matches
      ok 2 - column matches
      ok 3 - file matches
      ok 4 - line matches
      ok 5 - text matches
      ok 6 - type matches
  ok 2 - _matchup( With line numbers )
  ok 3 - An object of class 'HTML::Tidy::Message' isa 'HTML::Tidy::Message'
      # Subtest: _matchup( Without line numbers )
      1..6
      ok 1 - as_string matches
      ok 2 - column matches
      ok 3 - file matches
      ok 4 - line matches
      ok 5 - text matches
      ok 6 - type matches
  ok 4 - _matchup( Without line numbers )
  ok
  HTML::Tidy: Unknown error type: Tidy found 7 warnings and 0 errors! at t/opt-00.t line 64.
  t/opt-00.t ........... 
  1..1
  ok 1 - Cleaned stuff looks like what we expected
  ok
  t/perfect.t .......... 
  1..3
  ok 1 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
  ok 2 - Parsed OK
  ok 3 - Should have no messages
  ok
  t/pod-coverage.t ..... 
  1..2
  ok 1 - Pod coverage on HTML::Tidy
  ok 2 - Pod coverage on HTML::Tidy::Message
  ok
  t/pod.t .............. 
  1..3
  ok 1 - POD test for blib/lib/HTML/Tidy.pm
  ok 2 - POD test for blib/lib/HTML/Tidy/Message.pm
  ok 3 - POD test for blib/script/webtidy (no pod)
  ok
  HTML::Tidy: Unknown error type: Tidy found 4 warnings and 0 errors! at t/roundtrip.t line 18.

  #   Failed test 'Cleaned up properly'
  #   at t/roundtrip.t line 31.
  #          got: '<!DOCTYPE html>
  # <html>
  # <head>
  # <meta name="generator" content="HTML Tidy for HTML5 for Linux version 5.2.0">
  # <title></title>
  # </head>
  # <body>
  # <a href="http://www.example.com/"><em>This is a test.</em></a>
  # </body>
  # </html>
  # '
  #     expected: '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
  # <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.
  t/roundtrip.t ........ 
  1..3
  ok 1 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
  ok 2 - The cleaned stuff shouldn't have any errors
  not ok 3 - Cleaned up properly
  Dubious, test returned 1 (wstat 256, 0x100)
  Failed 1/3 subtests 
  HTML::Tidy: Unknown error type: Tidy found 8 warnings and 1 error! at t/segfault-form.t line 12.
  t/segfault-form.t .... 
  1..3
  ok 1 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
  ok 2 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
  ok 3 - Cleaned OK
  ok
  t/simple.t ........... 
  1..4
  ok 1 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
  ok 2 - Parsed OK
  ok 3 - Right number of initial messages
  ok 4 - Cleared the messages
  ok
  t/too-many-titles.t .. 
  1..3
  ok 1 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
  ok 2 - Parsed OK
  ok 3 - Matching warnings
  ok
  t/unicode-nbsp.t ..... 
  1..2
  ok 1 - Perl chars OK
  ok 2 - Byte string OK
  ok

  #   Failed test 'Cleanup didn't break anything'
  #   at t/unicode.t line 35.
  Wide character in print at /usr/share/perl/5.22/Test/Builder.pm line 1826, <DATA> line 1.
  #          got: '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
  # <html>
  # <head>
  # <meta name="generator" content="HTML Tidy for HTML5 for Linux version 5.2.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>
  # '

      #   Failed test 'Cleanup didn't break anything'
      #   at t/unicode.t line 54.
  Wide character in print at /usr/share/perl/5.22/Test/Builder.pm line 1826, <DATA> line 1.
      #          got: '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
      # <html>
      # <head>
      # <meta name="generator" content="HTML Tidy for HTML5 for Linux version 5.2.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 55.
  # Looks like you failed 2 tests of 9.
  t/unicode.t .......... 
  1..9
  ok 1 - html is utf8
  ok 2 - reference is utf8
  ok 3 - cleaned output is also unicode
  not ok 4 - Cleanup didn't break anything
  ok 5 - There still shouldn't be any errors
  ok 6 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
  ok 7 - Parsed OK
  ok 8 - There still shouldn't be any errors
      # Subtest: Try send bytes to clean method.
      ok 1 - html is row bytes
      ok 2 - but cleaned output is string
      not ok 3 - Cleanup didn't break anything
      1..3
  not ok 9 - Try send bytes to clean method.
  Dubious, test returned 2 (wstat 512, 0x200)
  Failed 2/9 subtests 

  #   Failed test 'Cooked stuff looks like what we expected'
  #   at t/venus.t line 25.
  #     Structures begin differing at:
  #          $got->[47] = '    <address>'
  #     $expected->[47] = '    <center>'
  # Looks like you failed 1 test of 2.
  t/venus.t ............ 
  1..2
  ok 1 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
  not ok 2 - Cooked stuff looks like what we expected
  Dubious, test returned 1 (wstat 256, 0x100)
  Failed 1/2 subtests 
  t/version.t .......... 
  1..4
  ok 1 # skip libtidy_version has been removed in Debian
  ok 2 # skip libtidy_version has been removed in Debian
  ok 3 # skip libtidy_version has been removed in Debian
  ok 4 # skip libtidy_version has been removed in Debian
  ok
  HTML::Tidy: Unknown error type: Tidy found 5 warnings and 0 errors! at t/wordwrap.t line 34.

  #   Failed test 'Cleaned stuff looks like what we expected'
  #   at t/wordwrap.t line 36.
  #     Structures begin differing at:
  #          $got->[1] = 'html>'
  #     $expected->[1] = 'html PUBLIC "-//W3C//DTD HTML 3.2//EN">'
  # Looks like you failed 1 test of 1.
  t/wordwrap.t ......... 
  1..1
  not ok 1 - Cleaned stuff looks like what we expected
  Dubious, test returned 1 (wstat 256, 0x100)
  Failed 1/1 subtests 

  Test Summary Report
  -------------------
  t/ignore-text.t    (Wstat: 256 Tests: 3 Failed: 1)
    Failed test:  3
    Non-zero exit status: 1
  t/ignore.t         (Wstat: 256 Tests: 9 Failed: 1)
    Failed test:  3
    Non-zero exit status: 1
  t/levels.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: 9 Failed: 2)
    Failed tests:  4, 9
    Non-zero exit status: 2
  t/venus.t          (Wstat: 256 Tests: 2 Failed: 1)
    Failed test:  2
    Non-zero exit status: 1
  t/wordwrap.t       (Wstat: 256 Tests: 1 Failed: 1)
    Failed test:  1
    Non-zero exit status: 1
  Files=21, Tests=69,  0 wallclock secs ( 0.07 usr  0.02 sys +  0.56 cusr  0.08 csys =  0.73 CPU)
  Result: FAIL
  Failed 7/21 test programs. 8/69 subtests failed.
  Makefile:1045: recipe for target 'test_dynamic' failed
  make[1]: *** [test_dynamic] Error 1
  make[1]: Leaving directory '/home/lamby/temp/cdt.20160703075054.BvNvIeAxgJ.libhtml-tidy-perl/libhtml-tidy-perl-1.56'
  dh_auto_test: make -j1 test TEST_VERBOSE=1 returned exit code 2
  debian/rules:10: recipe for target 'build' failed
  make: *** [build] Error 2

  [..]

The full build log is attached.


------8<-----------8<-----------8<-----------8<-----------8<-----

Thanks for considering,
gregor herrmann,
Debian Perl Group

Test fails on Windows 8.x Strawberry Perl 5.18.2 (64bit)

Hi,

I tried to install the latest version (HTML-Tidy-1.56.tar) on Windows 8.0 64bit with Strawberry Perl 5.18.2.
The test 'unicode-nbsp.t' fails due to the fact that the string returned is NOT " \n" but " \r\n" under Windows.

Regards
McA

Undeclared dependency Test::Exception

The test suite fails if Test::Exception is not installed:

Can't locate Test/Exception.pm in @INC (you may need to install the Test::Exception module) (@INC contains: /home/cpansand/.cpan/build/2018111713/HTML-Tidy-1.60-FzoWHR/blib/lib /home/cpansand/.cpan/build/2018111713/HTML-Tidy-1.60-FzoWHR/blib/arch /tmp/Alien-TidyHTML5/.build/QgrRhzQpc8/blib/arch /tmp/Alien-TidyHTML5/.build/QgrRhzQpc8/blib/lib /tmp/Alien-TidyHTML5/.build/QgrRhzQpc8/blib/arch /tmp/Alien-TidyHTML5/.build/QgrRhzQpc8/blib/lib /usr/local/lib/perl5/site_perl/mach/5.24 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.24/mach /usr/local/lib/perl5/5.24) at t/clean.t line 6.
BEGIN failed--compilation aborted at t/clean.t line 6.
t/clean.t ............ 
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
... (etc) ...

5.00_01 does not build on FreeBSD out of the box

On a freebsd 10 system with package tidy-html5 installed:

$ perl5.18.4 Makefile.PL 
...
LD_RUN_PATH="/usr/local/lib" cc  -shared  -L/usr/local/lib -fstack-protector  Tidy.o  -o blib/arch/auto/HTML/Tidy/Tidy.so    -ltidy    
/usr/bin/ld: cannot find -ltidy
cc: error: linker command failed with exit code 1 (use -v to see invocation)

Problem: the library is installed as -ltidy5: /usr/local/lib/libtidy5.so
Makefile.PL should detect this automatically.

(If this is fixed then compilation is successful, but there are a number of test failures)

Another note: what about naming the new module version HTML::Tidy5, or HTML5::Tidy, so the old HTML::Tidy may still be installed? In some package repositories the new tidy-html5 seems to be missing (e.g. Ubuntu 16.04, CentOS6), so being able to build a tidy module without using CPAN tricks or adding backports repositories would be good.

Should HTML::Tidy become HTML::Tidy5?

@eserte asks in #29: what about naming the new module version HTML::Tidy5, or HTML5::Tidy, so the old HTML::Tidy may still be installed? In some package repositories the new tidy-html5 seems to be missing (e.g. Ubuntu 16.04, CentOS6), so being able to build a tidy module without using CPAN tricks or adding backports repositories would be good.

Success flag of parse() in case no error messages

In line 233 of Tidy.pm I suspect the code should be

return 1 unless defined $errorblock;

instead of

return unless defined $errorblock;

So that the success flag reflects that there are no errors. Or do I miss some important point?

install fails

I'm using an Ubuntu Docker container built with a Dockerfile starting with "FROM ubuntu:trusty".

Running "cpan install HTML::Tidy". I'm told that I need to install tidyp. However, "apt-cache search tidy" returns the below list. There is no 'tidyp'. I did, however, try installing both the 'tidy' an d 'libtidy-dev' packages and I still get the same error message about 'tidyp' not being there when I try to install HTML::Tidy using cpan.

root@bead8c401674:/home/user# apt-cache search tidy
libtidy-0.99-0 - HTML syntax checker and reformatter - library
libtidy-dev - HTML syntax checker and reformatter - development
perltidy - Perl script indenter and reformatter
php5-tidy - tidy module for php5
python-tidylib - Python wrapper for HTML Tidy (tidylib)
python-utidylib - Python wrapper for TidyLib
tidy - HTML syntax checker and reformatter
tidy-doc - HTML syntax checker and reformatter - documentation
csstidy - CSS parser and optimiser
libcode-tidyall-perl - your all-in-one code tidier and validator
libexporter-tidy-perl - another way of exporting symbols
libhtml-tidy-perl - module for (X)HTML validation
libjtidy-java - JTidy
libjtidy-java-doc - Documentation for JTidy
libpadre-plugin-perltidy-perl - Perl::Tidy Plugin for Padre
libxml-tidy-perl - module for tidy indenting of XML documents
php-horde-text-filter-csstidy - Horde Text Filter API
python-elementtidy - An HTML tree builder for ElementTree based on Tidy
tidy-proxy - small http proxy which tidies html

config new_blocklevel_tags => Undefined subroutine &HTML::Tidy::croak

Hi,

debian squeeze,
libhtml-tidy-perl 1.50-1

When adding the option new_blocklevel_tags => 'string' to
my $tidy = HTML::Tidy->new(
{
tidy_mark => 0,
output_encoding => 'utf8',
input_encoding => 'utf8',
drop_proprietary_attributes => 1,
show_warnings => 0,
show_errors => 0,
output_html => 1,
new_blocklevel_tags => 'string',
quiet => 1,
bare => 1,
clean => 1,
hide_endtags => 1,
}
);
I get the following error message:
Undefined subroutine &HTML::Tidy::croak called at /usr/lib/perl5/HTML/Tidy.pm line 116.

Tried using "string" and qr/string/, yielding the same result. The option
works fine with the tidy command-line tool that is available via apt-get.

Cheers,
Tink

"cpan -i HTML::Tidy" on a fresh perl installs fails tests due to missing Test::Exception

Hi!

With bleadperl and HTML-Tidy-1.60 I am getting this:

Loading internal null logger. Install Log::Log4perl for logging messages
Reading '/home/shlomif/.cpan/Metadata'
  Database was generated on Fri, 08 Sep 2017 16:41:03 GMT
CPAN: Time::HiRes loaded ok (v1.9743)
CPAN: HTTP::Tiny loaded ok (v0.070)
Fetching with HTTP::Tiny:
http://www.cpan.org/authors/01mailrc.txt.gz
Reading '/home/shlomif/.cpan/sources/authors/01mailrc.txt.gz'
CPAN: Compress::Zlib loaded ok (v2.074)
............................................................................DONE
Fetching with HTTP::Tiny:
http://www.cpan.org/modules/02packages.details.txt.gz
Reading '/home/shlomif/.cpan/sources/modules/02packages.details.txt.gz'
  Database was generated on Wed, 13 Sep 2017 18:53:54 GMT
  HTTP::Date not available
............................................................................DONE
Fetching with HTTP::Tiny:
http://www.cpan.org/modules/03modlist.data.gz
Reading '/home/shlomif/.cpan/sources/modules/03modlist.data.gz'
DONE
Writing /home/shlomif/.cpan/Metadata
Running install for module 'HTML::Tidy'
Fetching with HTTP::Tiny:
http://www.cpan.org/authors/id/P/PE/PETDANCE/HTML-Tidy-1.60.tar.gz
CPAN: Digest::SHA loaded ok (v5.96)
Warning (usually harmless): 'YAML' not installed, cannot parse '/home/shlomif/.cpan/FTPstats.yml'
Fetching with HTTP::Tiny:
http://www.cpan.org/authors/id/P/PE/PETDANCE/CHECKSUMS
Checksum for /home/shlomif/.cpan/sources/authors/id/P/PE/PETDANCE/HTML-Tidy-1.60.tar.gz ok
CPAN: Archive::Tar loaded ok (v2.26)
HTML-Tidy-1.60/
HTML-Tidy-1.60/t/
HTML-Tidy-1.60/t/roundtrip.t
HTML-Tidy-1.60/t/parse.t
HTML-Tidy-1.60/t/wordwrap.cfg
HTML-Tidy-1.60/t/segfault-form.t
HTML-Tidy-1.60/t/cfg-for-parse.cfg
HTML-Tidy-1.60/t/perfect.t
HTML-Tidy-1.60/t/unicode-nbsp.t
HTML-Tidy-1.60/t/wordwrap.t
HTML-Tidy-1.60/t/clean.t
HTML-Tidy-1.60/t/simple.t
HTML-Tidy-1.60/t/ignore.t
HTML-Tidy-1.60/t/venus.t
HTML-Tidy-1.60/t/ignore-text.t
HTML-Tidy-1.60/t/illegal-options.t
HTML-Tidy-1.60/t/unicode.t
HTML-Tidy-1.60/t/unicode.html
HTML-Tidy-1.60/t/too-many-titles.t
HTML-Tidy-1.60/t/pod.t
HTML-Tidy-1.60/t/levels.t
HTML-Tidy-1.60/t/version.t
HTML-Tidy-1.60/t/opt-00.t
HTML-Tidy-1.60/t/message.t
HTML-Tidy-1.60/t/venus.html
HTML-Tidy-1.60/t/cfg-for-parse.t
HTML-Tidy-1.60/t/extra-quote.t
HTML-Tidy-1.60/t/00-load.t
HTML-Tidy-1.60/t/venus.cfg
HTML-Tidy-1.60/t/parse-errors.t
HTML-Tidy-1.60/t/pod-coverage.t
HTML-Tidy-1.60/t/clean-crash.t
HTML-Tidy-1.60/perlcriticrc
HTML-Tidy-1.60/bin/
HTML-Tidy-1.60/bin/webtidy
HTML-Tidy-1.60/ppport.h
HTML-Tidy-1.60/Changes
HTML-Tidy-1.60/lib/
HTML-Tidy-1.60/lib/HTML/
HTML-Tidy-1.60/lib/HTML/Tidy.pm
HTML-Tidy-1.60/lib/HTML/Tidy/
HTML-Tidy-1.60/lib/HTML/Tidy/Message.pm
HTML-Tidy-1.60/Makefile.PL
HTML-Tidy-1.60/README.markdown
HTML-Tidy-1.60/MANIFEST
HTML-Tidy-1.60/Tidy.xs
HTML-Tidy-1.60/META.yml
HTML-Tidy-1.60/META.json
'YAML' not installed, will not store persistent state
CPAN: CPAN::Meta::Requirements loaded ok (v2.140)
CPAN: Parse::CPAN::Meta loaded ok (v2.150010)
CPAN: CPAN::Meta loaded ok (v2.150010)
CPAN: Module::CoreList loaded ok (v5.20170920)
Configuring P/PE/PETDANCE/HTML-Tidy-1.60.tar.gz with Makefile.PL
Alien::Tidyp not found. Looking for for tidyp on your system.

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::Tidy
Writing MYMETA.yml and MYMETA.json
  PETDANCE/HTML-Tidy-1.60.tar.gz
  /home/shlomif/apps/perl/bleadperl/bin/perl5.27.4 Makefile.PL -- OK
Running make for P/PE/PETDANCE/HTML-Tidy-1.60.tar.gz
cp lib/HTML/Tidy.pm blib/lib/HTML/Tidy.pm
cp lib/HTML/Tidy/Message.pm blib/lib/HTML/Tidy/Message.pm
Running Mkbootstrap for Tidy ()
chmod 644 "Tidy.bs"
"/home/shlomif/apps/perl/bleadperl/bin/perl5.27.4" -MExtUtils::Command::MM -e 'cp_nonempty' -- Tidy.bs blib/arch/auto/HTML/Tidy/Tidy.bs 644
"/home/shlomif/apps/perl/bleadperl/bin/perl5.27.4" "/home/shlomif/apps/perl/bleadperl/lib/5.27.4/ExtUtils/xsubpp"  -typemap '/home/shlomif/apps/perl/bleadperl/lib/5.27.4/ExtUtils/typemap'  Tidy.xs > Tidy.xsc
mv Tidy.xsc Tidy.c
cc -c  -I. -I/usr/include/tidyp -I/usr/local/include/tidyp -I/usr/include/tidyp -Wall -Wextra -Wformat -Werror=format-security -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O3 -march=native -flto -ffat-lto-objects   -DVERSION=\"1.60\" -DXS_VERSION=\"1.60\" -fPIC "-I/home/shlomif/apps/perl/bleadperl/lib/5.27.4/x86_64-linux/CORE"   Tidy.c
In file included from /usr/include/tidyp/tidyp.h:63:0,
                 from Tidy.xs:5:
/usr/include/tidyp/platform.h:588:0: warning: "__attribute__warn_unused_result__" redefined
 #define __attribute__warn_unused_result__ __attribute__((__warn_unused_result__))
 
In file included from Tidy.xs:2:0:
/home/shlomif/apps/perl/bleadperl/lib/5.27.4/x86_64-linux/CORE/perl.h:3628:0: note: this is the location of the previous definition
 #  define __attribute__warn_unused_result__ __attribute__((warn_unused_result))
 
rm -f blib/arch/auto/HTML/Tidy/Tidy.so
LD_RUN_PATH="/lib/../lib64" cc  -shared -O3 -march=native -flto -ffat-lto-objects -L/usr/local/lib -fstack-protector-strong  Tidy.o  -o blib/arch/auto/HTML/Tidy/Tidy.so  \
   -L/usr/lib -L/usr/local/lib -ltidyp   \
  
/usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so.1 when searching for libgcc_s.so.1
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so.1 when searching for libgcc_s.so.1
chmod 755 blib/arch/auto/HTML/Tidy/Tidy.so
cp bin/webtidy blib/script/webtidy
"/home/shlomif/apps/perl/bleadperl/bin/perl5.27.4" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/webtidy
  PETDANCE/HTML-Tidy-1.60.tar.gz
  /usr/bin/make -- OK
Running make test
"/home/shlomif/apps/perl/bleadperl/bin/perl5.27.4" -MExtUtils::Command::MM -e 'cp_nonempty' -- Tidy.bs blib/arch/auto/HTML/Tidy/Tidy.bs 644
PERL_DL_NONLAZY=1 "/home/shlomif/apps/perl/bleadperl/bin/perl5.27.4" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
# Testing HTML::Tidy 1.60, tidyp 1.04, Perl 5.027004, /home/shlomif/apps/perl/bleadperl/bin/perl5.27.4
t/00-load.t .......... ok
t/cfg-for-parse.t .... ok
t/clean-crash.t ...... ok
Can't locate Test/Exception.pm in @INC (you may need to install the Test::Exception module) (@INC contains: /home/shlomif/.cpan/build/HTML-Tidy-1.60-0/blib/lib /home/shlomif/.cpan/build/HTML-Tidy-1.60-0/blib/arch /home/shlomif/apps/perl/bleadperl/lib/site_perl/5.27.4/x86_64-linux /home/shlomif/apps/perl/bleadperl/lib/site_perl/5.27.4 /home/shlomif/apps/perl/bleadperl/lib/5.27.4/x86_64-linux /home/shlomif/apps/perl/bleadperl/lib/5.27.4) at t/clean.t line 6.
BEGIN failed--compilation aborted at t/clean.t line 6.
t/clean.t ............ 
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
t/extra-quote.t ...... ok
t/ignore-text.t ...... ok
t/ignore.t ........... ok
Can't locate Test/Exception.pm in @INC (you may need to install the Test::Exception module) (@INC contains: /home/shlomif/.cpan/build/HTML-Tidy-1.60-0/blib/lib /home/shlomif/.cpan/build/HTML-Tidy-1.60-0/blib/arch /home/shlomif/apps/perl/bleadperl/lib/site_perl/5.27.4/x86_64-linux /home/shlomif/apps/perl/bleadperl/lib/site_perl/5.27.4 /home/shlomif/apps/perl/bleadperl/lib/5.27.4/x86_64-linux /home/shlomif/apps/perl/bleadperl/lib/5.27.4) at t/illegal-options.t line 6.
BEGIN failed--compilation aborted at t/illegal-options.t line 6.
t/illegal-options.t .. 
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
t/levels.t ........... ok
t/message.t .......... ok
t/opt-00.t ........... ok
Can't locate Test/Exception.pm in @INC (you may need to install the Test::Exception module) (@INC contains: /home/shlomif/.cpan/build/HTML-Tidy-1.60-0/blib/lib /home/shlomif/.cpan/build/HTML-Tidy-1.60-0/blib/arch /home/shlomif/apps/perl/bleadperl/lib/site_perl/5.27.4/x86_64-linux /home/shlomif/apps/perl/bleadperl/lib/site_perl/5.27.4 /home/shlomif/apps/perl/bleadperl/lib/5.27.4/x86_64-linux /home/shlomif/apps/perl/bleadperl/lib/5.27.4) at t/parse-errors.t line 6.
BEGIN failed--compilation aborted at t/parse-errors.t line 6.
t/parse-errors.t ..... 
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
Can't locate Test/Exception.pm in @INC (you may need to install the Test::Exception module) (@INC contains: /home/shlomif/.cpan/build/HTML-Tidy-1.60-0/blib/lib /home/shlomif/.cpan/build/HTML-Tidy-1.60-0/blib/arch /home/shlomif/apps/perl/bleadperl/lib/site_perl/5.27.4/x86_64-linux /home/shlomif/apps/perl/bleadperl/lib/site_perl/5.27.4 /home/shlomif/apps/perl/bleadperl/lib/5.27.4/x86_64-linux /home/shlomif/apps/perl/bleadperl/lib/5.27.4) at t/parse.t line 6.
BEGIN failed--compilation aborted at t/parse.t line 6.
t/parse.t ............ 
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
t/perfect.t .......... ok
t/pod-coverage.t ..... skipped: Test::Pod::Coverage 1.04 required for testing POD coverage
t/pod.t .............. skipped: Test::Pod 1.14 required for testing POD
t/roundtrip.t ........ ok
t/segfault-form.t .... ok
t/simple.t ........... ok
t/too-many-titles.t .. ok
t/unicode-nbsp.t ..... ok
t/unicode.t .......... ok
t/venus.t ............ ok
t/version.t .......... ok
t/wordwrap.t ......... ok

Test Summary Report
-------------------
t/clean.t          (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/illegal-options.t (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/parse-errors.t   (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/parse.t          (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
Files=25, Tests=65,  1 wallclock secs ( 0.07 usr  0.01 sys +  0.85 cusr  0.09 csys =  1.02 CPU)
Result: FAIL
Failed 4/25 test programs. 0/65 subtests failed.
Makefile:1081: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
  PETDANCE/HTML-Tidy-1.60.tar.gz
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports PETDANCE/HTML-Tidy-1.60.tar.gz

It likely is the cause of this travis-CI failure: https://travis-ci.org/shlomif/perl-begin/builds/274286784 .

Please look into fixing it and let me know if I can help in any way.

Installation problems on Snow Leopard

I installed Alien::Tidyp. It just worked. But when I try to install HTML::Tidy I get this error:

Failed test 'use HTML::Tidy;'

at t/00-load.t line 8.

Tried to use 'HTML::Tidy'.

Error: Can't load '/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle' for module HTML::Tidy: dlopen(/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle, 2): Symbol not found: _tidyBufFree

Referenced from: /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle

Expected in: dynamic lookup

at (eval 4) line 2

I compiled perl 5.10.1 with ‘-des -Duseithreads -Dprefix=/usr -Dman3ext=3pm -Duseshrplib -Dotherlibdirs=/System/Library/Perl/Extras/5.10.0 -A define:d_setregid -A define:d_setreuid -A define:d_setrgid -A define:d_setruid’ if that makes any difference.

Here is the full test and perl -V output:

cpan[2]> install HTML::Tidy
Running install for module 'HTML::Tidy'
Running make for P/PE/PETDANCE/HTML-Tidy-1.52.tar.gz
Warning (usually harmless): 'YAML' not installed, will not store persistent state

CPAN.pm: Going to build P/PE/PETDANCE/HTML-Tidy-1.52.tar.gz

Gonna use tidyp via Alien::Tidyp
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -ltidyp
Writing Makefile for HTML::Tidy
Could not read '/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/META.yml'. Falling back to other methods to determine prerequisites
cp lib/HTML/Tidy/Message.pm blib/lib/HTML/Tidy/Message.pm
cp lib/HTML/Tidy.pm blib/lib/HTML/Tidy.pm
/usr/bin/perl /System/Library/Perl/5.10.1/ExtUtils/xsubpp -typemap /System/Library/Perl/5.10.1/ExtUtils/typemap Tidy.xs > Tidy.xsc && mv Tidy.xsc Tidy.c
cc -c -I'/Library/Perl/5.10.1/auto/share/dist/Alien-Tidyp/v1.2.7/include/tidyp' -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -O3 -DVERSION="1.52" -DXS_VERSION="1.52" "-I/System/Library/Perl/5.10.1/darwin-thread-multi-2level/CORE" Tidy.c
In file included from /Library/Perl/5.10.1/auto/share/dist/Alien-Tidyp/v1.2.7/include/tidyp/tidyp.h:63,
from Tidy.xs:5:
/Library/Perl/5.10.1/auto/share/dist/Alien-Tidyp/v1.2.7/include/tidyp/platform.h:588:1: warning: "attribute__warn_unused_result" redefined
In file included from Tidy.xs:2:
/System/Library/Perl/5.10.1/darwin-thread-multi-2level/CORE/perl.h:3224:1: warning: this is the location of the previous definition
Running Mkbootstrap for HTML::Tidy ()
chmod 644 Tidy.bs
rm -f blib/arch/auto/HTML/Tidy/Tidy.bundle
env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector Tidy.o -o blib/arch/auto/HTML/Tidy/Tidy.bundle
\

chmod 755 blib/arch/auto/HTML/Tidy/Tidy.bundle
cp Tidy.bs blib/arch/auto/HTML/Tidy/Tidy.bs
chmod 644 blib/arch/auto/HTML/Tidy/Tidy.bs
cp bin/webtidy blib/script/webtidy
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/webtidy
Manifying blib/man3/HTML::Tidy::Message.3pm
Manifying blib/man3/HTML::Tidy.3pm
PETDANCE/HTML-Tidy-1.52.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/00-load.t .......... 1/2

Failed test 'use HTML::Tidy;'

at t/00-load.t line 8.

Tried to use 'HTML::Tidy'.

Error: Can't load '/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle' for module HTML::Tidy: dlopen(/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle, 2): Symbol not found: _tidyBufFree

Referenced from: /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle

Expected in: dynamic lookup

at (eval 4) line 2

Compilation failed in require at (eval 4) line 2.

BEGIN failed--compilation aborted at (eval 4) line 2.

Looks like you failed 1 test of 2.

t/00-load.t .......... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
t/cfg-for-parse.t .... 1/3

Failed test 'use HTML::Tidy;'

at t/cfg-for-parse.t line 8.

Tried to use 'HTML::Tidy'.

Error: Can't load '/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle' for module HTML::Tidy: dlopen(/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle, 2): Symbol not found: _tidyBufFree

Referenced from: /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle

Expected in: dynamic lookup

at (eval 4) line 2

Compilation failed in require at (eval 4) line 2.

BEGIN failed--compilation aborted at (eval 4) line 2.

Undefined subroutine &HTML::Tidy::_tidy_messages called at /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/lib/HTML/Tidy.pm line 227, line 1.

Looks like you planned 3 tests but ran 2.

Looks like you failed 1 test of 2 run.

Looks like your test exited with 255 just after 2.

t/cfg-for-parse.t .... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 2/3 subtests
t/clean-crash.t ...... 1/3

Failed test 'use HTML::Tidy;'

at t/clean-crash.t line 14.

Tried to use 'HTML::Tidy'.

Error: Can't load '/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle' for module HTML::Tidy: dlopen(/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle, 2): Symbol not found: _tidyBufFree

Referenced from: /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle

Expected in: dynamic lookup

at (eval 4) line 2

Compilation failed in require at (eval 4) line 2.

BEGIN failed--compilation aborted at (eval 4) line 2.

Bareword "TIDY_INFO" not allowed while "strict subs" in use at t/clean-crash.t line 23.
Execution of t/clean-crash.t aborted due to compilation errors.

Looks like you planned 3 tests but ran 1.

Looks like you failed 1 test of 1 run.

Looks like your test exited with 255 just after 1.

t/clean-crash.t ...... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 3/3 subtests
t/extra-quote.t ...... 1/4

Failed test 'use HTML::Tidy;'

at t/extra-quote.t line 11.

Tried to use 'HTML::Tidy'.

Error: Can't load '/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle' for module HTML::Tidy: dlopen(/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle, 2): Symbol not found: _tidyBufFree

Referenced from: /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle

Expected in: dynamic lookup

at (eval 4) line 2

Compilation failed in require at (eval 4) line 2.

BEGIN failed--compilation aborted at (eval 4) line 2.

Undefined subroutine &HTML::Tidy::_tidy_messages called at /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/lib/HTML/Tidy.pm line 227, line 1.

Looks like you planned 4 tests but ran 2.

Looks like you failed 1 test of 2 run.

Looks like your test exited with 255 just after 2.

t/extra-quote.t ...... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 3/4 subtests
t/ignore-text.t ...... 1/3

Failed test 'use HTML::Tidy;'

at t/ignore-text.t line 8.

Tried to use 'HTML::Tidy'.

Error: Can't load '/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle' for module HTML::Tidy: dlopen(/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle, 2): Symbol not found: _tidyBufFree

Referenced from: /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle

Expected in: dynamic lookup

at (eval 4) line 2

Compilation failed in require at (eval 4) line 2.

BEGIN failed--compilation aborted at (eval 4) line 2.

Undefined subroutine &HTML::Tidy::_tidy_messages called at /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/lib/HTML/Tidy.pm line 227, line 1.

Looks like you planned 3 tests but ran 2.

Looks like you failed 1 test of 2 run.

Looks like your test exited with 255 just after 2.

t/ignore-text.t ...... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 2/3 subtests
t/ignore.t ........... 1/7

Failed test 'use HTML::Tidy;'

at t/ignore.t line 7.

Tried to use 'HTML::Tidy'.

Error: Can't load '/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle' for module HTML::Tidy: dlopen(/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle, 2): Symbol not found: _tidyBufFree

Referenced from: /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle

Expected in: dynamic lookup

at (eval 4) line 2

Compilation failed in require at (eval 4) line 2.

BEGIN failed--compilation aborted at (eval 4) line 2.

Bareword "TIDY_ERROR" not allowed while "strict subs" in use at t/ignore.t line 30.
Bareword "TIDY_WARNING" not allowed while "strict subs" in use at t/ignore.t line 43.
Bareword "TIDY_WARNING" not allowed while "strict subs" in use at t/ignore.t line 55.
Execution of t/ignore.t aborted due to compilation errors.

Looks like you planned 7 tests but ran 1.

Looks like you failed 1 test of 1 run.

Looks like your test exited with 255 just after 1.

t/ignore.t ........... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 7/7 subtests
t/levels.t ........... 1/3

Failed test 'use HTML::Tidy;'

at t/levels.t line 8.

Tried to use 'HTML::Tidy'.

Error: Can't load '/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle' for module HTML::Tidy: dlopen(/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle, 2): Symbol not found: _tidyBufFree

Referenced from: /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle

Expected in: dynamic lookup

at (eval 4) line 2

Compilation failed in require at (eval 4) line 2.

BEGIN failed--compilation aborted at (eval 4) line 2.

Undefined subroutine &HTML::Tidy::_tidy_messages called at /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/lib/HTML/Tidy.pm line 227, line 64.

Looks like you planned 3 tests but ran 2.

Looks like you failed 1 test of 2 run.

Looks like your test exited with 255 just after 2.

t/levels.t ........... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 2/3 subtests
t/message.t .......... 1/16

Failed test 'use HTML::Tidy;'

at t/message.t line 8.

Tried to use 'HTML::Tidy'.

Error: Can't load '/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle' for module HTML::Tidy: dlopen(/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle, 2): Symbol not found: _tidyBufFree

Referenced from: /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle

Expected in: dynamic lookup

at (eval 4) line 2

Compilation failed in require at (eval 4) line 2.

BEGIN failed--compilation aborted at (eval 4) line 2.

Bareword "TIDY_ERROR" not allowed while "strict subs" in use at t/message.t line 11.
Bareword "TIDY_ERROR" not allowed while "strict subs" in use at t/message.t line 15.
Bareword "TIDY_WARNING" not allowed while "strict subs" in use at t/message.t line 27.
Bareword "TIDY_WARNING" not allowed while "strict subs" in use at t/message.t line 30.
Execution of t/message.t aborted due to compilation errors.

Looks like you planned 16 tests but ran 2.

Looks like you failed 1 test of 2 run.

Looks like your test exited with 255 just after 2.

t/message.t .......... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 15/16 subtests
t/opt-00.t ........... 1/2

Failed test 'use HTML::Tidy;'

at t/opt-00.t line 9.

Tried to use 'HTML::Tidy'.

Error: Can't load '/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle' for module HTML::Tidy: dlopen(/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle, 2): Symbol not found: _tidyBufFree

Referenced from: /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle

Expected in: dynamic lookup

at (eval 4) line 2

Compilation failed in require at (eval 4) line 2.

BEGIN failed--compilation aborted at (eval 4) line 2.

Undefined subroutine &HTML::Tidy::_tidy_clean called at /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/lib/HTML/Tidy.pm line 316.

Looks like you planned 2 tests but ran 1.

Looks like you failed 1 test of 1 run.

Looks like your test exited with 255 just after 1.

t/opt-00.t ........... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 2/2 subtests
t/perfect.t .......... 1/3

Failed test 'use HTML::Tidy;'

at t/perfect.t line 7.

Tried to use 'HTML::Tidy'.

Error: Can't load '/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle' for module HTML::Tidy: dlopen(/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle, 2): Symbol not found: _tidyBufFree

Referenced from: /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle

Expected in: dynamic lookup

at (eval 4) line 2

Compilation failed in require at (eval 4) line 2.

BEGIN failed--compilation aborted at (eval 4) line 2.

Bareword "TIDY_INFO" not allowed while "strict subs" in use at t/perfect.t line 16.
Execution of t/perfect.t aborted due to compilation errors.

Looks like you planned 3 tests but ran 1.

Looks like you failed 1 test of 1 run.

Looks like your test exited with 255 just after 1.

t/perfect.t .......... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 3/3 subtests
t/pod-coverage.t ..... ok
t/pod.t .............. ok
t/roundtrip.t ........ 1/4

Failed test 'use HTML::Tidy;'

at t/roundtrip.t line 8.

Tried to use 'HTML::Tidy'.

Error: Can't load '/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle' for module HTML::Tidy: dlopen(/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle, 2): Symbol not found: _tidyBufFree

Referenced from: /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle

Expected in: dynamic lookup

at (eval 4) line 2

Compilation failed in require at (eval 4) line 2.

BEGIN failed--compilation aborted at (eval 4) line 2.

Bareword "TIDY_INFO" not allowed while "strict subs" in use at t/roundtrip.t line 14.
Bareword "TIDY_INFO" not allowed while "strict subs" in use at t/roundtrip.t line 23.
Execution of t/roundtrip.t aborted due to compilation errors.

Looks like you planned 4 tests but ran 1.

Looks like you failed 1 test of 1 run.

Looks like your test exited with 255 just after 1.

t/roundtrip.t ........ Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 4/4 subtests
t/segfault-form.t .... Can't load '/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle' for module HTML::Tidy: dlopen(/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle, 2): Symbol not found: _tidyBufFree
Referenced from: /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle
Expected in: dynamic lookup
at t/segfault-form.t line 7
Compilation failed in require at t/segfault-form.t line 7.
BEGIN failed--compilation aborted at t/segfault-form.t line 7.

Looks like your test exited with 2 before it could output anything.

t/segfault-form.t .... Dubious, test returned 2 (wstat 512, 0x200)
Failed 3/3 subtests
t/simple.t ........... 1/4

Failed test 'use HTML::Tidy;'

at t/simple.t line 9.

Tried to use 'HTML::Tidy'.

Error: Can't load '/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle' for module HTML::Tidy: dlopen(/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle, 2): Symbol not found: _tidyBufFree

Referenced from: /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle

Expected in: dynamic lookup

at (eval 4) line 2

Compilation failed in require at (eval 4) line 2.

BEGIN failed--compilation aborted at (eval 4) line 2.

Bareword "TIDY_INFO" not allowed while "strict subs" in use at t/simple.t line 17.
Execution of t/simple.t aborted due to compilation errors.

Looks like you planned 4 tests but ran 1.

Looks like you failed 1 test of 1 run.

Looks like your test exited with 255 just after 1.

t/simple.t ........... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 4/4 subtests
t/too-many-titles.t .. 1/3

Failed test 'use HTML::Tidy;'

at t/too-many-titles.t line 8.

Tried to use 'HTML::Tidy'.

Error: Can't load '/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle' for module HTML::Tidy: dlopen(/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle, 2): Symbol not found: _tidyBufFree

Referenced from: /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle

Expected in: dynamic lookup

at (eval 4) line 2

Compilation failed in require at (eval 4) line 2.

BEGIN failed--compilation aborted at (eval 4) line 2.

Bareword "TIDY_INFO" not allowed while "strict subs" in use at t/too-many-titles.t line 22.
Execution of t/too-many-titles.t aborted due to compilation errors.

Looks like you planned 3 tests but ran 1.

Looks like you failed 1 test of 1 run.

Looks like your test exited with 255 just after 1.

t/too-many-titles.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 3/3 subtests
t/unicode.t .......... 1/7

Failed test 'use HTML::Tidy;'

at t/unicode.t line 10.

Tried to use 'HTML::Tidy'.

Error: Can't load '/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle' for module HTML::Tidy: dlopen(/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle, 2): Symbol not found: _tidyBufFree

Referenced from: /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle

Expected in: dynamic lookup

at (eval 4) line 2

Compilation failed in require at (eval 4) line 2.

BEGIN failed--compilation aborted at (eval 4) line 2.

Bareword "TIDY_INFO" not allowed while "strict subs" in use at t/unicode.t line 15.
Execution of t/unicode.t aborted due to compilation errors.

Looks like you planned 7 tests but ran 1.

Looks like you failed 1 test of 1 run.

Looks like your test exited with 255 just after 1.

t/unicode.t .......... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 7/7 subtests
t/venus.t ............ 1/3

Failed test 'use HTML::Tidy;'

at t/venus.t line 9.

Tried to use 'HTML::Tidy'.

Error: Can't load '/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle' for module HTML::Tidy: dlopen(/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle, 2): Symbol not found: _tidyBufFree

Referenced from: /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle

Expected in: dynamic lookup

at (eval 4) line 2

Compilation failed in require at (eval 4) line 2.

BEGIN failed--compilation aborted at (eval 4) line 2.

Undefined subroutine &HTML::Tidy::_tidy_clean called at /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/lib/HTML/Tidy.pm line 316.

Looks like you planned 3 tests but ran 2.

Looks like you failed 1 test of 2 run.

Looks like your test exited with 255 just after 2.

t/venus.t ............ Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 2/3 subtests
t/version.t .......... 1/3

Failed test 'use HTML::Tidy;'

at t/version.t line 9.

Tried to use 'HTML::Tidy'.

Error: Can't load '/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle' for module HTML::Tidy: dlopen(/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle, 2): Symbol not found: _tidyBufFree

Referenced from: /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle

Expected in: dynamic lookup

at (eval 4) line 2

Compilation failed in require at (eval 4) line 2.

BEGIN failed--compilation aborted at (eval 4) line 2.

Undefined subroutine &HTML::Tidy::_tidyp_version called at /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/lib/HTML/Tidy.pm line 353.

Looks like you planned 3 tests but ran 1.

Looks like you failed 1 test of 1 run.

Looks like your test exited with 255 just after 1.

t/version.t .......... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 3/3 subtests
t/wordwrap.t ......... 1/2

Failed test 'use HTML::Tidy;'

at t/wordwrap.t line 8.

Tried to use 'HTML::Tidy'.

Error: Can't load '/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle' for module HTML::Tidy: dlopen(/Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle, 2): Symbol not found: _tidyBufFree

Referenced from: /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/arch/auto/HTML/Tidy/Tidy.bundle

Expected in: dynamic lookup

at (eval 4) line 2

Compilation failed in require at (eval 4) line 2.

BEGIN failed--compilation aborted at (eval 4) line 2.

Undefined subroutine &HTML::Tidy::_tidy_clean called at /Users/sprout/.cpan/build/HTML-Tidy-1.52-Tl_1Qk/blib/lib/HTML/Tidy.pm line 316.

Looks like you planned 2 tests but ran 1.

Looks like you failed 1 test of 1 run.

Looks like your test exited with 255 just after 1.

t/wordwrap.t ......... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 2/2 subtests

Test Summary Report

t/00-load.t (Wstat: 256 Tests: 2 Failed: 1)
Failed test: 1
Non-zero exit status: 1
t/cfg-for-parse.t (Wstat: 65280 Tests: 2 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 3 tests but ran 2.
t/clean-crash.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 3 tests but ran 1.
t/extra-quote.t (Wstat: 65280 Tests: 2 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 4 tests but ran 2.
t/ignore-text.t (Wstat: 65280 Tests: 2 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 3 tests but ran 2.
t/ignore.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 7 tests but ran 1.
t/levels.t (Wstat: 65280 Tests: 2 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 3 tests but ran 2.
t/message.t (Wstat: 65280 Tests: 2 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 16 tests but ran 2.
t/opt-00.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 2 tests but ran 1.
t/perfect.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 3 tests but ran 1.
t/roundtrip.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 4 tests but ran 1.
t/segfault-form.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 3 tests but ran 0.
t/simple.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 4 tests but ran 1.
t/too-many-titles.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 3 tests but ran 1.
t/unicode.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 7 tests but ran 1.
t/venus.t (Wstat: 65280 Tests: 2 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 3 tests but ran 2.
t/version.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 3 tests but ran 1.
t/wordwrap.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 2 tests but ran 1.
Files=20, Tests=29, 2 wallclock secs ( 0.12 usr 0.09 sys + 1.20 cusr 0.22 csys = 1.63 CPU)
Result: FAIL
Failed 18/20 test programs. 17/29 subtests failed.
make: *** [test_dynamic] Error 255
PETDANCE/HTML-Tidy-1.52.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports PETDANCE/HTML-Tidy-1.52.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:
PETDANCE/HTML-Tidy-1.52.tar.gz : make_test NO

cpan[3]>


Summary of my perl5 (revision 5 version 10 subversion 1) configuration:

Platform:
osname=darwin, osvers=10.0.0, archname=darwin-thread-multi-2level
uname='darwin pint.local 10.0.0 darwin kernel version 10.0.0: fri jul 31 22:47:34 pdt 2009; root:xnu-1456.1.25~1release_i386 i386 '
config_args='-sed -Duseithreads -Dprefix=/usr -Dman3ext=3pm -Duseshrplib -Dotherlibdirs=/System/Library/Perl/Extras/5.10.0 -A define:d_setregid -A define:d_setreuid -A define:d_setrgid -A define:d_setruid'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include',
optimize='-O3',
cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.2.1 (Apple Inc. build 5646)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib
libs=-ldbm -ldl -lm -lutil -lc
perllibs=-ldl -lm -lutil -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, libperl=libperl.dylib
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector'

Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS
USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API
Built under darwin
Compiled at Sep 24 2009 18:10:25
@inc:
/System/Library/Perl/5.10.1/darwin-thread-multi-2level
/System/Library/Perl/5.10.1
/Library/Perl/5.10.1/darwin-thread-multi-2level
/Library/Perl/5.10.1
/Library/Perl/5.10.0/darwin-thread-multi-2level
/Library/Perl/5.10.0
/Library/Perl/5.8.9
/Library/Perl
/Network/Library/Perl/5.10.1/darwin-thread-multi-2level
/Network/Library/Perl/5.10.1
/Network/Library/Perl
/System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.10.0
.

Alien::Tidyp's tidyp is not used if system tidyp is present

The following is a log on a freebsd 10.1 system, where the system's tidyp package is installed. Alien::Tidyp was installed earlier by answering this question:

Tidyp detected, wanna use tidyp already installed on your system? [y ]n

The log:

$ perl5.20.2 Makefile.PL                             
Using tidyp via Alien::Tidyp
Generating a Unix-style Makefile
Writing Makefile for HTML::Tidy
Writing MYMETA.yml and MYMETA.json

$ make
...
cc  -shared  -L/usr/local/lib -fstack-protector Tidy.o  -o blib/arch/auto/HTML/Tidy/Tidy.so       -L/usr/perl5.20.2p/lib/site_perl/5.20.2/auto/share/dist/Alien-Tidyp/v1.4.7/lib -ltidyp         

$ ldd blib/arch/auto/HTML/Tidy/Tidy.so 
blib/arch/auto/HTML/Tidy/Tidy.so:
        libtidyp-1.04.so.0 => /usr/local/lib/libtidyp-1.04.so.0 (0x801603000)
        libc.so.7 => /lib/libc.so.7 (0x80081f000)

So it seems that still the system's tidyp is used, not Alien::Tidyp.

This can be fixed by removing /usr/local/lib from the library search path:

$ cc  -shared   -fstack-protector Tidy.o  -o blib/arch/auto/HTML/Tidy/Tidy.so       -L/usr/perl5.20.2p/lib/site_perl/5.20.2/auto/share/dist/Alien-Tidyp/v1.4.7/lib -ltidyp      
$ ldd blib/arch/auto/HTML/Tidy/Tidy.so       
blib/arch/auto/HTML/Tidy/Tidy.so:
        libc.so.7 => /lib/libc.so.7 (0x80081f000)

Alternatively don't use -L and -l, but just the path the .a file:

$ cc  -shared  -L/usr/local/lib -fstack-protector Tidy.o  -o blib/arch/auto/HTML/Tidy/Tidy.so       /usr/perl5.20.2p/lib/site_perl/5.20.2/auto/share/dist/Alien-Tidyp/v1.4.7/lib/libtidyp.a         
$ ldd blib/arch/auto/HTML/Tidy/Tidy.so       
blib/arch/auto/HTML/Tidy/Tidy.so:
        libc.so.7 => /lib/libc.so.7 (0x80081f000)

(Why I need to use Alien::Tidyp instead of the system tidyp ->
see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199439 . This also explains some of the test failures on freebsd systems, see http://matrix.cpantesters.org/?dist=HTML-Tidy;os=freebsd;reports=1 )

clean.t fails

1..3
ok 1 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
ok 2 - clean() croaks when not given a string or list of strings
not ok 3 - $tidy->clean("") returns empty HTML document
#   Failed test '$tidy->clean("") returns empty HTML document'
#   at t/clean.t line 20.
#          got: '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">

# <html>

# <head>

# <meta name="generator" content="tidyp for Windows (v1.04), see www.w3.org">

# <title></title>

# </head>

# <body>

# </body>

# </html>

# '
#     expected: '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
# <html>
# <head>
# <meta name="generator" content="tidyp for Linux (v1.02), see www.w3.org">
# <title></title>
# </head>
# <body>
# </body>
# </html>
# '
# Looks like you failed 1 test of 3.

HTML::Tidy emits many "Use of uninitialized value" warning

When I run the following HTML::Tidy test program on the http://perl-begin.org/ sources, I get many warnings:

#!/usr/bin/perl

use strict;
use warnings;

use Test::More tests => 1;

use HTML::Tidy;
use File::Find::Object::Rule;
use IO::All;

my $tidy = HTML::Tidy->new({ output_xhtml => 1, });
$tidy->ignore( type => TIDY_WARNING, type => TIDY_INFO );

my $error_count = 0;

for my $fn (File::Find::Object::Rule->file()->name(qr/\.x?html\z/)->in("./dest"))
{
    $tidy->parse( $fn, (scalar io->file($fn)->slurp()));

    for my $message ( $tidy->messages ) {
        $error_count++;
        diag( $message->as_string);
    }
}

# TEST
is ($error_count, 0, "No errors");

The warnings are those:

Use of uninitialized value in subroutine entry at /usr/lib/perl5/vendor_perl/5.16.0/x86_64-linux-thread-multi/HTML/Tidy.pm line 231.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/vendor_perl/5.16.0/x86_64-linux-thread-multi/HTML/Tidy.pm line 231.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/vendor_perl/5.16.0/x86_64-linux-thread-multi/HTML/Tidy.pm line 231.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/vendor_perl/5.16.0/x86_64-linux-thread-multi/HTML/Tidy.pm line 231.

As you can see I am using perl-5.16.0 and perl-HTML-Tidy-1.540.0-3.mga3 .

Please look into silencing them.

Regards,

-- Shlomi Fish

Typo in the synopsis

Hi,

there's a typo in the synopsis:

$tidy->ignore( type => TIDY_WARNING, typed => TIDY_INFO );

"typed" should be "type". Please correct it.

Regards,

-- Shlomi Fish

Stopping: 'install' failed for 'HTML::Tidy'.

OS: Windows 10 Pro
Distribution: Strawberry Perl

Note:
Alien::Tidyp is up to date (v1.4.7).

Error:

Running make test
"C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonempty -- Tidy.bs blib\arch\auto\HTML\Tidy\Tidy.bs 644
"C:\Strawberry\perl\bin\perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef _Test::Harness::Switches; test_harness(0, 'blib\lib', 'blib\arch')" t/_.t
t/00-load.t .......... # Testing HTML::Tidy 1.56, Perl 5.024000; tidyp 1.04
t/00-load.t .......... ok
t/cfg-for-parse.t .... ok
t/clean-crash.t ...... ok
t/extra-quote.t ...... ok
t/ignore-text.t ...... ok
t/ignore.t ........... ok
t/levels.t ........... ok
t/message.t .......... ok
t/opt-00.t ........... ok
t/perfect.t .......... ok
t/pod-coverage.t ..... skipped: Test::Pod::Coverage 1.04 required for testing POD coverage
t/pod.t .............. ok
t/roundtrip.t ........ ok
t/segfault-form.t .... ok
t/simple.t ........... ok
t/too-many-titles.t .. ok
t/unicode-nbsp.t .....
# Failed test 'Perl chars OK'

t/unicode-nbsp.t ..... 1/2 #   at t/unicode-nbsp.t line 19.
# got: '&nbsp;
# '
# expected: '&nbsp;
# '
# Failed test 'Byte string OK'
# at t/unicode-nbsp.t line 20.
# got: '&nbsp;
# '
# expected: '&nbsp;
# '
# Looks like you failed 2 tests of 2.

t/unicode-nbsp.t ..... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests
t/unicode.t .......... ok
t/venus.t ............ ok
t/version.t .......... ok
t/wordwrap.t ......... ok
## Test Summary Report

t/unicode-nbsp.t   (Wstat: 512 Tests: 2 Failed: 2)
  Failed tests:  1-2
  Non-zero exit status: 2
Files=21, Tests=68,  3 wallclock secs ( 0.19 usr +  0.05 sys =  0.23 CPU)
Result: FAIL
Failed 1/21 test programs. 2/68 subtests failed.
dmake.exe:  Error code 255, while making 'test_dynamic'
  PETDANCE/HTML-Tidy-1.56.tar.gz
  C:\STRAWB~1\c\bin\dmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports PETDANCE/HTML-Tidy-1.56.tar.gz
Stopping: 'install' failed for 'HTML::Tidy'.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.