Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17885 - nagios-nrpe failed dependency (nagios-core 1.0-r1 fails to build)
Summary: nagios-nrpe failed dependency (nagios-core 1.0-r1 fails to build)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Dean Bailey
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-20 12:05 UTC by Paul Slinski
Modified: 2003-06-17 16:56 UTC (History)
0 users

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 Paul Slinski 2003-03-20 12:05:08 UTC
Building nagios-nrpe (which requires nagios-core 1.0-r1).

nagios-core fails to build. The error follows:
[snip]
gcc -march=i686 -O3 -pipe  -fno-strict-aliasing -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64  -I/usr/lib/perl5/5.6.1/i686-linux/CORE  -DHAVE_CONFIG_H
-DNSCGI  trends.c getcgi.o cgiutils.o auth.o popen.o  ../common/objects.c
../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c -lgd -lz -lm
-lpng -ljpeg -o trends.cgi
/var/tmp/portage/nagios-core-1.0-r1/temp/cc2xCLmK.o(.text+0x3503): In function
`load_image_from_file':
: undefined reference to `gdImageCreateFromJpeg'
collect2: ld returned 1 exit status
make[1]: *** [statusmap.cgi] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/nagios-core-1.0-r1/work/nagios-1.0/cgi'
make: *** [all] Error 2

!!! ERROR: net-analyzer/nagios-core-1.0-r1 failed.
!!! Function src_compile, Line 30, Exitcode 2
!!! (no error message)
[snip]

This is Gentoo 1.2 / Gentoo Base System version 1.4.2.8 / gcc-2.95.3-r8

Reproducible: Always
Steps to Reproduce:
1. emerge nagios-nrpe and it's deps
2.
3.

Actual Results:  
Deps were built up to nagios-core which fails to build


Portage 2.0.47-r10 (default-1.0, gcc-2.95.3, glibc-2.2.5-r2,2.2.5-r7)
=================================================================
System uname: 2.4.19-gentoo-r10 i686 Pentium III (Coppermine)
GENTOO_MIRRORS="http://192.168.10.44 http://gentoo.oregonstate.edu/
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 crypt libg++ mmx ncurses xml2 berkdb gdbm libwww pam perl python
readline ssl tcpd tetex -3dnow -apm -arts -avi -cups -encode -gif -gpm -gtk
-imlib -java -jpeg -kde mbox -mikmod -motif -mpeg -nls -oggvorbis -opengl -oss
-pdflib pic -png -qt -qtmt -quicktime -sdl -slang snmp socks5 -spell sse -svga
-truetype -X -xmms -xv zlib"
COMPILER=""
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O3 -pipe"
CXXFLAGS="-march=i686 -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Paul Slinski 2003-03-25 14:23:33 UTC
OK, I did not have jpeg in my USE flags when I built libgd. Re-builing libgd then building nagios-nrpe works.

Please close.
-P
Comment 2 Paul Slinski 2003-03-25 14:37:07 UTC
One last thing though:

The init scripts are bad. For nrpe, the script is:
start() {
        ebegin "Starting nrpe"
        start-stop-daemon --start --quiet --name nrpe \
        --startas /usr/nagios/bin/nrpe \
                -c nagios:nagios \
                -- -d /etc/nagios/nrpe.cfg
        eend $? "Failed to Start nrpe"
}


but should be

start() {
        ebegin "Starting nrpe"
        start-stop-daemon --start --quiet --name nrpe \
        --startas /usr/nagios/bin/nrpe \
                -c nagios:nagios \
                -- -c /etc/nagios/nrpe.cfg \
                --daemon
        eend $? "Failed to Start nrpe"
}

The same goes for nsca.

Cheers,
Paul
Comment 3 Dean Bailey 2003-06-17 16:56:21 UTC
nrpe issue fixed in nagios-nrpe-1.8-r1 which will be in portage in about an hour.