Re: [Nagios-devel] Compilation problems on Solaris 10 Sparc

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Compilation problems on Solaris 10 Sparc

Post by Guest »

After running configure, change this line in base/Makefile:

LIBS=

to

LIBS= -lnsl -lsocket



On 09/17/09 07:05, [email protected] wrote:
> Send Nagios-devel mailing list submissions to
> [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/lis ... gios-devel
> or, via email, send a message with subject or body 'help' to
> [email protected]
>
> You can reach the person managing the list at
> [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Nagios-devel digest..."
>
>
> Today's Topics:
>
> 1. Compilation problems on Solaris 10 Sparc for versions
> nagios-3.1.0, nagios-3.1.1, nagios-3.1.2 & nagios-3.2.0 (Alex Peeters)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 17 Sep 2009 12:26:44 +0200
> From: Alex Peeters
> Subject: [Nagios-devel] Compilation problems on Solaris 10 Sparc for
> versions nagios-3.1.0, nagios-3.1.1, nagios-3.1.2 & nagios-3.2.0
> To: Nagios Developers List
> Cc: [email protected]
> Message-ID:
> Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes";
> format="flowed"
>
>
> Solaris 10 voor sparc
>
> Latest version that compiles is: nagios-3.0.6
>
> Version that don't compile: nagios-3.1.0, nagios-3.1.1, nagios-3.1.2 &
> nagios-3.2.0
>
>
> All have the same error:
>
> ... cations.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/opt/csw/gcc3/lib -R/opt/csw/gcc3/lib
> -L/opt/csw/lib -R/opt/csw/lib -L/opt/csw/bdb44/lib
> -R/opt/csw/bdb44/lib -L/opt/csw/lib -lm -lpthread -lltdl -lrt
> -lglib-2.0
> 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-3.1.0/base'
> gmake: *** [all] Error 2
>
>
> bash-3.00$ more config.log
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> It was created by configure, which was
> generated by GNU Autoconf 2.59. Invocation command line was
>
> $ ./configure --prefix=/opt/monitoring/nagios
> --with-nagios-user=nagios --with-nagios-group=nagios
> --with-command-group=nagioscm --with-perlcache --enable-n
> anosleep --enable-event-broker --with-gd-lib=/opt/csw/lib
> --with-gd-inc=/opt/csw/include
>
> ## --------- ##
> ## Platform. ##
> ## --------- ##
>
> hostname = crinaeatst01-bz
> uname -m = sun4us
> uname -r = 5.10
> uname -s = SunOS
> uname -v = Generic_125100-06
>
> /usr/bin/uname -p = sparc
> /bin/uname -X = System = SunOS
> Node = crinaeatst01-bz
> Release = 5.10
> KernelID = Generic_125100-06
> Machine = sun4us
> BusType =
> Serial =
> Users =
> OEM# = 0
> Origin# = 1
> NumCPU = 1
>
> /bin/arch = sun4
> /usr/bin/arch -k = sun4us
> /usr/convex/getsysinfo = unknown
> hostinfo = unknown
> /bin/machine = unknown
> /usr/bin/oslevel = unknown
> /bin/universe = unknown
>
> PATH: /opt/csw/gcc3/bin
> PATH: /opt/csw/bdb44/bin
> PATH: /usr/sbin
> PATH: /usr/ccs/bin
> PATH: /usr/bin
> PATH: /opt/csw/bin
> PATH: /usr/u

...[email truncated]...


This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked