Chinaunix首页 | 论坛 | 博客
  • 博客访问: 572927
  • 博文数量: 111
  • 博客积分: 3478
  • 博客等级: 中校
  • 技术积分: 1327
  • 用 户 组: 普通用户
  • 注册时间: 2009-05-28 22:37
文章分类

全部博文(111)

文章存档

2013年(4)

2012年(57)

2011年(15)

2010年(7)

2009年(28)

分类: LINUX

2012-03-20 16:11:44

平台:centos 5.x
内核: 2.6.18-194.el5
pacemaker版本:Pacemaker-1-1-0
编译方法: ./configure --prefix=${PREFIX} --with-heartbeat --with-lcrso-dir=/usr/libexec/lcrso  && make  && make install
问题:
utils.c: In function 'compare_capacity':
utils.c:199: error: 'GHashTableIter' undeclared (first use in this function)
utils.c:199: error: (Each undeclared identifier is reported only once
utils.c:199: error: for each function it appears in.)
utils.c:199: error: expected ';' before 'iter'
cc1: warnings being treated as errors
utils.c:200: warning: ISO C90 forbids mixed declarations and code
utils.c:206: warning: implicit declaration of function 'g_hash_table_iter_init'
utils.c:206: warning: nested extern declaration of 'g_hash_table_iter_init'
utils.c:206: error: 'iter' undeclared (first use in this function)
utils.c:207: warning: implicit declaration of function 'g_hash_table_iter_next'
utils.c:207: warning: nested extern declaration of 'g_hash_table_iter_next'
utils.c: In function 'calculate_utilization':
utils.c:321: error: 'GHashTableIter' undeclared (first use in this function)
utils.c:321: error: expected ';' before 'iter'
utils.c:322: warning: ISO C90 forbids mixed declarations and code
utils.c:327: error: 'iter' undeclared (first use in this function)
gmake[1]: *** [utils.lo] Error 1
gmake[1]: Leaving directory `/prog/Pacemaker-1-1-0/pengine'
make: *** [all-recursive] Error 1
这个问题怎么解决那?
经查是bug,在pacemaker-1-1-x(x<4)均有此问题
后来换成: Pacemaker-1-0-2c98a44ab644.tar.bz2
然后: ./configure --prefix=/data/heartbeat CFLAGS=-I/data/heartbeat/include LDFLAGS=-L/data/heartbeat/lib  && make && make install && echo "OK" (本例中/data/heartbeat是heartbeat的安装目录,如果heartbeat安装目录是其他请替换)
阅读(2536) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~