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"
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
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
nrpe issue fixed in nagios-nrpe-1.8-r1 which will be in portage in about an hour.