# emerge -p chktex latex2html [ebuild R ] dev-tex/chktex-1.6.4 USE="doc* -debug" 0 kB [ebuild R ] dev-tex/latex2html-2008 USE="gif png" 0 kB [...] rm -r HTML rm: cannot remove `HTML': No such file or directory make: [html] Error 1 (ignored) mkdir HTML chmod u+x MakeHTML ./MakeHTML ChkTeX.tex > HTML/ChkTeX.tex cd HTML; /usr/bin/latex2html ChkTeX.tex defined(%hash) is deprecated at /usr/lib64/latex2html/latex2html.pl line 492. (Maybe you should just omit the defined()?) defined(%hash) is deprecated at /usr/lib64/latex2html/latex2html.pl line 2064. (Maybe you should just omit the defined()?) defined(%hash) is deprecated at /usr/lib64/latex2html/latex2html.pl line 9065. (Maybe you should just omit the defined()?) $* is no longer supported at /usr/lib64/latex2html/latex2html.pl line 10566. Error: No such image type ''. This installation supports (first is default): Compilation failed in require at /usr/bin/latex2html line 39. make: *** [html] Error 2 emake failed
Created attachment 257622 [details] emerge --info
Created attachment 257623 [details] build.log
'emerge -pv latex2html' please also, it is likely that you installed latex2html with USE=-gif -png, could you please try to enable one of these and test chktex[doc] again ? thanks.
# emerge -pvq latex2html [ebuild R ] dev-tex/latex2html-2008 USE="gif png" gif and png were already enabled.
please attach the file: /usr/lib/latex2html/l2hconf.pm then, if this still fails for you
(In reply to comment #5) > please attach the file: > /usr/lib/latex2html/l2hconf.pm > > then, if this still fails for you > ^^
Created attachment 261075 [details] l2hconf.pm
(In reply to comment #6) > (In reply to comment #5) > > please attach the file: > > /usr/lib/latex2html/l2hconf.pm > > > > then, if this still fails for you > > > > ^^ > Sorry, missed that.
seems like bug #214848 could you please check if this is the case ? (or bug #353843)
I've got the same problem with chktex-1.7.1 and chktex-1.7.2. With USE="-doc" all is ok. See build-1.7.1.log and build-1.7.2.log.
Created attachment 366454 [details] build-1.7.1.log
Created attachment 366456 [details] build-1.7.2.log
Same problem here with dev-tex/chktex-1.7.4, error message boiling down to: "Can't use 'defined(%hash)' (Maybe you should just omit the defined()?) at /usr/lib64/latex2html.pl line 489. Compilation failed in require at /usr/bin/latex2html line 39." USE="-doc" emerge chktex works around the problem.
*** Bug 555406 has been marked as a duplicate of this bug. ***
To begin with, the problem is stemming from latex2html as you might have guessed. I haven't worked out what the problem actually is but I can ascertain that latex2html is a tragedy from a software engineering point of view. It weighs out about 17k lines and is packed into one single file. Who ships that kind of stuff nowadays? Anyway. So let's dive right in. /usr/bin/latex2html is a wrapper around the actual meat of the program, yet another Perl script, which is located in this directory on my system: /usr/lib64/latex2html, and called, latex2html.pl. # ls -l /usr/lib64/latex2html/latex2html.pl -rw-r--r-- 1 root root 593208 Oct 5 08:24 /usr/lib64/latex2html/latex2html.pl No matter which option I give the wrapper, or the actual script, both fail on me miserably. See: # latex2html defined(%hash) is deprecated at /usr/lib64/latex2html/latex2html.pl line 492. (Maybe you should just omit the defined()?) defined(%hash) is deprecated at /usr/lib64/latex2html/latex2html.pl line 2064. (Maybe you should just omit the defined()?) defined(%hash) is deprecated at /usr/lib64/latex2html/latex2html.pl line 9065. (Maybe you should just omit the defined()?) $* is no longer supported at /usr/lib64/latex2html/latex2html.pl line 10566. $* is no longer supported at /usr/lib64/latex2html/latex2html.pl line 10578. $* is no longer supported at /usr/lib64/latex2html/latex2html.pl line 11393. $* is no longer supported at /usr/lib64/latex2html/latex2html.pl line 11404. $* is no longer supported at /usr/lib64/latex2html/latex2html.pl line 13121. $* is no longer supported at /usr/lib64/latex2html/latex2html.pl line 13123. Error: No files to process! Compilation failed in require at /usr/bin/latex2html line 39. # latex2html --help defined(%hash) is deprecated at /usr/lib64/latex2html/latex2html.pl line 492. (Maybe you should just omit the defined()?) defined(%hash) is deprecated at /usr/lib64/latex2html/latex2html.pl line 2064. (Maybe you should just omit the defined()?) defined(%hash) is deprecated at /usr/lib64/latex2html/latex2html.pl line 9065. (Maybe you should just omit the defined()?) $* is no longer supported at /usr/lib64/latex2html/latex2html.pl line 10566. $* is no longer supported at /usr/lib64/latex2html/latex2html.pl line 10578. $* is no longer supported at /usr/lib64/latex2html/latex2html.pl line 11393. $* is no longer supported at /usr/lib64/latex2html/latex2html.pl line 11404. $* is no longer supported at /usr/lib64/latex2html/latex2html.pl line 13121. $* is no longer supported at /usr/lib64/latex2html/latex2html.pl line 13123. Error: No such image type ''. This installation supports (first is default): Compilation failed in require at /usr/bin/latex2html line 39. # perl /usr/lib64/latex2html/latex2html.pl Can't locate L2hos.pm in @INC (you may need to install the L2hos module) (@INC contains: /etc/perl /usr/local/lib64/perl5/5.20.2/x86_64-linux /usr/local/lib64/perl5/5.20.2 /usr/lib64/perl5/vendor_perl/5.20.2/x86_64-linux /usr/lib64/perl5/vendor_perl/5.20.2 /usr/local/lib64/perl5 /usr/lib64/perl5/vendor_perl/5.20.1/x86_64-linux /usr/lib64/perl5/vendor_perl/5.20.1 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.20.2/x86_64-linux /usr/lib64/perl5/5.20.2 .) at /usr/lib64/latex2html/latex2html.pl line 73. BEGIN failed--compilation aborted at /usr/lib64/latex2html/latex2html.pl line 73. # cd /usr/lib64/latex2html/ # perl latex2html.pl --help defined(%hash) is deprecated at latex2html.pl line 492. (Maybe you should just omit the defined()?) defined(%hash) is deprecated at latex2html.pl line 2064. (Maybe you should just omit the defined()?) defined(%hash) is deprecated at latex2html.pl line 9065. (Maybe you should just omit the defined()?) $* is no longer supported at latex2html.pl line 10566. $* is no longer supported at latex2html.pl line 10578. $* is no longer supported at latex2html.pl line 11393. $* is no longer supported at latex2html.pl line 11404. $* is no longer supported at latex2html.pl line 13121. $* is no longer supported at latex2html.pl line 13123. Error: No such image type ''. This installation supports (first is default): # perl latex2html.pl -h defined(%hash) is deprecated at latex2html.pl line 492. (Maybe you should just omit the defined()?) defined(%hash) is deprecated at latex2html.pl line 2064. (Maybe you should just omit the defined()?) defined(%hash) is deprecated at latex2html.pl line 9065. (Maybe you should just omit the defined()?) $* is no longer supported at latex2html.pl line 10566. $* is no longer supported at latex2html.pl line 10578. $* is no longer supported at latex2html.pl line 11393. $* is no longer supported at latex2html.pl line 11404. $* is no longer supported at latex2html.pl line 13121. $* is no longer supported at latex2html.pl line 13123. Error: No such image type ''. This installation supports (first is default): Note the error spat out by latex2html is the same reported during the build failure. At this point, I'm wondering whether it is worth my time to investigate the problem further. Is latex2html actually a working software? I doubt it. My best advice would be to disable the doc USE flag and live a happy life.
*** Bug 565738 has been marked as a duplicate of this bug. ***
Same here with 1.7.5
*** Bug 568384 has been marked as a duplicate of this bug. ***
If latex2html is installed with the path comment2 of https://bugs.gentoo.org/show_bug.cgi?id=566516, "chktex" can be emerge with doc USE flag.
Using USE="-doc" with chktex worked for me to get around this one.
You should probably install a less prehistoric version of dev-tex/latex2html. Please try 2015, and if that doesnt help, 2017.2-r2, and report back. [...] > # latex2html > defined(%hash) is deprecated at /usr/lib64/latex2html/latex2html.pl line 492. > (Maybe you should just omit the defined()?) > defined(%hash) is deprecated at /usr/lib64/latex2html/latex2html.pl line > 2064. > (Maybe you should just omit the defined()?) > defined(%hash) is deprecated at /usr/lib64/latex2html/latex2html.pl line > 9065. > (Maybe you should just omit the defined()?) > $* is no longer supported at /usr/lib64/latex2html/latex2html.pl line 10566. > $* is no longer supported at /usr/lib64/latex2html/latex2html.pl line 10578. > $* is no longer supported at /usr/lib64/latex2html/latex2html.pl line 11393. > $* is no longer supported at /usr/lib64/latex2html/latex2html.pl line 11404. > $* is no longer supported at /usr/lib64/latex2html/latex2html.pl line 13121. > $* is no longer supported at /usr/lib64/latex2html/latex2html.pl line 13123. > Error: No files to process! > Compilation failed in require at /usr/bin/latex2html line 39. [...] https://perldoc.perl.org/perldeprecation.html "Before Perl 5.10, setting $* to a true value globally enabled multi-line matching within a string. This relique from the past lost its special meaning in 5.10. Use of this variable will be a fatal error in Perl 5.30, freeing the variable up for a future special meaning. To enable multiline matching one should use the /m regexp modifier (possibly in combination with /s). This can be set on a per match bases, or can be enabled per lexical scope (including a whole file) with use re '/m' ."
This should be fixed now.