Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65163 - Emerging webalizer on new Gentoo install causes "undefined reference to `gdImagePng'"
Summary: Emerging webalizer on new Gentoo install causes "undefined reference to `gdIm...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Jonathan Smith (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-23 21:05 UTC by Steve Switzer
Modified: 2005-07-06 13:04 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Switzer 2004-09-23 21:05:30 UTC
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"
Comment 1 Steve Switzer 2004-09-23 21:08:50 UTC
Sorry, typing in the dark. Step one should say:
USE="apache2" emerge -av webalizer
Comment 2 Kevin O'Shea 2004-09-26 13:11:31 UTC
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.
Comment 3 Benjamin Tremoulheac 2004-11-26 13:55:13 UTC
It works for me with media-libs/gd png USE flag. (I got the same error before).
Comment 4 Garrett Cooper 2005-03-28 21:15:22 UTC
Add png support to your USE flags, emerge gd again and then webalizer. That solved my problems.
Comment 5 Garrett Cooper 2005-03-28 21:16:29 UTC
Add png support to your system wide USE flags, emerge gd again and then webalizer. That solved my problems.
Comment 6 Rene Zbinden 2005-05-17 05:01:07 UTC
Recompile gd with png USE flag also solved my problem
Comment 7 Jonathan Smith (RETIRED) gentoo-dev 2005-07-06 13:04:26 UTC
added a built_with_use section in 2.01.10-r9