Compiling nagios-3.0.6 on RHEL5-x86_64

Guy Waugh guidosh at gmail.com
Tue Jul 21 12:43:14 CEST 2009


Hi all,

I'm trying to get nagios-3.0.6 compiled on RHEL5-x86_64, and I can't get
configure to think that it's found a working libgd/libpng/libjpeg. Nagios is
working, but I'm trying to get NDOUtils installed (so I can install NagVis),
and to do that, I needed to recompile nagios with '--enable-event-broker',
which made me think that maybe I'll need the graphics stuff for NDOUtils
and/or NagVis (please let me know if this is incorrect).

I'm using this as my configure line:

export LDFLAGS="-L/usr/lib64"
./configure \
        --prefix=/usr/local/nagios \
        --with-command-group=nagcmd \
        --enable-event-broker \
        --with-gd-inc=/usr/include \
        --with-gd-lib=/usr/lib64

configure says:

(...)
checking for main in -liconv... no
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... *********
(...)

However, I can see the following in config.log:

configure:5768: checking for gdImagePng in -lgd (order 1)
configure:5796: gcc -o conftest -g -O2 -I/usr/include  -L/usr/lib64
-L/usr/lib64 conftest.c -lgd -lttf -lpng -ljpeg -lz -lm  >&5
/usr/bin/ld: cannot find -lttf

configure:5844: checking for gdImagePng in -lgd (order 2)
configure:5872: gcc -o conftest -g -O2 -I/usr/include  -L/usr/lib64
-L/usr/lib64 conftest.c -lgd  -lpng -ljpeg -lz -lm  >&5
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: cannot find -lz

configure:5921: checking for gdImagePng in -lgd (order 3)
configure:5949: gcc -o conftest -g -O2 -I/usr/include  -L/usr/lib64
-L/usr/lib64 conftest.c -lgd  -lz -lm -lpng  >&5
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: cannot find -lz

configure:5998: checking for gdImagePng in -lgd (order 4)
configure:6026: gcc -o conftest -g -O2 -I/usr/include  -L/usr/lib64
-L/usr/lib64 conftest.c -lgd  -lpng -lz -lm  >&5
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: cannot find -lz

It looks like it's finding the gd libraries but can't find libttf and
doesn't like the libz libraries in /usr/lib (that come from the 32-bit
package).

>From what I can see, it looks like there isn't a libttf any more (its
functionality has been moved into libfreetype). However, why would it not
like /usr/lib/libz.(so|a)? How would I make configure try to use the
libz.(so|a) in /usr/lib64 rather than /usr/lib? And should I worry about the
libttf thing?

Thanks,
Guy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090721/375c397c/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
-------------- 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