[Nagiosplug-help] Nagios Plugin Compilation and Solaris 10

Thomas Guyot-Sionnest dermoth at aei.ca
Thu Dec 18 12:46:47 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 17/12/08 07:02 PM, Keegan,Nate wrote:
> Ok, I did some more work on this and here is what I found out.
> 
> The GCC that is shipped with Solaris 10 is version 3.4.3:
> 
> [root at yellowjacket ~]# gcc -v
> Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
> Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
> --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
> --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
> --enable-shared
> Thread model: posix
> gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
> 
> The version I was using was 3.4.6 from Sunfreeware.com
> 
> [root at yellowjacket ~]# /usr/local/bin/gcc -v
> Reading specs from /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/specs
> Configured with: ../configure --with-as=/usr/ccs/bin/as
> --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
> Thread model: posix
> gcc version 3.4.6
> 
> I can't say for sure why using the Solaris installed version works other than there is a note on Sunfreeware's GCC page about 64-bit and using the Solaris installed GCC.
> 
> I'm not a GCC master (and I don't play one on TV) but I'm going to guess that one GCC is built for 64-bit support and the other is not (maybe?).

pst3 has been added recently on Solaris to overcome some of the
shortcomings of using Solaris ps command in check_procs. pst3 requires a
64-bit compiler, so if your compiler does not support 64-bit it will fail.

- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJSjgn6dZ+Kt5BchYRAnNyAJwIfsqifN6CnzYSa6Q4lP9NB6itcwCfRVWv
FIrpTOUzvt7ulwS5QedgAU8=
=BzeX
-----END PGP SIGNATURE-----




More information about the Help mailing list