compiling for solaris 10

DA VILA, LUCAS (LUCAS) lucas.da_vila at alcatel-lucent.com
Mon Jul 18 20:10:43 CEST 2011


Thanks!
Gonna try.

Regards

Lucas
-----Mensaje original-----
De: Yueh-Hung Liu [mailto:yuehung.liu at gmail.com] 
Enviado el: Viernes, 08 de Julio de 2011 21:46
Para: Nagios Users List
Asunto: Re: [Nagios-users] compiling for solaris 10

solaris 10 has some utilities from www.sunfreeware.com, include gnu cc
(gcc) and gnu make (gmake).
check the /usr/sfw/bin folder and try with these gnu stuff again.


On Sat, Jul 9, 2011 at 5:45 AM, DA VILA, LUCAS (LUCAS)
<lucas.da_vila at alcatel-lucent.com> wrote:
> Hi users,
>
> I'm trying to compile NPRE and de nagios plugins on a Sun/SPARC Solaris 10 server.
>
> I've managed to compile and install NPRE modifying a little de source, and disabling SSL.
> But when I want to compile de nagios plugins an error occurs with the linker.
>
> I'm compiling nrpe-2.12.tar.gz nagios-plugins-1.4.11.tar.gz with cc the default compiler on our system (no GCC)
>
> This is the output running a make in 'plugins' folder
>
> root at ALUSPARC02$ make
> /bin/bash ../libtool --tag=CC --mode=link cc  -g   -L. -o check_apt  check_apt.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a runcmd.o -lnsl -lsocket
> cc -g -o check_apt check_apt.o utils.o runcmd.o  -L/users/adsl/nagios-plugins-1.4.11/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lsocket
> Undefined                       first referenced
>  symbol                             in file
> floor                               check_apt.o
> ld: fatal: Symbol referencing errors. No output written to check_apt
> *** Error code 1
> make: Fatal error: Command failed for target `check_apt'
>
> I've tried to remove check_apt from the make file, but the error repeats with another check_* (check_cluster, check_disk)
>
> Also run the isolated command
> root at ALUSPARC02$ cc -g -o check_apt check_apt.o utils.o runcmd.o
> Undefined                       first referenced
>  symbol                             in file
> die                                 check_apt.o
> floor                               check_apt.o
> rpl_getopt_long                     check_apt.o
> rpl_optarg                          check_apt.o
> rpl_regfree                         check_apt.o
> rpl_regexec                         check_apt.o
> rpl_regcomp                         check_apt.o
> asprintf                            utils.o
> rpl_regerror                        check_apt.o
> ld: fatal: Symbol referencing errors. No output written to check_apt
>
> I've search on google about this and found some pages, but didn't get errors with the compilation of the plugins.
> Anyone have an idea with this error?
>
> Thanks in advance,
> Best regards
>
> Lucas
>
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> 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
>

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
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

------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
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