i686-pc-linux-gnu-gcc -I/usr/include/freetype2 -O2 -march=i686 -pipe -Wall -I. -c -o misc.o misc.c i686-pc-linux-gnu-gcc -I/usr/include/freetype2 -O2 -march=i686 -pipe -Wall -I. -c -o pk.o pk.c i686-pc-linux-gnu-gcc -I/usr/include/freetype2 -O2 -march=i686 -pipe -Wall -I. -c -o set.o set.c set.c: In function 'WriteImage': set.c:170: error: 'compression' undeclared (first use in this function) set.c:170: error: (Each undeclared identifier is reported only once set.c:170: error: for each function it appears in.) make: *** [set.o] Error 1 !!! ERROR: app-text/dvipng-1.8 failed. Gentoo Base System version 1.12.6 Portage 2.1.1-r1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.16.16 i686) ================================================================= System uname: 2.6.16.16 i686 AMD Athlon(tm) 64 Processor 3200+ Last Sync: Fri, 10 Nov 2006 16:00:01 +0000 ccache version 2.3 [disabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: [Not Present] dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.60 sys-devel/automake: 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://212.219.56.134/sites/www.ibiblio.org/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X berkdb bitmap-fonts cli cracklib crypt cups dlloader dri elibc_glibc fortran gdbm gpm iconv input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog kernel_linux libg++ ncurses nls nptl nptlonly pam pcre perl ppds pppd python readline reflection session spl ssl tcpd truetype-fonts type1-fonts udev unicode userland_GNU video_cards_vga xorg zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
This should be provided by media-libs/gd, can you try to re-emerge yours? If that still doesn't work, please attach your config.log after trying to compile dvipng.
Same for 1.9. The problem is gd not being compiled with png USE flag. Probably the ebuild should do some build_with_use trickery on gd with png.
This check has been added long ago, I stumbled about it myself and did not know there was a bug open. Closing.