[Nagiosplug-help] nagiosplugs on MacOS X
Mark Fisher
mark40 at mac.com
Wed Nov 6 12:08:11 CET 2002
I'm working on installing nagios on a MacOS X 10.1 box and I've run into
trouble with the plugins...
Specifically I got this error:
./config.status: command not found: subst.sh [477]
from the ./configure script
I checked the configure script and added a ";" here (between "stamp-h6"
and "PATH="):
echo timestamp > plugins/stamp-h1;echo timestamp > plugins/stamp-h2;echo
timestamp > plugins/stamp-h3;echo timestamp > plugins/stamp-h4;echo
timestamp > plugins/stamp-h5;echo timestamp > plugins/stamp-
h6;PATH=.:..:$PATH;subst.sh command.cfg
This cleared up that problem. The next problem is with this:
Making all in plugins
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I/usr/include
-g -O2 -c check_disk.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I/usr/include
-g -O2 -c utils.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I/usr/include
-g -O2 -c popen.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I/usr/include
-g -O2 -c ./getopt.c -o getopt.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I/usr/include
-g -O2 -c ./getopt1.c -o getopt1.o
ar -r libgetopt.a getopt.o getopt1.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I/usr/include
-g -O2 -c snprintf.c -o snprintf.o
ar -r libsnprintf.a snprintf.o
gcc -g -O2 -L. -L/usr/lib -o check_disk check_disk.o utils.o popen.o
-lkvm -lgetopt -lsnprintf
/usr/bin/ld: archive: ./libgetopt.a has no table of contents, add one
with ranlib(1) (can't load from it)
/usr/bin/ld: archive: ./libsnprintf.a has no table of contents, add one
with ranlib(1) (can't load from it)
make[1]: *** [check_disk] Error 1
make: *** [all-recursive] Error 1
I tried "ranlib libgetopt.a" and "ranlib libsnprintf.a" but then I get a
duplicate symbol error:
>make
Making all in plugins
gcc -g -O2 -L. -L/usr/lib -o check_disk check_disk.o utils.o popen.o
-lkvm -lgetopt -lsnprintf
/usr/bin/ld: multiple definitions of symbol _getopt
/usr/lib/libkvm.dylib(getopt.o) definition of _getopt
./libgetopt.a(getopt.o) definition of _getopt in section (__TEXT,__text)
/usr/bin/ld: multiple definitions of symbol _optarg
/usr/lib/libkvm.dylib(getopt.o) definition of _optarg
./libgetopt.a(getopt.o) definition of _optarg in section (__DATA,__data)
/usr/bin/ld: multiple definitions of symbol _opterr
/usr/lib/libkvm.dylib(getopt.o) definition of _opterr
./libgetopt.a(getopt.o) definition of _opterr in section (__DATA,__data)
/usr/bin/ld: multiple definitions of symbol _optind
/usr/lib/libkvm.dylib(getopt.o) definition of _optind
./libgetopt.a(getopt.o) definition of _optind in section (__DATA,__data)
/usr/bin/ld: multiple definitions of symbol _optopt
/usr/lib/libkvm.dylib(getopt.o) definition of _optopt
./libgetopt.a(getopt.o) definition of _optopt in section (__DATA,__data)
make[1]: *** [check_disk] Error 1
make: *** [all-recursive] Error 1
What should I try next?
Mark
More information about the Help
mailing list