Nagios on Solaris 8
Hello everyone,
I am building Nagios 2.6 on Solaris 8 and for the most part, have it compiled, installed and running.
However, for any pages that generate a picture (statusmap.cgi, histogram.cgi, etc.) error out with a library error - here's the apache error log:
- ld.so.1: statusmap.cgi: fatal: relocation error: file /usr/lib/libgd.so.2: symbol overflow2: referenced symbol not found, referer: http://x.x.x.x/nagios/cgi-bin/statusmap.cgi?host=all
- Premature end of script headers: statusmap.cgi, referer: http://x.x.x.x/nagios/cgi-bin/statusmap.cgi?host=all
I've ldd'd all the cgi files and there aren't any missing libraries.
/usr/lib/libaio.so.1
/usr/lib/libc.so.1
/usr/lib/libdl.so.1
/usr/lib/libm.so.1
/usr/lib/libmp.so.2
/usr/lib/libnsl.so.1
/usr/lib/librt.so.1
/usr/lib/libsocket.so.1
/usr/local/lib/libXpm.so.4.11
/usr/local/lib/libgcc_s.so.1
/usr/local/lib/libgd.so.2
/usr/local/lib/libiconv.so.2
/usr/local/lib/libjpeg.so.62
/usr/local/lib/libpng12.so.0
/usr/local/lib/libz.so
/usr/openwin/lib/libX11.so.4
/usr/openwin/lib/libXext.so.0
With no missing files.
As far as installation goes, all the graphics libraries and pre-requisites installed successfully, and all the 'make checks' ran correctly as well. When gd was configured, the results were as follows:
** Configuration summary for gd 2.0.33:
Support for PNG library: yes
Support for JPEG library: yes
Support for Freetype 2.x library: no
Support for Fontconfig library:no
Support for Xpm library: yes
Support for pthreads: yes
At this point I can monitor external hosts with nrpe, as that and all plugins were installed successfully.
CRLE looks like this (Solaris does not use ldconfig):
# crle
Configuration file [version 4]: /var/ld/ld.config
Default Library Path (ELF):/usr/lib:/usr/local/lib:/usr/local/ssl/lib:/opt/sfw/lib:/usr/openwin/lib
Trusted Directories (ELF):/usr/lib/secure (system default)
Command line:
crle -c /var/ld/ld.config -l /usr/lib:/usr/local/lib:/usr/local/ssl/lib:/opt/sfw/lib:/usr/openwin/lib
Has anyone seen this before or know what I can do from here to get these cgi's working?
Thanks,

