Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我在编译安装pacemaker-mgmt-2.1.2时,make出现以下错误 #3

Open
wu0407 opened this issue May 16, 2014 · 1 comment
Open

Comments

@wu0407
Copy link

wu0407 commented May 16, 2014

mgmt_crm.c: 在函数‘on_cleanup_rsc’中:
mgmt_crm.c:1605: 错误:提供给函数‘query_node_uuid’的实参太少
gmake[2]: *** [libhbmgmt_la-mgmt_crm.lo] 错误 1
gmake[2]: Leaving directory /root/pacemaker-mgmt-pacemaker-mgmt-2.1.2/mgmt/daemon' gmake[1]: *** [all-recursive] 错误 1 gmake[1]: Leaving directory/root/pacemaker-mgmt-pacemaker-mgmt-2.1.2/mgmt'
make: *** [all-recursive] 错误 1
pacemaker版本
pacemaker-libs-devel-1.1.10-14.el6_5.3.i686
尝试 make pacemaker-mgmt-2.1.1提示
mgmt_lib.c: 在函数‘init_mgmt_lib’中:
mgmt_lib.c:97: 错误:隐式声明函数‘is_heartbeat_cluster’
gmake[2]: *** [libhbmgmt_la-mgmt_lib.lo] 错误 1
gmake[2]: Leaving directory /root/pacemaker-mgmt-pacemaker-mgmt-2.1.1/mgmt/daemon' gmake[1]: *** [all-recursive] 错误 1 gmake[1]: Leaving directory/root/pacemaker-mgmt-pacemaker-mgmt-2.1.1/mgmt'
make: *** [all-recursive] 错误 1
该如何解决呢

@gao-yan
Copy link
Owner

gao-yan commented May 19, 2014

You'd need something like the following when compiling it against pacemaker-1.1.10:

diff --git a/mgmt/daemon/mgmt_crm.c b/mgmt/daemon/mgmt_crm.c
index 9e5140c..3b5ff36 100644
--- a/mgmt/daemon/mgmt_crm.c
+++ b/mgmt/daemon/mgmt_crm.c
@@ -1602,7 +1602,7 @@ on_cleanup_rsc(char* argv[], int argc)
        delete_lrm_rsc(crmd_channel, argv[1], argv[2]);
        refresh_lrm(crmd_channel, NULL);

-       rc = query_node_uuid(cib_conn, argv[1], &dest_node);
+       rc = query_node_uuid(cib_conn, argv[1], &dest_node, NULL);
        if (rc != 0) {
                mgmt_log(LOG_WARNING, "Could not map uname=%s to a UUID: %s\n",
                                argv[1], pcmk_strerror(rc))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants