Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157832 - net-analyzer/nagios-2.5. no statusmap.cgi w/ media-libs/gd emerged without png use flag
Summary: net-analyzer/nagios-2.5. no statusmap.cgi w/ media-libs/gd emerged without pn...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
: 168787 (view as bug list)
Depends on:
Blocks: 172480
  Show dependency tree
 
Reported: 2006-12-11 07:52 UTC by Jaime A. V.
Modified: 2007-05-08 21:38 UTC (History)
4 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 Jaime A. V. 2006-12-11 07:52:58 UTC
Hello people,

I've got working perfectly nagios-2.5. Everything works perfect, but still have a little trouble with statusmap.cgi and trends.cgi and it is because when compiling it does not find some graphic library or something

[code]
checking for gdImagePng in -lgd (order 1)... no
checking for gdImagePng in -lgd (order 2)... no
checking for gdImagePng in -lgd (order 3)... no
checking for gdImagePng in -lgd (order 4)... no


*** GD, PNG, and/or JPEG libraries could not be located... *********

Boutell's GD library is required to compile the statusmap, trends
and histogram CGIs.  Get it from http://www.boutell.com/gd/, compile
it, and use the --with-gd-lib and --with-gd-inc arguments to specify
the locations of the GD library and include files.

NOTE: In addition to the gd-devel library, you'll also need to make
      sure you have the png-devel and jpeg-devel libraries installed
      on your system.

NOTE: After you install the necessary libraries on your system:
      1. Make sure /etc/ld.so.conf has an entry for the directory in
         which the GD, PNG, and JPEG libraries are installed.
      2. Run 'ldconfig' to update the run-time linker options.
      3. Run 'make clean' in the Nagios distribution to clean out
         any old references to your previous compile.
      4. Rerun the configure script.

NOTE: If you can't get the configure script to recognize the GD libs
      on your system, get over it and move on to other things.  The
      CGIs that use the GD libs are just a small part of the entire
      Nagios package.  Get everything else working first and then
      revisit the problem.  Make sure to check the nagios-users
      mailing list archives for possible solutions to GD library
      problems when you resume your troubleshooting.

********************************************************************
[/code]

in the nagios FAQ( http://nagios.org/faqs/viewfaq.php?faq_id=55 ) It says exactly that we need to have installed:
[code]
    * libgd
    * libgd-devel
    * libpng
    * libpng-devel
    * libjpeg
    * libjpeg-devel
    * zlib
    * zlib-devel 
[/code]

But i have installed:

gd-20.33
media-libs/jpeg 6b-r7
zlib-1.2.3-r1


Any reason for this not working ? Thanks to all, you do an outstanding job

my emerge --info

Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.17-gentoo-r8-[by.Rapul] i686)
=================================================================
System uname: 2.6.17-gentoo-r8-[by.Rapul] i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.6
Last Sync: Sun, 10 Dec 2006 22:30:01 +0000
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:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 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="-march=pentium4 -O2 -pipe -fomit-frame-pointer -ftracer -s"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -ftracer -s"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg digest distlocks metadata-transfer sfperms"
GENTOO_MIRRORS=" http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.gnukorea.org http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://www.gigaload.org/gentoo.org/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.dale.ro/pub/mirrors/ftp.ibiblio.org/pub/Linux/distributions/gentoo "
LINGUAS="es"
MAKEOPTS="-j3 -s"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 acpi apache2 bash-completion bashlogger bitmap-fonts bzip2 caps cli commercial cracklib crypt cups dri elf elibc_glibc expat extensions fortran fpx ftp gdbm gpm graphviz hardened iconv imap innodb input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog javascript jbig jikes jpeg justify kerberos kernel_linux lcms libg++ linguas_es lm_sensors maildir mbox mime mmx mpeg mysql ncurses nls no-suexec notlsbeforeauth nptl nptlonly offensive pam pcre perl php pic posix ppds pppd python readline reflection sasl session sftplogging smux spl ssl sysfs tcpd test threads truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo vim-pager xml xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jaime A. V. 2006-12-13 10:45:10 UTC
gd should be compiled with png use :(
Comment 2 Ric de France 2007-01-11 10:09:22 UTC
(In reply to comment #1)
> gd should be compiled with png use :(
> 

If the need for USE="png" is required for gd, can't png then be used as a USE flag for nagios as well? This would trigger off gd to be merged (if not already on the system) with png support.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-02-28 21:06:24 UTC
*** Bug 168787 has been marked as a duplicate of this bug. ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-02-28 21:07:26 UTC
Don't resolve bugs that are not fixed in the tree.
Comment 5 Tobias Scherbaum (RETIRED) gentoo-dev 2007-05-08 21:38:06 UTC
Fixed in nagios-core-2.9.