Small addendum. It did compile without problems, but I got an internal server error while trying to use statusmap.cgi and some other cgi's. Apache couldn't find the new lib. Therefore create a symlink: ln -s /opt/lib/libgd.so.2 /usr/lib/libgd.so.2
________________________________ From: Tom DE BLENDE (DHL GBS) [mailto:tom.deble...@dhl.com] Sent: Wednesday, June 24, 2009 08:00 To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Nagios 3.1.1 compile fails on Centos-3 OK, for future reference. If anyone has problems compiling Nagios 3.1.x on Centos 3 (I know, I know, it's ancient, but it still works, and it is still supported), here is what to do. Download the latest tarball of gd at http://www.libgd.org/Downloads and install it to a location like /opt: ./configure --prefix=/opt Then compile Nagios pointing to that location: ./configure --with-gd-lib=/opt/lib --with-gd-inc=/opt/include This avoids having to remove the old version of gd, which will bring you dependency hell. Kind regards, Tom ________________________________ From: Tom DE BLENDE (DHL GBS) [mailto:tom.deble...@dhl.com] Sent: Tuesday, June 23, 2009 08:32 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Nagios 3.1.1 compile fails on Centos-3 Hi all, This is where the compiler craps out: cd ./base && make make[1]: Entering directory `/usr/src/install/nagios/nagios-3.1.1/base' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/src/install/nagios/nagios-3.1.1/base' cd ./cgi && make make[1]: Entering directory `/usr/src/install/nagios/nagios-3.1.1/cgi' gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -o statusmap.cgi statusmap.c getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -lgd -lpng -ljpeg -lz -lm statusmap.c: In function `initialize_graphics': statusmap.c:2111: warning: assignment makes pointer from integer without a cast /tmp/ccNrEvP7.o(.text+0x33f0): In function `initialize_graphics': /usr/src/install/nagios/nagios-3.1.1/cgi/statusmap.c:2111: undefined reference to `gdImageCreateTrueColor' collect2: ld returned 1 exit status make[1]: *** [statusmap.cgi] Error 1 make[1]: Leaving directory `/usr/src/install/nagios/nagios-3.1.1/cgi' make: *** [all] Error 2 Configure showed no problems with gd: [...@box nagios-3.1.1]# ./configure | grep gd checking for gdImagePng in -lgd (order 1)... no checking for gdImagePng in -lgd (order 2)... yes This what I have from gd on my box: [...@box nagios-3.1.1]# rpm -qa | grep gd gdbm-1.8.0-20 sysklogd-1.4.1-26_EL3 libgdiplus-1.2.3-0.rhel3.novell gd-1.8.4-12.3.1 libgdiplus-debuginfo-1.2.3-0.rhel3.novell gdb-6.3.0.0-1.138.el3 gdbm-devel-1.8.0-20 gdk-pixbuf-0.22.0-13.el3.3 gd-devel-1.8.4-12.3.1 gdm-2.4.1.6-18.el3 I'm running a fully upgraded Centos-3. Any ideas? Thanks, Tom
------------------------------------------------------------------------------
_______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null