On 09/06/12 23:16, Marcelo Genaro wrote:
> Exactly same problem with
> ClusterLabs-pacemaker-mgmt-pacemaker-mgmt-2.1.0-0-ge609be1.zip
> and
> ClusterLabs-pacemaker-mgmt-pacemaker-mgmt-2.1.1-0-ge4db9d3.zip
> 
> My pacemaker version is pacemaker-1.1.7-6.el6.x86_64
> 
> /bin/sh ../../libtool --tag=CC   --tag=CC   --mode=compile gcc
> -std=gnu99 -DHAVE_CONFIG_H -I. -I../../include -I../../include
> -I../../include -I../../libltdl  -I../../libltdl -I../../linux-ha
> -I../../linux-ha -I../..          -I../..  -I/usr/include/glib-2.0
> -I/usr/lib64/glib-2.0/include   -I/usr/include/libxml2 -I../../include
>  -I../../include -I../../libltdl  -I../../libltdl -I../../linux-ha
> -I../../linux-ha -I../..          -I../.. -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 -Werror -ansi
> -D_GNU_SOURCE -DANSI_ONLY -ggdb3 -funsigned-char -MT
> libhbmgmt_la-mgmt_lib.lo -MD -MP -MF .deps/libhbmgmt_la-mgmt_lib.Tpo
> -c -o libhbmgmt_la-mgmt_lib.lo `test -f 'mgmt_lib.c' || echo
> './'`mgmt_lib.c
> libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../include
> -I../../include -I../../include -I../../libltdl -I../../libltdl
> -I../../linux-ha -I../../linux-ha -I../.. -I../..
> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
> -I/usr/include/libxml2 -I../../include -I../../include -I../../libltdl
> -I../../libltdl -I../../linux-ha -I../../linux-ha -I../.. -I../.. -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 -Werror -ansi
> -D_GNU_SOURCE -DANSI_ONLY -ggdb3 -funsigned-char -MT
> libhbmgmt_la-mgmt_lib.lo -MD -MP -MF .deps/libhbmgmt_la-mgmt_lib.Tpo
> -c mgmt_lib.c  -fPIC -DPIC -o .libs/libhbmgmt_la-mgmt_lib.o
> cc1: warnings being treated as errors
> mgmt_lib.c: In function ‘init_mgmt_lib’:
> mgmt_lib.c:97: error: implicit declaration of function ‘is_heartbeat_cluster’
> gmake[2]: *** [libhbmgmt_la-mgmt_lib.lo] Error 1
> 
> 
> 
> Can be this a dependencies problem???
Weird. Haven't met any problem to build it against pacemaker-1.1.7.

> Anyone has succesfully installed gui on centos 6?
I guess you have installed the corresponding pacemaker-libs-devel,
right? If so, can you please try the attached patch?

Regards,
  Gao,Yan
-- 
Gao,Yan <[email protected]>
Software Engineer
China Server Team, SUSE.
diff --git a/mgmt/daemon/mgmt_lib.c b/mgmt/daemon/mgmt_lib.c
index 9a064c6..2a6a62f 100644
--- a/mgmt/daemon/mgmt_lib.c
+++ b/mgmt/daemon/mgmt_lib.c
@@ -51,6 +51,7 @@
 #include <clplumbing/cl_pidfile.h>
 
 #include <crm/crm.h>
+#include <crm/common/cluster.h>
 
 #ifdef SUPPORT_AIS
 #undef SUPPORT_AIS
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to