Page 1 of 1

Re: [Nagios-devel] 64 bit compile options?

Posted: Fri Dec 12, 2008 9:15 am
by Guest
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/12/08 04:38 PM, Steven D. Morrey wrote:
> Hi is there any option to compile nagios to 64 bit from the sources?
> If so could someone explain the options and / or kindly point me in the
> direction of the FAQ where this part is explained?

Normally you don't have to do anything, just compile and install. the
"file" utility can be used to check this:

> $ file plugins/check_dummy
> plugins/check_dummy: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), not stripped

On some OS you will have to add some compiler flags, or possibly switch
to a different compiler. For example on my Solaris server:

> $ file plugins/check_dummy
> plugins/check_dummy: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped

Now if I run configure with "CFLAGS='-m64', I get this:

> $ file plugins/check_dummy
> plugins/check_dummy: ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked, not stripped, no debugging information available

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

iD8DBQFJQiuh6dZ+Kt5BchYRAm+cAKCqWgqBKjLLTfx/RoV0EWiVe+88VwCgrxKJ
KObEm5xsM0Pipy9w4O6txmE=
=0sDr
-----END PGP SIGNATURE-----





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