engstaff at virtacore.com
Fri Sep 17 22:36:09 CEST 2010
Currently I am looking to install the varnish nagios plugin into XI and during the compiling of the plugin I have been running into some issues as seen below, grabbed source svn branch from 2.1x varnish-tools/nagios . Tried trunk as well w/ same results. Current version of varnish running 2.1 all from rpm install on CentOS 5. If anyone has any advice that would be greatly appreciated .
varnish.x86_64 2.1.2-1.el5 installed
varnish-debuginfo.x86_64 2.1.2-1.el5 installed
varnish-libs.x86_64 2.1.2-1.el5 installed
varnish-libs-devel.x86_64 2.1.2-1.el5 installed
make: Entering directory `/root/nagios-test'
if gcc -DHAVE_CONFIG_H -I. -I. -I. -include config.h -I/usr/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; \
then mv -f ".deps/check_varnish-check_varnish.Tpo" ".deps/check_varnish-check_varnish.Po"; else rm -f ".deps/check_varnish-check_varnish.Tpo"; exit 1; fi
check_varnish.c: In function âcheck_statsâ:
check_varnish.c:183: error: âconst struct vsc_mainâ has no member named âsm_ballocâ
check_varnish.c:183: error: âconst struct vsc_mainâ has no member named âsm_bfreeâ
check_varnish.c:185: error: âconst struct vsc_mainâ has no member named âsm_ballocâ
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
make: *** [check_varnish-check_varnish.o] Error 1
make: Leaving directory `/root/nagios-test'
make: *** [all] Error 2
More information about the varnish-misc