<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
yum install libcrmcluster1-dev<br>
<br>
On 08/01/2011 02:19 PM, Travis Bean wrote:
<blockquote
cite="mid:CAD4uHbu8jMnsBXsx+NXA96-1xQMYzONpmj3w=ChBikyOD1Sh1Q@mail.gmail.com"
type="cite">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 moz-do-not-send="true"
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="-I/usr/include/libxml2" ./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'<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'<br>
make: *** [ocfs2_controld] Error 2<br>
<br>
Note: I have to use "env CPPFLAGS="-I/usr/include/libxml2"
./configure"; otherwise, "make" 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 "./configure"; otherwise, "make"
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'<br>
make: *** [fsck.ocfs2] Error 2<br>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Ocfs2-tools-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Ocfs2-tools-users@oss.oracle.com">Ocfs2-tools-users@oss.oracle.com</a>
<a class="moz-txt-link-freetext" href="http://oss.oracle.com/mailman/listinfo/ocfs2-tools-users">http://oss.oracle.com/mailman/listinfo/ocfs2-tools-users</a></pre>
</blockquote>
<br>
</body>
</html>