Re: Solaris Compile error

Holger Weiß <[email protected]>
Newsgroups gmane.network.nagios.plugins
Organization Freie Universität Berlin
Message-ID <[email protected]>
* Steve Muhika <[email protected]> [2013-02-08 10:04]:
> I was compiling nagios-plugins-1.4.16 on a Solaris box but got the error
> below
> 
> configure: using 64bit pst3
> configure: compiler do not like -m64
> configure: compiler do not like -xarch=v9
> configure: compiler do not like -xarch=amd64
> configure: error: I don't know how to build a 64-bit object!

I guess you're running into the following issue.

| Q: I can't compile check_mysql on solaris
|
| A: If you are using GCC and your MySQL version was compiled using Sun's
|    C compiler (or the other way round), then it is likely that the
|    configure options will fail as configure will run mysql_config to get
|    the appropriate CFLAGS.
|
|    There are various options:
|
|    * Disable check_mysql by running ./configure --without-mysql
|    * Allow ./configure to finish, but manually amend plugins/Makefile
|      and remove any non-GCC flags in MYSQLCFLAGS
|    * Use Sun's C compiler to compile the plugins
|    * Use a GCC compiled version of MySQL

[ http://nagios-plugins.org/node/99 ]

Holger

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.