How to compile nagios plugin
ml ml
mliebherr99 at googlemail.com
Mon Oct 18 17:57:25 CEST 2010
Hello List,
i have installed varnish from tarball with: --prefix=/usr/local/varnish.
Now i would like to compile the nagios plugin from svn:
cd /tmp/trunk/varnish-tools/nagios/ ; bash autogen.sh ; ./configure
and i get: checking for VARNISHAPI... configure: error: Package
requirements (varnishapi) were not met:
No package 'varnishapi' found
so i ran: PKG_CONFIG_PATH="/usr/local/varnish/lib/pkgconfig/" ./configure
but running make brings up this error:
/tmp/trunk/varnish-tools/nagios# make
make all-am
make[1]: Entering directory `/tmp/trunk/varnish-tools/nagios'
gcc -DHAVE_CONFIG_H -I. -include config.h
-I/usr/local/varnish-2.1.3/include/varnish -g -O2 -MT
check_varnish-check_varnish.o -MD -MP -MF
.deps/check_varnish-check_varnish.Tpo -c -o
check_varnish-check_varnish.o `test -f 'check_varnish.c' || echo
'./'`check_varnish.c
check_varnish.c:45:17: error: vsc.h: No such file or directory
check_varnish.c:168: warning: ‘struct vsc_main’ declared inside parameter list
check_varnish.c:168: warning: its scope is only this definition or
declaration, which is probably not what you want
check_varnish.c: In function ‘check_stats’:
check_varnish.c:177: error: dereferencing pointer to incomplete type
check_varnish.c:177: error: dereferencing pointer to incomplete type
check_varnish.c:179: error: dereferencing pointer to incomplete type
check_varnish.c:183: error: dereferencing pointer to incomplete type
check_varnish.c:183: error: dereferencing pointer to incomplete type
check_varnish.c:185: error: dereferencing pointer to incomplete type
check_varnish.c:193:24: error: vsc_fields.h: No such file or directory
check_varnish.c: In function ‘main’:
check_varnish.c:252: warning: assignment makes pointer from integer
without a cast
check_varnish.c:285: warning: assignment makes pointer from integer
without a cast
check_varnish.c:301: warning: passing argument 1 of ‘check_stats’ from
incompatible pointer type
make[1]: *** [check_varnish-check_varnish.o] Error 1
make[1]: Leaving directory `/tmp/trunk/varnish-tools/nagios'
make: *** [all] Error 2
Anyone any idea?
Cheers,
Mario
More information about the varnish-misc
mailing list