Nagios 3.1.1 compile fails on Centos-3

Tom DE BLENDE (DHL GBS) tom.deblende at dhl.com
Wed Jun 24 07:59:52 CEST 2009


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.deblende at dhl.com] 
Sent: Tuesday, June 23, 2009 08:32
To: nagios-users at 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:
 
[me at 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:
 
[me at 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

 

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090624/36bb2852/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at 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


More information about the Users mailing list