Attempting to compile Nagios 3.1.2 on Solaris 10
Juergen Arndt
arndt02 at googlemail.com
Mon Aug 17 17:05:32 CEST 2009
Hi Rich,
edit / patch the configure script like this:
-s, at SOCKETLIBS@,$SOCKETLIBS,;t t
+s, at SOCKETLIBS@,-lnsl -lsocket,;t t
This includes the nsl and socket libraries and your problem should be
solved. Both libs are contained in the package SUNWcsl which is a part of
the Core Solaris, so they should be installed on your system by default.
Editing the configure script is maybe not the best solution but for me it
was the easiest.
Hope that helps,
Juergen
On Mon, 17 Aug 2009 16:48:47 +0200, Rich Smith <rich.smith at queensu.ca>
wrote:
> gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -o nagios
> nagios.c broker.o nebmods.o checks.o config.o commands.o events.o
> flapping.o logging.o macros-base.o netutils.o notifications.o
> sehandlers.o skiplist.o utils.o retention-base.o xretention-base.o
> comments-base.o xcomments-base.o objects-base.o xobjects-base.o
> statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o
> downtime-base.o xdowntime-base.o ../common/snprintf.o -L/usr/local/
> lib -lm -lpthread -ldl -lrt
> Undefined first referenced
> symbol in file
> recv netutils.o
> send netutils.o
> socket netutils.o
> getsockopt netutils.o
> connect netutils.o
> getaddrinfo netutils.o
> freeaddrinfo netutils.o
> ld: fatal: Symbol referencing errors. No output written to nagios
> collect2: ld returned 1 exit status
> gmake[1]: *** [nagios] Error 1
> gmake[1]: Leaving directory `/export/home/nagios/nagios-src/
> nagios-3.1.2/base'
> gmake: *** [all] Error 2
--
Juergen Arndt
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
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