latex2html seems to somehow expect perl 5.8.6, after i upgraded perl it dies with an error saying it cant find perl5.8.6 ... then when i symlinked perl5.8.6->perl for a quick test, i get the error below. urgs, this is a nice little tool i dont want to miss, i dont have any perl knowledge whatsoever though so i cant really fix it myself (although i assume it would be a trivial thing). any takers? anything i could provide to make fixing easier? (i'm just going back to perl 5.8.7 to see if that works) LATEX2HTML: psp_doc.html.latex2html This is LaTeX2HTML Version 2002-2-1 (1.71) by Nikos Drakos, Computer Based Learning Unit, University of Leeds. Revised and extended by: Marcus Hennecke, Ross Moore, Herb Swan and others ...producing markup for HTML version 4.0 with table extensions Extension: loading /usr/lib/latex2html/versions/latin1.pl HTML version: loading /usr/lib/latex2html/versions/html4_0.pl Extension: loading /usr/lib/latex2html/versions/table.plUndefined subroutine &main::undefined called at /usr/lib/latex2html/versions/table.pl line 94. Compilation failed in require at /usr/lib/latex2html/latex2html.pl line 11012. Compilation failed in require at /usr/bin/latex2html line 39.
mmh i downgraded to perl5.8.7, run perl-cleaner, reemerged latex2html - no go, same problem :( now if someone could point me to the old 5.8.6 ebuild that would be nice, so i can check if its actually perl or my specific system which is the problem :/
ok one more, its becoming weird and confusing :=P i grabbed the old 5.8.6 ebuild and patches from cvs and emerged 5.8.6, perl-cleaner, and emerge latex2html again - and it STILL does not work. thats completely strange coz i have used the thing fine before with exactly this config. fortunatly though with the help of someone else who knows perl i could track down the problem to a single line in /usr/lib/latex2html.pl, and also could fix it trivially. line 94 is originally if (undefined (&convert_length)) { sub convert_length {&convert_length_table(@_)} } what it complains about is the "undefined" function not beeing defined. changing this into "!defined" fixes it. is this some kind of perl feature that was silently removed? or is some dependend perl module that provides it missing in the latex2html ebuild? that said, i'll now go back to the latest stable 5.8.8 and see if latex2html works there with the above fix
last one... a) typo, the file in question was /usr/lib/latex2html/versions/table.pl b) it works in 5.8.8 aswell with the above fix, craps out without it.
Confirm that groepaz's analysis is correct. Working on a patch and updated ebuild.
Created attachment 112015 [details] The updated ebuild that applies the no undefined perl function patch This ebuild applies a new patch that should fix the call to the deprecated "undefined" function from the latex2html table.pl script.
Created attachment 112016 [details, diff] This patch fixes a call to a deprecated perl function in table.pl This patch will fix the breakage that occurs in r1 from the call in versions/table.pl. Changes from deprecated if( undefined(...)) to if(!defined(...))
Created attachment 112018 [details] Sample .tex file found on the internet to use for testing A file that can be used to test latex2html.
Also latex2html is stable on amd64 with perl 5.8.8.
Successful build on amd64 as well here
Builds and successful minimal test with dev-tex/latex2html-2002.2.1_pre20041025-r1.
applied, thanks