Attempting to compile Nagios 3.1.2 on Solaris 10

James Pratt jpratt at norwich.edu
Mon Aug 17 17:04:21 CEST 2009


>> -----Original Message-----
>> From: Rich Smith [mailto:rich.smith at queensu.ca]
>> Sent: Monday, August 17, 2009 10:49 AM
>> To: nagios-users at lists.sourceforge.net
>> Subject: [Nagios-users] Attempting to compile Nagios 3.1.2 on Solaris
10
>> 
>> I'm trying to compile Nagios 3.1.2 on Solaris 10 Sparc.
>> 
>> I've installed the following from sunfreeware.com:
>> 
>> expat-2.0.1-sol10-sparc-local
>> fontconfig-2.4.2-sol10-sparc-local
>> freetype-2.3.9-sol10-sparc-local
>> gcc-3.4.6-sol10-sparc-local
>> gd-2.0.35-sol10-sparc-local
>> jpeg-7-sol10-sparc-local
>> libiconv-1.11-sol10-sparc-local
>> libintl-3.4.0-sol10-sparc-local
>> libpng-1.2.39-sol10-sparc-local
>> openssl-0.9.8k-sol10-sparc-local
>> t1lib-5.1.0-sol10-sparc-local
>> xpdf-3.02pl3-sol10-sparc-local
>> xpm-3.4k-sol10-sparc-local
>> zlib-1.2.3-sol10-sparc-local
>> 
>> 
>> env of user: Nagios
>> 
>> HOME=/export/home/nagios
>> PATH=/export/home/nagios/apps/local/bin:/usr/local/bin:/usr/sfw/bin:/
>> usr/bin:/etc:/usr/etc:/opt/local/bin:/home/ccs/qlib/bin:/usr/openwin/
>> bin:/usr/dt/bin:/usr/ccs/bin:/usr/opt/SUNWmd/sbin:/usr/ucb
>> SHELL=/bin/csh
>> PWD=/export/home/nagios/nagios-src/nagios-3.1.2
>>
LD_LIBRARY_PATH=/export/home/nagios/apps/local/lib:/usr/local/lib:/usr/
>> local/ssl/lib:/usr/sfw/lib
>> CC=gcc
>> 
>> Configure:
>>  > ./configure --prefix=/export/home/nagios/apps/local/nagios --with-
>> nagios-user=nagios --with-nagios-group=nagios
--with-gd-lib=/usr/local/
>> lib --with-gd-inc=/usr/local/include --with-httpd-conf=/export/home/
>> nagios
>>  > gmake all
>> 
>> 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
>> 
>> No matter what I keep getting hit with this. ANyone get past this?
>> 
>> Thanks,
>> Rich

Not positive, but this may help:

http://thread.gmane.org/gmane.network.nagios.devel/6123

cheers,
Jamie

------------------------------------------------------------------------------
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