我尝试按照以下步骤从CentOS 6.9的源代码构建pacemaker 1.1.18
:
yum install libtool-ltdl-devel glib2-devel cluster-glue-libs-devel libxml2-devel libxslt-devel python-devel bzip2-devel gnutls-devel pam-devel ncurses-devel openssl-devel libselinux-devel docbook-style-xsl resource-agents clusterlib-devel corosynclib-devel heartbeat-devel heartbeat-libs asciidoc help2man publican inkscape
./autogen.sh
./configure
make
但是,出现以下错误:
gmake[2]: Entering directory `/scratch/Views/3rdParty/pacemaker-bfe4e8042065eb61506cd3ff10fc5f02dd2f3bb7/lib/ais'
CC utils.lo
CC plugin.lo
In file included from plugin.c:39:
../../include/config.h:625:1: error: "OCF_RA_DIR" redefined
In file included from /usr/include/pils/plugin.h:24,
from /usr/include/stonith/stonith.h:47,
from /usr/include/heartbeat/heartbeat.h:52,
from ../../include/crm/common/util.h:40,
from ../../include/crm/crm.h:222,
from ../../include/crm/common/xml.h:35,
from ../../include/crm/common/ipc.h:27,
from ../../include/crm/common/ipcs.h:29,
from ../../include/crm_internal.h:34,
from plugin.c:19:
/usr/include/heartbeat/glue_config.h:55:1: error: this is the location of the previous definition
来源是从ftp://bo.mirror.garr.it/2/scientific/6x/SRPMS/vendor/pacemaker-1.1.18-3.el6.src.rpm
下载的你能帮忙吗?
更新:如果我从https://github.com/ClusterLabs/pacemaker签出标签Pacemaker-1.1.18-rc3
,也会发生同样的错误
UPDATE1:
文件include/config.h
和/usr/include/heartbeat/glue_config.h
分别在第625行和第55行包含以下内容:
/* Location for OCF RAs */
#define OCF_RA_DIR "/usr/lib/ocf/resource.d"