Hi all,<br><br>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).<br>
<br>I'm using this as my configure line:<br><br>export LDFLAGS="-L/usr/lib64"<br>./configure \<br> --prefix=/usr/local/nagios \<br> --with-command-group=nagcmd \<br> --enable-event-broker \<br>
--with-gd-inc=/usr/include \<br> --with-gd-lib=/usr/lib64<br><br>configure says:<br><br>(...)<br>checking for main in -liconv... no<br>checking for gdImagePng in -lgd (order 1)... no<br>checking for gdImagePng in -lgd (order 2)... no<br>
checking for gdImagePng in -lgd (order 3)... no<br>checking for gdImagePng in -lgd (order 4)... no<br><br><br>*** GD, PNG, and/or JPEG libraries could not be located... *********<br>(...)<br><br>However, I can see the following in config.log:<br>
<br>configure:5768: checking for gdImagePng in -lgd (order 1)<br>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<br>/usr/bin/ld: cannot find -lttf<br>
<br>configure:5844: checking for gdImagePng in -lgd (order 2)<br>configure:5872: gcc -o conftest -g -O2 -I/usr/include -L/usr/lib64 -L/usr/lib64 conftest.c -lgd -lpng -ljpeg -lz -lm >&5<br>/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz<br>
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz<br>/usr/bin/ld: cannot find -lz<br><br>configure:5921: checking for gdImagePng in -lgd (order 3)<br>configure:5949: gcc -o conftest -g -O2 -I/usr/include -L/usr/lib64 -L/usr/lib64 conftest.c -lgd -lz -lm -lpng >&5<br>
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz<br>/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz<br>/usr/bin/ld: cannot find -lz<br><br>configure:5998: checking for gdImagePng in -lgd (order 4)<br>
configure:6026: gcc -o conftest -g -O2 -I/usr/include -L/usr/lib64 -L/usr/lib64 conftest.c -lgd -lpng -lz -lm >&5<br>/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz<br>/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz<br>
/usr/bin/ld: cannot find -lz<br><br>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).<br><br>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?<br>
<br>Thanks,<br>Guy.<br>