Failed NRPE compile on Solaris 9 sparc

Ayotunde Itayemi aitayemi at vmobile-nigeria.com
Thu Dec 22 12:32:32 CET 2005


Hi All,

Was able to compile the "afinity" version of NRPE without errors.
Thanks. 

-----Original Message-----
From: Todd Barbera [mailto:todd_barbera at wgbh.org] 
Sent: 20 December 2005 22:43
To: Ayotunde Itayemi; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Failed NRPE compile on Solaris 9 sparc

Perhaps you should try specifying your include path to point to
/usr/local/include. "-l/usr/local/include". Since you're using the GNU
versions of the compiler tools, I would think you would want to use the
GNU include directories instead of the default Solaris directories,
although I haven't had to do this when I've compiled NRPE on Solaris 9.
You may also want to check your LD_LIBRARY_PATH settings, either through
the environment variable or by using "crle". 

Todd

> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- 
> admin at lists.sourceforge.net] On Behalf Of Ayotunde Itayemi
> Sent: Tuesday, December 20, 2005 7:25 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Failed NRPE compile on Solaris 9 sparc
> 
> Hi All,
> 
> I am trying to compile NRPE on a Solaris server but I am getting lots 
> of
> errors:
> 
> My platform
> Solaris 9, gcc 3.4.2, libgcc 3.4.1, GNU make 3.80 (also tried Solaris 
> make), NRPEv2.0b4
> 
> During the configure command run, I noticed the following line:
> 
> checking for u_int32_t... no
> 
> 
> It then throws an error during the "make all" run
> 
> 
> 
> root at myserver # make all
> cd ./src/; make ; cd ..
> make[1]: Entering directory `/var/nrpe-2.0b4/src'
> gcc -g -O2 -DHAVE_CONFIG_H  -o nrpe -lnsl -lsocket nrpe.c utils.c In 
> file included from 
> /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/include/sys/
> types.h:45,
>                  from /usr/include/strings.h:11,
>                  from ../common/config.h:74,
>                  from ../common/common.h:24,
>                  from nrpe.c:21:
> /usr/include/sys/int_types.h:69: error: conflicting types for
'int32_t'
> ../common/config.h:54: error: previous declaration of 'int32_t' was 
> here In file included from nrpe.c:22:
> ../common/config.h:53: error: redefinition of typedef 'u_int32_t'
> ../common/config.h:53: error: previous declaration of 'u_int32_t' was 
> here
> ../common/config.h:54: error: conflicting types for 'int32_t'
> /usr/include/sys/int_types.h:69: error: previous declaration of 
> 'int32_t' was he re
> ../common/config.h:54: error: conflicting types for 'int32_t'
> /usr/include/sys/int_types.h:69: error: previous declaration of 
> 'int32_t' was he re In file included from utils.h:35,
>                  from nrpe.c:24:
> ../common/config.h:53: error: redefinition of typedef 'u_int32_t'
> ../common/config.h:53: error: previous declaration of 'u_int32_t' was 
> here
> ../common/config.h:53: error: redefinition of typedef 'u_int32_t'
> ../common/config.h:53: error: previous declaration of 'u_int32_t' was 
> here
> ../common/config.h:54: error: redefinition of typedef 'int32_t'
> ../common/config.h:54: error: previous declaration of 'int32_t' was 
> here
> ../common/config.h:54: error: conflicting types for 'int32_t'
> /usr/include/sys/int_types.h:69: error: previous declaration of 
> 'int32_t' was he re In file included from 
> /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/include/sys/
> types.h:45,
>                  from /usr/include/strings.h:11,
>                  from ../common/config.h:74,
>                  from ../common/common.h:24,
>                  from utils.c:32:
> /usr/include/sys/int_types.h:69: error: conflicting types for
'int32_t'
> ../common/config.h:54: error: previous declaration of 'int32_t' was 
> here In file included from utils.h:35,
>                  from utils.c:33:
> ../common/config.h:53: error: redefinition of typedef 'u_int32_t'
> ../common/config.h:53: error: previous declaration of 'u_int32_t' was 
> here
> ../common/config.h:54: error: conflicting types for 'int32_t'
> /usr/include/sys/int_types.h:69: error: previous declaration of 
> 'int32_t' was he re
> ../common/config.h:54: error: conflicting types for 'int32_t'
> /usr/include/sys/int_types.h:69: error: previous declaration of 
> 'int32_t' was he re
> make[1]: *** [nrpe] Error 1
> make[1]: Leaving directory `/var/nrpe-2.0b4/src'
> 
> *** Compile finished ***
> 
> If the NRPE daemon and client compiled without any errors, you can 
> continue with installation.  The NRPE daemon and client binaries are 
> located in the src/ subdirectory.
> 
>  ** If this is your monitoring host **
> 
>      - Copy the check_nrpe client to the directory that
>        contains your Nagios plugins.
>      - Create a command definition in your Nagios config
>        file for the NRPE client.  See the README file for
>        more info on doing this.
> 
>  ** If this host will be running the NRPE daemon **
> 
>      - Copy the nrpe daemon to /usr/sbin, /usr/local/nagios
>        or wherever you feel it fits best.
>      - Copy the sample nrpe.cfg config file to /etc,
>        /usr/local/nagios or wherever you feel it fits best.
>      - Modify the /etc/services file and configure NRPE to
>        run under inetd, xinetd, or as a standalone daemon.
>        See the README file for more info on doing this.
> 
> root at myserver #
> 
> 
> 
> 
> Ayotunde Itayemi | Business Systems | IS-SYSTEMS | IS Group |
> 08022225919 | Vmobile Nigeria | http://itayemi.tripod.com/ 
> ______________________________________________________________________
> __ 
> ______________________________________________________________________
> _ "The only people to get even with are those who have helped you."
> "Men ought to throw caution to the winds, and catch it on the 
> rebound..."
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log

> files for problems?  Stop!  Download the new AJAX search engine that 
> makes searching your log files as easy as surfing the  web.  DOWNLOAD 
> SPLUNK!
> http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick
> _______________________________________________
> 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



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
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