[Nagiosplug-help] compiling nagios-plugins on Solaris

Litwin, Matthew mlitwin at stubhub.com
Tue Jan 12 01:51:55 CET 2010


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





More information about the Help mailing list