When running latex2html, it excludes grraphics that are in eps format. The culprit appears to be the pstoimg.pl script: $ ls -l parallax.eps -rw-r--r-- 1 matthew users 77400 Nov 1 11:57 parallax.eps $ PERL5LIB:/usr/lib/latex2html" perl /usr/lib/latex2html/pstoimg.pl parallax.eps pstoimg.pl V2002-2-1 (Revision 1.19, Perl 5.008006) pstoimg.pl: Processing parallax.eps pstoimg.pl: Error: "/usr/bin/ppmquant 256 < /tmp/p17779.pnm | /usr/bin/pnmtopng > parallax.png" failed: Bad file descriptor Reproducible: Always Steps to Reproduce: 1. create an eps file (I made mine by exporting in eps from inkscape) 2. create a latex document that includes this graphic. (I used lyx to generate one) 3. run latex2html on the .tex file. Actual Results: html was generated, but all figures that were in eps format were excluded Expected Results: eps figures should be converted to a raster format and be visible from html version of document $ emerge info Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.12-gentoo-r10 i686) ================================================================= System uname: 2.6.12-gentoo-r10 i686 Intel(R) Pentium(R) M processor 1700MHz Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer -march=pentium4 -pipe -mno-sse2" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer -march=pentium4 -pipe -mno-sse2" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 7zip X a52 aac aalib accessibility acpi adns aim alsa amarok amr ao aotuv apache2 applet arts asm async atlas audiofile avi bash-completion bdf berkdb bidi bitmap-fonts blender-game bluetooth bonobo bzip2 cairo calendar ccache cdda cddb cdio cdparanoia cdr cegui cg cgi corba cpudetection crypt css cups curl curlwrappers daap dbm dbus dbx devil dga dhcp divx4linux doc dpms dumb-allegro dv dvb dvd dvdr dvdread dxr3 editor eds emacs emboss encode esd ethereal examples exif fam fame fb fbcon ffmpeg fftw flac flash fmod foomaticdb fortran freetds freetts freetype gb gd gdbm gif gimp gimpprint glitz gmail gmtfull gmthigh gmtsuppl gmttria gnome gnome-print gnomedb gnuplot gnutls gphoto2 gpm gps gsl gstreamer gtk gtk2 gtkhtml guile hbci icq id3 ieee1394 imagemagick imlib inifile inkjar ipv6 irmc jabber jack jack-tmpfs java javascript jikes john joystick jpeg jpeg2k junit kcal kde koffice-plugin ladspa lame lcd lcms ldap lesstif libcaca libg++ libvisual libwww live lzo mad maildir matroska mikmod ming mjpeg mmap mmx mmxext mng mod motif mozilla mp3 mp4live mpeg mpeg2 mpeg4 mplayer msn mysql mythtv nas ncurses network nls nptl nsplugin ntlm nvidia offensive ofx ogdi ogg oggvorbis ogre openal openexr opengl oscar oss pam parse-clocks pcmcia pcre pda pdflib perforce perl php physfs pic player plotutils plugin png pnp posix postgres ppds python qt quicktime readline real recode rss samba scanner screen sdl sharedmem shorten sndfile soap sounds sox speech speex spell spl sql sqlite sse sse2 ssh ssl stencil-buffer stream subtitles subversion svg svga svgz tcltk tcpd tetex theora threads tiff timidity transcode truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vcdimager vidix visualization vlm voice vorbis wavelan webdav wifi win32codecs wma123 wmf wxwindows xanim xface xine xml xml2 xmms xosd xpm xv xvid xvmc yahoo yv12 zeo zeroconf zlib zvbi userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Created attachment 71903 [details] file that causes pnmtopng to choke. test convertsion using command "pnmtopng test.pnm > test.png". I get SEGV.
Looks like the problem is pnmtopng choking on the intermediate pnm file - looks like the trouble is with the netpbm package - possibly one of my use flags? I attached a test file that causes the choke, can someone test and see if they get the same error?
Hi, I obtain the same error with netpbm-10.29, all USE flags enabled. I used an eps graphics of mine which, iirc, wasn't generated by inkscape but xfig. It occurs in a sscanf in pnmtopng.c, so I think the problem comes from upstream. I'll investigate further, but later. And please don't attach big binary files to bugzilla, but store them on an external ftp or indicate how to recreate them.
After some more code reading, I don't see how this could have been caused by gentoo... So the problem must be upstream, please report it there.
This seems related to the media-libs/netpbm package, so reassigning to media-gfx, and changing the subject to match the issue.
sounds like Bug 115489 (which i'm unable to reproduce as well as this one) ...
although you are using invalid CFLAGS -march=pentium4 is not correct for a pentium m machine
can you try upgrading to 10.31 and see if that fixes things for you ?
well re-open if 10.31 doesnt fix the issue
*** Bug 153078 has been marked as a duplicate of this bug. ***