Simple case: Just try running it, and you get this. tygris@tygris ~ $ pnmtopng pnmtopng: nstring.c:940: vasprintfN: Assertion `str_l2 == str_l' failed. Aborted (core dumped) tygris ~ # emerge --info Portage 2.0.54 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.3.5-r2, 2.6.16.1-tygris x86_64) ================================================================= System uname: 2.6.16.1-tygris x86_64 AMD Sempron(tm) Processor 2500+ Gentoo Base System version 1.6.14 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 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.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-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/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks fixrpaths sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.mirror.solnet.ch http://mirror.datapipe.net/gentoo http://ftp.easynet.nl/mirror/gentoo/ http://www.gigaload.org/gentoo.org/ http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.mirrors.pair.com/ http://gentoo.mirror.icd.hu/ http://open-systems.ufl.edu/mirrors/gentoo" LANG="en_US" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://192.168.1.5/gentoo-portage" USE="amd64 3dnowex X a52 aac acpi alsa apache2 arts audiofile avi berkdb bitmap-fonts bzip2 bzlib cdb cdparanoia cdr cli crypt ctype cups curl dba dbus dri dvd dvdr dvdread emboss encode esd exif expat fam fastbuild ffmpeg font-server foomaticdb force-cgi-redirect ftp gd gif gimpprint glut gpm gtk gtk2 hal idn imagemagick imlib ipv6 isdnlog jpeg kde lcms libwww live lzw lzw-tiff mad mbox memlimit mng mp3 mpeg mysql ncurses nomotif nptl nvidia ogg opengl pcre pdflib perl png posix ppds pppd python qt quicktime readline recode rtc samba scanner sdl session simplexml slang soap sockets softmmu spell spl sqlite ssl tcltk tcpd theora tiff tokenizer truetype truetype-fonts type1-fonts udev usb vorbis xine xml xml2 xmms xpm xsl xv xvid zlib linguas_en userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS
ive verified this and working with upstream for a solution for those interested, the bug stems from incorrect var arg macro usage in the nstring.c file
fixed in netpbm-10.34