Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349201 - dev-tex/chktex[doc] - Error: No such image type ''.
Summary: dev-tex/chktex[doc] - Error: No such image type ''.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
: 555406 565738 568384 (view as bug list)
Depends on: 603924
Blocks:
  Show dependency tree
 
Reported: 2010-12-20 15:58 UTC by Sebastian Luther (few)
Modified: 2019-10-13 02:40 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,13.25 KB, text/plain)
2010-12-20 15:59 UTC, Sebastian Luther (few)
Details
build.log (dev-tex:chktex-1.6.4:20101220-151859.log,8.64 KB, text/plain)
2010-12-20 15:59 UTC, Sebastian Luther (few)
Details
l2hconf.pm (l2hconf.pm,38.70 KB, text/plain)
2011-01-30 09:21 UTC, Sebastian Luther (few)
Details
build-1.7.1.log (build-1.7.1.log,10.81 KB, text/x-log)
2013-12-29 14:49 UTC, Berthold Humkamp
Details
build-1.7.2.log (build-1.7.2.log,10.88 KB, text/x-log)
2013-12-29 14:50 UTC, Berthold Humkamp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Luther (few) 2010-12-20 15:58:52 UTC
# 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
Comment 1 Sebastian Luther (few) 2010-12-20 15:59:11 UTC
Created attachment 257622 [details]
emerge --info
Comment 2 Sebastian Luther (few) 2010-12-20 15:59:27 UTC
Created attachment 257623 [details]
build.log
Comment 3 Alexis Ballier gentoo-dev 2011-01-05 20:45:11 UTC
'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.
Comment 4 Sebastian Luther (few) 2011-01-06 04:58:39 UTC
# emerge -pvq latex2html
[ebuild   R   ] dev-tex/latex2html-2008  USE="gif png"

gif and png were already enabled.
Comment 5 Alexis Ballier gentoo-dev 2011-01-06 15:15:20 UTC
please attach the file:
/usr/lib/latex2html/l2hconf.pm 

then, if this still fails for you
Comment 6 Alexis Ballier gentoo-dev 2011-01-29 19:25:13 UTC
(In reply to comment #5)
> please attach the file:
> /usr/lib/latex2html/l2hconf.pm 
> 
> then, if this still fails for you
> 

^^
Comment 7 Sebastian Luther (few) 2011-01-30 09:21:54 UTC
Created attachment 261075 [details]
l2hconf.pm
Comment 8 Sebastian Luther (few) 2011-01-30 09:22:19 UTC
(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.
Comment 9 Alexis Ballier gentoo-dev 2011-02-09 19:43:16 UTC
seems like bug #214848
could you please check if this is the case ?

(or bug #353843)
Comment 10 Berthold Humkamp 2013-12-29 14:47:28 UTC
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.
Comment 11 Berthold Humkamp 2013-12-29 14:49:43 UTC
Created attachment 366454 [details]
build-1.7.1.log
Comment 12 Berthold Humkamp 2013-12-29 14:50:56 UTC
Created attachment 366456 [details]
build-1.7.2.log
Comment 13 James Ausmus 2015-08-03 22:02:22 UTC
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.
Comment 14 Patrice Clement gentoo-dev 2015-10-05 08:42:09 UTC
*** Bug 555406 has been marked as a duplicate of this bug. ***
Comment 15 Patrice Clement gentoo-dev 2015-10-05 09:09:32 UTC
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.
Comment 16 Andrey Grozin gentoo-dev 2015-12-19 10:49:57 UTC
*** Bug 565738 has been marked as a duplicate of this bug. ***
Comment 17 Andrey Grozin gentoo-dev 2015-12-19 11:02:13 UTC
Same here with 1.7.5
Comment 18 Andrey Grozin gentoo-dev 2015-12-19 11:06:16 UTC
*** Bug 568384 has been marked as a duplicate of this bug. ***
Comment 19 Juergen Rose 2015-12-20 10:16:22 UTC
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.
Comment 20 Carter Smithhart 2018-01-21 04:44:51 UTC
Using USE="-doc" with chktex worked for me to get around this one.
Comment 21 Andreas K. Hüttel archtester gentoo-dev 2019-06-05 12:03:03 UTC
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' ."
Comment 22 Andreas K. Hüttel archtester gentoo-dev 2019-10-13 02:40:22 UTC
This should be fixed now.