Last few lines of emerge: gcc -I/usr/include/db1/ -O2 -march=pentium3 -pipe -fomit-frame-pointer -DETCDIR=\"/etc\" -DHAVE_DB_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c dns_resolv.c gcc -I/usr/include/db1/ -O2 -march=pentium3 -pipe -fomit-frame-pointer -DETCDIR=\"/etc\" -DHAVE_DB_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c parser.c gcc -I/usr/include/db1/ -O2 -march=pentium3 -pipe -fomit-frame-pointer -DETCDIR=\"/etc\" -DHAVE_DB_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c output.c gcc -I/usr/include/db1/ -O2 -march=pentium3 -pipe -fomit-frame-pointer -DETCDIR=\"/etc\" -DHAVE_DB_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -I/usr/include -c graphs.c gcc -L/usr/lib -o webalizer webalizer.o hashtab.o linklist.o preserve.o parser.o output.o dns_resolv.o graphs.o -lgd -lpng -lz -lm -lnsl -ldb1 graphs.o(.text+0x67f): In function `year_graph6x': : undefined reference to `gdImagePng' graphs.o(.text+0x164a): In function `month_graph6': : undefined reference to `gdImagePng' graphs.o(.text+0x21cf): In function `day_graph3': : undefined reference to `gdImagePng' graphs.o(.text+0x2aaf): In function `pie_chart': : undefined reference to `gdImagePng' collect2: ld returned 1 exit status make: *** [webalizer] Error 1 !!! ERROR: app-admin/webalizer-2.01.10-r4 failed. !!! Function src_compile, Line 32, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. USE="apache3" emerge -av webalizer 2. 3. Actual Results: Compile error Expected Results: merged webalizer Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.8-gentoo-r3) ================================================================= System uname: 2.6.8-gentoo-r3 i686 Pentium III (Katmai) Gentoo Base System version 1.4.16 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://mirrors.tds.net/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="berkdb crypt ftp hardened imap innodb ldap mime mmx mysql ncurses pam perl pic pie python readline snmp ssl tcpd vhosts x86 xml"
Sorry, typing in the dark. Step one should say: USE="apache2" emerge -av webalizer
Do you have media-libs/gd compiled with +png? This seems to be a requirement (the ebuild for webalizer should probably be updated to inform you about this.
It works for me with media-libs/gd png USE flag. (I got the same error before).
Add png support to your USE flags, emerge gd again and then webalizer. That solved my problems.
Add png support to your system wide USE flags, emerge gd again and then webalizer. That solved my problems.
Recompile gd with png USE flag also solved my problem
added a built_with_use section in 2.01.10-r9