[Pacemaker] [PATCH] pacemaker-pygui: Include saf/ais_membership.h in LHAMembershipTable.c

Yan Gao ygao at novell.com
Tue Feb 3 01:11:00 EST 2009


On Thu, 2009-01-29 at 18:52 +0900, Simon Horman wrote:
> make
> [snip]
> make[1]: Entering directory `/home/horms/projects/linux-ha/debian/experimental/pacemaker-pygui-1.4/Pacemaker-Python-GUI-7aee676cadd8/snmp_subagent'
> gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../include -I../include -I../include -I../libltdl -I../libltdl  -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/libxml2 -Wall -g -O2 -I/usr/include/heartbeat -I/usr/include/pacemaker -fgnu89-inline  -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing  -ansi -D_GNU_SOURCE -DANSI_ONLY -ggdb3 -funsigned-char -Wall -g -O2 -I/usr/include/heartbeat -I/usr/include/pacemaker -fgnu89-inline  -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing  -ansi -D_GNU_SOURCE -DANSI_ONLY -ggdb3 -funsigned-char -MT LHAMembershipTable.o -MD -MP -MF .deps/LHAMembershipTable.Tpo -c -o LHAMembershipTable.o LHAMembershipTable.c
> LHAMembershipTable.c: In function 'LHAMembershipTable_get_next_data_point':
> LHAMembershipTable.c:181: error: 'SaClmClusterNotificationT' undeclared (first use in this function)
> LHAMembershipTable.c:181: error: (Each undeclared identifier is reported only once
> LHAMembershipTable.c:181: error: for each function it appears in.)
> LHAMembershipTable.c:181: error: 'info' undeclared (first use in this function)
> LHAMembershipTable.c:195: error: expected expression before ')' token
> LHAMembershipTable.c: In function 'LHAMembershipTable_handler':
> LHAMembershipTable.c:223: error: 'SaClmClusterNotificationT' undeclared (first use in this function)
> LHAMembershipTable.c:223: error: 'entry' undeclared (first use in this function)
> LHAMembershipTable.c:225: warning: ISO C90 forbids mixed declarations and code
> LHAMembershipTable.c:239: error: expected expression before ')' token
> LHAMembershipTable.c:284: error: 'SA_CLM_MAX_ADDRESS_LENGTH' undeclared (first use in this function)
> make[1]: *** [LHAMembershipTable.o] Error 1
> make[1]: Leaving directory `/home/horms/projects/linux-ha/debian/experimental/pacemaker-pygui-1.4/Pacemaker-Python-GUI-7aee676cadd8/snmp_subagent'
> make: *** [all-recursive] Error 1
> 
> Signed-off-by: Simon Horman <horms at verge.net.au>
> 
> Index: pygui/snmp_subagent/LHAMembershipTable.c
> ===================================================================
> --- pygui.orig/snmp_subagent/LHAMembershipTable.c	2009-01-29 18:51:42.000000000 +0900
> +++ pygui/snmp_subagent/LHAMembershipTable.c	2009-01-29 18:51:44.000000000 +0900
> @@ -45,6 +45,7 @@
>  #include <net-snmp/net-snmp-config.h>
>  #include <net-snmp/net-snmp-includes.h>
>  #include <net-snmp/agent/net-snmp-agent-includes.h>
> +#include <saf/ais_membership.h>
>  #include "LHAMembershipTable.h"
>  
>  #include "hbagent.h"
Thanks for pointing out.
could you please try the following patch instead?
http://hg.clusterlabs.org/pacemaker/pygui/rev/91463711a50d
Thanks

BTW, the mailing list has been changed to pacemaker at oss.clusterlabs.org

-- 
Regards,
Yan Gao
China R&D Software Engineer
ygao at novell.com

Novell, Inc.
Making IT Work As One™





More information about the Pacemaker mailing list