[Nagiosplug-help] compiling nagios-plugins on Solaris
Stevens, Michael
Michael_Stevens at affymetrix.com
Tue Jan 12 16:53:45 CET 2010
The problem here is that Sun complied mysql with the SunOne compiler, and you are using gcc. You can install SunOne, which is free, and use that. If you don't need the check_mysql module, you can run configure with the --without-mysql flag.
--
Mike
> -----Original Message-----
> From: Litwin, Matthew [mailto:mlitwin at stubhub.com]
> Sent: Monday, January 11, 2010 4:52 PM
> To: Nagios Plugin Help List
> Subject: [Nagiosplug-help] compiling nagios-plugins on Solaris
>
> I am trying to compile nagios-plugins 1.4.14 and 'make' fails when it
> gets to check_mysql. Any suggestions? Honestly, I don't even need
> check_mysql on the Solaris clients so I'd be happy to just exclude that
> target, but I am not sure how to do that and have 'make all' work.
>
> gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I.
> -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -
> I/usr/include/pgsql -I/usr/local/ssl/include -I/usr/sfw/include/mysql -
> I/usr/local/ssl/include -I/usr/sfw/include/mysql -xstrconst -mt -
> DNP_VERSION='"1.4.14"' -g -O2 -MT check_mysql-check_mysql.o -MD -MP -MF
> .deps/check_mysql-check_mysql.Tpo -c -o check_mysql-check_mysql.o `test
> -f 'check_mysql.c' || echo './'`check_mysql.c
> gcc: language strconst not recognized
> gcc: check_mysql.c: linker input file unused because linking not done
> mv -f .deps/check_mysql-check_mysql.Tpo .deps/check_mysql-
> check_mysql.Po
> mv: cannot access .deps/check_mysql-check_mysql.Tpo
> *** Error code 2
> make: Fatal error: Command failed for target `check_mysql-
> check_mysql.o'
> Current working directory /tmp/nagios-plugins-1.4.14/plugins
> *** Error code 1
> The following command caused the error:
> failcom='exit 1'; \
> for f in x $MAKEFLAGS; do \
> case $f in \
> *=* | --[!k]*);; \
> *k*) failcom='fail=yes';; \
> esac; \
> done; \
> dot_seen=no; \
> target=`echo all-recursive | sed s/-recursive//`; \
> list='gl tap lib plugins plugins-scripts plugins-root po'; for subdir
> in $list; do \
> echo "Making $target in $subdir"; \
> if test "$subdir" = "."; then \
> dot_seen=yes; \
> local_target="$target-am"; \
> else \
> local_target="$target"; \
> fi; \
> (cd $subdir && make $local_target) \
> || eval $failcom; \
> done; \
> if test "$dot_seen" = "no"; then \
> make "$target-am" || exit 1; \
> fi; test -z "$fail"
> make: Fatal error: Command failed for target `all-recursive'
> Current working directory /tmp/nagios-plugins-1.4.14
> *** Error code 1
> make: Fatal error: Command failed for target `all'
>
>
> Thanks,
> Matthew Litwin
> mlitwin at stubhub.com
> 415.222.8475
>
>
> -----------------------------------------------------------------------
> -------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and
> easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> 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
------------------------------------------------------------
This transmission is intended for the sole use of the individual
and entity to whom it is addressed, and may contain information
that is privileged, confidential and exempt from disclosure under
applicable law. You are hereby notified that any use,
dissemination, distribution or duplication of this transmission by
someone other than the intended addressee or its designated agent
is strictly prohibited. If you have received this transmission in
error, please notify the sender immediately by reply to this
transmission and delete it from your computer.
More information about the Help
mailing list