Nagios on Solaris
rvelez
rvelez at sunguruz.com
Tue Dec 31 20:00:20 CET 2002
Here is my LD_LIBRARY_PATH
:/usr/local/lib:/usr/lib:/usr/local/include:/usr/local/BerkeleyDB.3.2/in
clude/:/usr/local/BerkeleyDB.4.0/include/:/usr/local/lib/perl5/5.00503/s
un4-solaris/:/usr/local/lib/perl:/usr/ucb:/usr/local/include/gtk:/usr/lo
cal/BerkeleyDB.3.2:/usr/java1.2/jre/lib/sparc/:/usr/java1.1/lib/:/opt/lo
cal/src/gd-2.0.1/:/opt/local/src/jpeg-6b/:/opt/local/src/gd-1.8.4/
At the same time I also moved the gd_jpeg.o from the src dir of gd-1.8.3
to /usr/local/lib thinking this would fix things, but it didn't. My
configure looks fine, here it is, maybe there is something here I do not
see that you may.
root at nsmx1:/opt/local/src/nagios-1.0 > ./configure
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/local/bin/install
-c
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether make sets ${MAKE}... (cached) yes
checking for strip... (cached) /usr/ccs/bin/strip
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached)
yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for ctype.h... (cached) yes
checking for dirent.h... (cached) yes
checking for errno.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for getopt.h... (cached) no
checking for grp.h... (cached) yes
checking for limits.h... (cached) yes
checking for math.h... (cached) yes
checking for pwd.h... (cached) yes
checking for signal.h... (cached) yes
checking for strings.h... (cached) yes
checking for string.h... (cached) yes
checking for syslog.h... (cached) yes
checking for unistd.h... (cached) yes
checking for uio.h... (cached) no
checking for sys/types.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for sys/wait.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/ipc.h... (cached) yes
checking for sys/msg.h... (cached) yes
checking for working const... (cached) yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking for tm_zone in struct tm... (cached) no
checking for tzname... (cached) yes
checking for mode_t... (cached) yes
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking return type of signal handlers... (cached) void
checking for uid_t in sys/types.h... (cached) yes
checking type of array argument to getgroups... (cached) gid_t
checking for strdup... (cached) yes
checking for strstr... (cached) yes
checking for strtoul... (cached) yes
checking for initgroups... (cached) yes
checking for type of socket size... size_t
checking for mail... (cached) /usr/bin/mail
Init script directory: /usr/local/etc/rc.d
We'll use default routines (in xdata/xsddefault.*) for status data
I/O...
We'll use default routines (in xdata/xcddefault.*) for comment data
I/O...
We'll use template-based routines (in xdata/xedtemplate.*) for extended
data I/O...
We'll use default routines (in xdata/xrddefault.*) for retention data
I/O...
We'll use template-based routines (in xdata/xodtemplate.*) for object
data I/O...
We'll use default routines (in xdata/xpddefault.*) for performance data
I/O...
We'll use default routines (in xdata/xdddefault.*) for scheduled
downtime data I/O...
checking for gdImagePng in -lgd (order 1)... (cached) yes
GD library was found!
checking for traceroute... (cached) /usr/sbin/traceroute
checking for snprintf... (cached) yes
checking for type va_list... yes
checking for perl... (cached) /usr/bin/perl
creating ./config.status
creating Makefile
creating subst
creating pkginfo
creating base/Makefile
creating common/Makefile
creating contrib/Makefile
creating cgi/Makefile
creating html/Makefile
creating xdata/Makefile
creating daemon-init
creating html/index.html
creating html/side.html
creating common/config.h
common/config.h is unchanged
creating common/snprintf.h
common/snprintf.h is unchanged
creating base/nagios.h
creating cgi/cgiutils.h
cgi/cgiutils.h is unchanged
Creating sample config files in sample-config/ ...
*** Configuration summary for nagios 1.0 11-24-2002 ***:
General Options:
-------------------------
Nagios executable: nagios
Nagios user/group: nagios,nagios
Command user/group: nagios,nagios
Embedded Perl: no
Install ${prefix}: /usr/local/nagios
Lock file: ${prefix}/var/nagios.lock
Init directory: /usr/local/etc/rc.d
Web Interface Options:
------------------------
HTML URL: http://localhost/nagios/
CGI URL: http://localhost/nagios/cgi-bin/
Traceroute (used by WAP): /usr/sbin/traceroute
External Data Routines:
------------------------
Status data: Default (text file)
Object data: Template-based (text file)
Comment data: Default (text file)
Downtime data: Default (text file)
Retention data: Default (text file)
Peformance data: Default (external commands)
Extended info data: Template-based (text file)
Review the options above for accuracy. If they look okay,
type 'make all' to compile the main program and CGIs.
I proceed to make all and it keeps breaking at the statusmap.cgi
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI summary.c getcgi.o cgiutils.o auth.o
popen.o ../common/objects.c ../xdata/xodtemplate.c
../common/statusdata.c ../xdata/xsddefault.c -o summary.cgi
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI tac.c getcgi.o cgiutils.o auth.o
popen.o ../common/objects.c ../xdata/xodtemplate.c
../common/statusdata.c ../xdata/xsddefault.c ../common/comments.c
../xdata/xcddefault.c edata.o ../xdata/xedtemplate.c -o tac.cgi
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI statuswrl.c getcgi.o cgiutils.o
auth.o popen.o ../common/objects.c ../xdata/xodtemplate.c
../common/statusdata.c ../xdata/xsddefault.c -lm edata.o
../xdata/xedtemplate.c -o statuswrl.cgi
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI statusmap.c getcgi.o cgiutils.o
auth.o popen.o ../common/objects.c ../xdata/xodtemplate.c
../common/statusdata.c ../xdata/xsddefault.c -lgd -lz -lm -lpng -ljpeg
edata.o ../xdata/xedtemplate.c -o statusmap.cgi
Undefined first referenced
symbol in file
jpeg_simple_progression /usr/local/lib/libgd.a(gd_jpeg.o)
jpeg_set_quality /usr/local/lib/libgd.a(gd_jpeg.o)
jpeg_write_scanlines /usr/local/lib/libgd.a(gd_jpeg.o)
jpeg_destroy_decompress /usr/local/lib/libgd.a(gd_jpeg.o)
jpeg_destroy /usr/local/lib/libgd.a(gd_jpeg.o)
jpeg_start_compress /usr/local/lib/libgd.a(gd_jpeg.o)
jpeg_write_marker /usr/local/lib/libgd.a(gd_jpeg.o)
jpeg_read_scanlines /usr/local/lib/libgd.a(gd_jpeg.o)
jpeg_finish_decompress /usr/local/lib/libgd.a(gd_jpeg.o)
jpeg_start_decompress /usr/local/lib/libgd.a(gd_jpeg.o)
jpeg_destroy_compress /usr/local/lib/libgd.a(gd_jpeg.o)
jpeg_resync_to_restart /usr/local/lib/libgd.a(gd_jpeg.o)
jpeg_std_error /usr/local/lib/libgd.a(gd_jpeg.o)
jpeg_CreateDecompress /usr/local/lib/libgd.a(gd_jpeg.o)
jpeg_set_defaults /usr/local/lib/libgd.a(gd_jpeg.o)
jpeg_CreateCompress /usr/local/lib/libgd.a(gd_jpeg.o)
jpeg_read_header /usr/local/lib/libgd.a(gd_jpeg.o)
jpeg_finish_compress /usr/local/lib/libgd.a(gd_jpeg.o)
ld: fatal: Symbol referencing errors. No output written to statusmap.cgi
collect2: ld returned 1 exit status
make[1]: *** [statusmap.cgi] Error 1
make[1]: Leaving directory `/opt/local/src/nagios-1.0/cgi'
make: *** [all] Error 2
It seemed to me that it was looking for gd_jpeg.o?
Thanks for all your help
Regards,
Radames
-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of rvelez
Sent: Tuesday, December 31, 2002 12:17 PM
To: 'hrishy'; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Nagios on Solaris
Thanks I will give this a shot and let you know how it turns out. Thanks
again for all you guys helping me out :)
-Radames
-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of hrishy
Sent: Tuesday, December 31, 2002 3:50 AM
To: rvelez; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Nagios on Solaris
Hi
There is a problem with your LD_LIBRARY_PATH it does
not know where you have installed JPEG libraries..you
need to append the environment varibles
LD_LIBRARY_PATH with the jpeg libarary path..
regards
Hrishy
--- rvelez <rvelez at sunguruz.com> wrote: > I have
libpng-1.2.4 and jpeg-6b installed already.
> Could it be anything
> else? Is it that it can not find jpeg?
>
> -----Original Message-----
> From: hrishy [mailto:hrishys at yahoo.co.uk]
> Sent: Tuesday, December 31, 2002 3:15 AM
> To: rvelez; nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Nagios on Solaris
>
> Hi
>
> You need to have the libpng and libjpeg
> libraries..you
> can download them from...
>
> http://www.ibiblio.org/pub/packages/solaris/sparc/
>
> regards
> Hrishy
>
> --- rvelez <rvelez at sunguruz.com> wrote: > So still
> no
> luck, I am running Solaris 8 on an Ultra
> > 5 running gcc
> > 2.95.3 and gnu make 3.79. Still getting:
> >
> > make all
> > cd ./base && make
> > make[1]: Entering directory
> > `/opt/local/src/nagios-1.0/base'
> > make[1]: `nagios' is up to date.
> > make[1]: Leaving directory
> > `/opt/local/src/nagios-1.0/base'
> > cd ./cgi && make
> > make[1]: Entering directory
> > `/opt/local/src/nagios-1.0/cgi'
> > gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI statusmap.c
> > getcgi.o cgiutils.o
> > auth.o popen.o ../common/objects.c
> > ../xdata/xodtemplate.c
> > ../common/statusdata.c ../xdata/xsddefault.c -lgd
> > -lz -lm -lpng edata.o
> > ../xdata/xedtemplate.c -o statusmap.cgi
> > Undefined first referenced
> > symbol in file
> > jpeg_simple_progression
> > /usr/local/lib/libgd.a(gd_jpeg.o)
> > jpeg_set_quality
> > /usr/local/lib/libgd.a(gd_jpeg.o)
> > jpeg_write_scanlines
> > /usr/local/lib/libgd.a(gd_jpeg.o)
> > jpeg_destroy_decompress
> > /usr/local/lib/libgd.a(gd_jpeg.o)
> > jpeg_destroy
> > /usr/local/lib/libgd.a(gd_jpeg.o)
> > jpeg_start_compress
> > /usr/local/lib/libgd.a(gd_jpeg.o)
> > jpeg_write_marker
> > /usr/local/lib/libgd.a(gd_jpeg.o)
> > jpeg_read_scanlines
> > /usr/local/lib/libgd.a(gd_jpeg.o)
> > jpeg_finish_decompress
> > /usr/local/lib/libgd.a(gd_jpeg.o)
> > jpeg_start_decompress
> > /usr/local/lib/libgd.a(gd_jpeg.o)
> > jpeg_destroy_compress
> > /usr/local/lib/libgd.a(gd_jpeg.o)
> > jpeg_resync_to_restart
> > /usr/local/lib/libgd.a(gd_jpeg.o)
> > jpeg_std_error
> > /usr/local/lib/libgd.a(gd_jpeg.o)
> > jpeg_CreateDecompress
> > /usr/local/lib/libgd.a(gd_jpeg.o)
> > jpeg_set_defaults
> > /usr/local/lib/libgd.a(gd_jpeg.o)
> > jpeg_CreateCompress
> > /usr/local/lib/libgd.a(gd_jpeg.o)
> > jpeg_read_header
> > /usr/local/lib/libgd.a(gd_jpeg.o)
> > jpeg_finish_compress
> > /usr/local/lib/libgd.a(gd_jpeg.o)
> > ld: fatal: Symbol referencing errors. No output
> > written to statusmap.cgi
> > collect2: ld returned 1 exit status
> > make[1]: *** [statusmap.cgi] Error 1
> > make[1]: Leaving directory
> > `/opt/local/src/nagios-1.0/cgi'
> > make: *** [all] Error 2
> >
> >
> > Your help is greatly appreciated. Thanks guys
> >
> >
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
>
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
More information about the Users
mailing list