Bug 72521 - latex2html/netpbm-10.24 does not work
Summary: latex2html/netpbm-10.24 does not work
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dirk Meyer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-11 17:10 UTC by mrspock
Modified: 2004-11-14 19:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mrspock 2004-10-11 17:10:27 UTC
	latex2html does not work with netpbm-10.24

Fix: 

I think there is something wrong with netpbm-10.24,
	it seems to remove the image files before it processes
	them.   I compiled netpbm-9.24 and and it worked fine
	with latex2html.
How-To-Repeat: 	Install:
		latex2html-2002.2.1_3
		netpbm-10.24
		teTeX-2.0.2_5   
	Save the lines:
		\documentclass{article}
		\begin{document} $sin(x)$  \end{document}
	in a file, and call it:  "test.tex"
	Process the file with latex2html:
		latex2html test.tex
	you will receive an error, the images that the file generates
	cannot be processed.  Try then with:
		latex2html -notransparent test.tex

	Now, if you can, try installing netpbm-9.24,
	latex2html  will work perfectly.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2004-10-13 17:45:42 UTC
Responsible Changed
From-To: freebsd-ports-bugs->dinoex

Over to netpbm maintainer for consideration.
Comment 2 Dirk Meyer freebsd_committer freebsd_triage 2004-11-14 06:38:10 UTC
State Changed
From-To: open->analyzed

I can reporduce produce the problem now, 
but found no quick fix. 
Author mailed about this problem. 

Core was generated by `pnmtopng'. 
Program terminated with signal 10, Bus error. 
Reading symbols from /usr/local/lib/libnetpbm.so.1...done. 
Reading symbols from /usr/local/lib/libpng.so.5...done. 
Reading symbols from /usr/lib/libz.so.2...done. 
Reading symbols from /usr/lib/libm.so.2...done. 
Reading symbols from /usr/lib/libc.so.4...done. 
Reading symbols from /usr/libexec/ld-elf.so.1...done. 
#0  0x80493a7 in closestColorInPalette (targetColor={r = 255, g = 255, b = 255}, palette_pnm=0xbfbfe77c,  
paletteSize=15872, bestIndexP=0xbfbfdbcc, bestMatchP=0xbfbfdbc8) at pnmtopng.c:167 
167             unsigned int const dist =  
(gdb) bt 
#0  0x80493a7 in closestColorInPalette (targetColor={r = 255, g = 255, b = 255}, palette_pnm=0xbfbfe77c,  
paletteSize=15872, bestIndexP=0xbfbfdbcc, bestMatchP=0xbfbfdbc8) at pnmtopng.c:167 
#1  0x804add3 in makeOneColorTransparentInPalette (transColor={r = 255, g = 255, b = 255}, exact=0,  
palette_pnm=0xbfbfe77c, paletteSize=15872, trans_pnm=0xbfbfe078, transSizeP=0xbfbfdf74) at pnmtopng.c:1002 
#2  0x804b596 in computeColorMap (ifP=0x281bad80, imagepos=15, cols=565, rows=282, maxval=255, format=20534,  
force=0, pfP=0x0, alpha=0, transparent=1, transcolor={r = 255, g = 255, b = 255}, transexact=0, background=-1,  
backcolor={r = 671569952, g = 3217027908, b = 6}, alpha_mask=0x0, pnm_meaningful_bits=8,  
palette_pnm=0xbfbfe77c, paletteSizeP=0xbfbfe478, trans_pnm=0xbfbfe078, transSizeP=0xbfbfdf74,  
backgroundIndexP=0xbfbfdf68, noColormapReasonP=0xbfbfdd48) at pnmtopng.c:1366 
#3  0x804c06b in convertpnm (ifp=0x281bad80, afp=0x0, pfp=0x0, tfp=0x0, gamma=-1, interlace=0, downscale=0,  
transparent_opt=1, transstring=0xbfbff72d "white", alpha_opt=0, alpha_file=0x281057e0 "202003",  
background=-1,  
backstring=0x8050b0c "0M021(°217a(R220004bb220004br220004b¤$b(222220004b¢220004bxã013(Â220004bX216a(PVb(ò220004b¼221a(022221004b"221004b2221004b", hist=0, chroma={wx = -1, wy = -1,  
rx = -1, ry = -1, gx = -1, gy = -1, bx = -1, by = -1}, phys_x=-1, phys_y=-1, phys_unit=-1, text=0, ztxt=0,  
text_file=0x280569c1 "[201Ãç;001", mtime=0, date_string=0x1000001 <Address 0x1000001 out of bounds>,  
time_string=0x28072040 "", filterSet=0, force=0, zlib_compression={level = -1, mem_level = -1077938968,  
strategy = 671434424, window_bits = 671433756, method = 109760260, buffer_size = 671555648}) 
at pnmtopng.c:1755 
#4  0x804de42 in main (argc=4, argv=0xbfbff5a8) at pnmtopng.c:2392
Comment 3 Dirk Meyer freebsd_committer freebsd_triage 2004-11-14 19:49:57 UTC
State Changed
From-To: analyzed->closed

Fix is commited