平台: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安装目录是其他请替换)
阅读(2579) | 评论(0) | 转发(0) |