Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110171 - ebuild - net-analyzer/zabbix-frontend - need mod_php compiled with USE="gd"
Summary: ebuild - net-analyzer/zabbix-frontend - need mod_php compiled with USE="gd"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: Wolfram Schlich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-22 12:29 UTC by Olivier Asselin
Modified: 2006-06-06 07:23 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 Olivier Asselin 2005-10-22 12:29:56 UTC
After installing net-analyzer/zabbix-frontend i notice that the mod_php need the
flag USE="GD" flag in use to properly show graphic but there is no indication in
installation that indicate that mod_php need this flag.

Reproducible: Always
Steps to Reproduce:
1. install apache with mod_php
2. install zabbix_server and zabbix_frontend and configure it properly
3. Connect on your frontend, monitaure a new host (with zabbix_agent installed)
4. go in "view" --> "latest data" --> select your host --> click on any graphic

Actual Results:  
you shoudn't be able to see the graphic, it need the flag "gd" to show them

Expected Results:  
compile mod_php with USE="gd" to activate the graphic

Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2,
2.6.12.5 i686)
=================================================================
System uname: 2.6.12.5 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5, 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="-march=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/alias /var/qmail/control /var/vpopmail/domains
/var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://gentoo.risq.qc.ca http://adelie.polymtl.ca"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="x86 alsa apm arts avi berkdb bitmap-fonts crypt cups curl eds emboss encode
foomaticdb fortran gd gdbm gif gpm gstreamer gtk2 imap imlib ipv6 jpeg libg++
libwww mad maildir mikmod mmx motif mp3 mpeg mysql ncurses nls ogg oggvorbis
opengl oss pam perl png python quicktime readline sdl snmp spell sse ssl tcpd
truetype truetype-fonts type1-fonts udev vorbis xml2 xmms xv zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY

** after have made the correction to my USE flags
Comment 1 Anatoly Shipitsin 2005-10-25 22:22:01 UTC
I'm know about this bug. But i'm not understand how know mod_php emerged with
"gd" flag. If you know tell me. I'm fix ebuilds ;)
Comment 2 Olivier Asselin 2005-10-26 07:46:27 UTC
When you compile mod_php, you need to use the flag "gd" ( USE="gd" emerge
mod_php ) to be able to display the graphic in zabbix-frontend program
Comment 3 Peter Gordon (RETIRED) gentoo-dev 2005-10-26 09:38:55 UTC
What if you checked this in the ebuild's src_unpack function? For example
something like the following may work:

src_unpack() {
  if ! built_with_use dev-php/mod_php gd; then
    ewarn "You must build mod_php with gd support (USE="gd") to enable."
    ewarn "the graphics in zabbix_frontend!"
  fi
  unpack ${A};
}
Comment 4 Olivier Asselin 2005-10-26 10:27:03 UTC
I'll set up a new installation to try the configuration and tell you if it work
correctly.  It may be done before tomorrow afternoon.


Thank you very much
Comment 5 Rene Zbinden 2005-12-09 05:59:49 UTC
I can affirm that once I enabled the gd use flag it works flawlessly.
Comment 6 Wolfram Schlich (RETIRED) gentoo-dev 2006-06-06 07:03:45 UTC
Taking this over from iggy.
Comment 7 Wolfram Schlich (RETIRED) gentoo-dev 2006-06-06 07:23:13 UTC
See bug #133230