Is it possible to build ocfs2-tools-1.6.x on RHEL/CentOS 6.x? If so, what build prereqs am I missing, or perhaps this is a bug in the setup_stack function?<br><br>I am using the following build script:<br><br>#!/bin/bash<br>
yum -y install e2fsprogs-devel glib2-devel readline-devel python-devel ncurses-devel pacemaker-libs-devel openaislib-devel libuuid-devel clusterlib-devel bzip2-devel libxml2-devel<br>cd /tmp<br>wget --continue <a href="http://oss.oracle.com/projects/ocfs2-tools/dist/files/source/v1.6/ocfs2-tools-1.6.4.tar.gz">http://oss.oracle.com/projects/ocfs2-tools/dist/files/source/v1.6/ocfs2-tools-1.6.4.tar.gz</a><br>
tar xzf ocfs2-tools-*<br>cd ocfs2-tools-*<br>env CPPFLAGS=&quot;-I/usr/include/libxml2&quot; ./configure --prefix=/usr --localstatedir=/var<br>make<br>make install<br>rm -rf ../ocfs2-tools-*<br><br>I receive the following errors during the end of ocfs2_controld build:<br>
<br>make[1]: Entering directory `/tmp/ocfs2-tools-1.4.4/ocfs2_controld&#39;<br>...<br>pacemaker.c: In function ‘setup_stack’:<br>pacemaker.c:158: error: ‘PCMK_SERVICE_ID’ undeclared (first use in this function)<br>pacemaker.c:158: error: (Each undeclared identifier is reported only once<br>
pacemaker.c:158: error: for each function it appears in.)<br>make[1]: *** [pacemaker.o] Error 1<br>make[1]: Leaving directory `/tmp/ocfs2-tools-1.4.4/ocfs2_controld&#39;<br>make: *** [ocfs2_controld] Error 2<br><br>Note: I have to use &quot;env CPPFLAGS=&quot;-I/usr/include/libxml2&quot; ./configure&quot;; otherwise, &quot;make&quot; will not find libxml/tree.h and libxml/xpath.h.<br>
When building ocfs2-tools-1.4.x, I have to add --enable-dynamic-fsck=yes to &quot;./configure&quot;; otherwise, &quot;make&quot; produces the following  errors:<br><br>/usr/bin/ld: cannot find -ldl<br>collect2: ld returned 1 exit status<br>
make[1]: *** [fsck.ocfs2] Error 1<br>make[1]: Leaving directory `/tmp/ocfs2-tools-1.4.4/fsck.ocfs2&#39;<br>make: *** [fsck.ocfs2] Error 2<br><br>