Xymon Mailing List Archive search

Current snapshot - compilation error

list Alexandre Levin
Thu, 13 Mar 2008 22:09:26 -0700
Message-Id: <user-a8383ed084f1@xymon.invalid>

OS: FreeBSD 7

Error:

	....
	In file included from do_rrd.c:517:
	rrd/do_memory.c:24: error: static declaration of
'string_compare' follows non-static declaration
	/w1/src/hobbit/hobbit/snapshot/include/../lib/rbtr.h:70: error:
previous declaration of 'string_compare' was here
	In file included from do_rrd.c:520:
	rrd/do_netstat.c: In function 'do_netstat_rrd':
	.....

Can be fixed by removing static int string_compare in
hobbitd/rrd/do_memory.c :

	
===================================================================
	--- hobbitd/rrd/do_memory.c     (revision 7646)
	+++ hobbitd/rrd/do_memory.c     (working copy)
	@@ -21,10 +21,12 @@
	  */
	 RbtHandle memhosts;
	 int memhosts_init = 0;
	-static int string_compare(void *a, void *b) {
	+/*
	+static int string_compare(void *a, void *b)
	+{
	        return strcmp((char *)a, (char *)b);
	 }
	• +*/
	 static int get_mem_percent(char *l)
	 {
	        char *p;
	
======================================================================

Alexandre Levin