[Ocfs2-tools-users] errors during ocfs2_controld build
Travis Bean
tb53820 at gmail.com
Mon Aug 1 14:19:42 PDT 2011
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?
I am using the following build script:
#!/bin/bash
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
cd /tmp
wget --continue
http://oss.oracle.com/projects/ocfs2-tools/dist/files/source/v1.6/ocfs2-tools-1.6.4.tar.gz
tar xzf ocfs2-tools-*
cd ocfs2-tools-*
env CPPFLAGS="-I/usr/include/libxml2" ./configure --prefix=/usr
--localstatedir=/var
make
make install
rm -rf ../ocfs2-tools-*
I receive the following errors during the end of ocfs2_controld build:
make[1]: Entering directory `/tmp/ocfs2-tools-1.4.4/ocfs2_controld'
...
pacemaker.c: In function ‘setup_stack’:
pacemaker.c:158: error: ‘PCMK_SERVICE_ID’ undeclared (first use in this
function)
pacemaker.c:158: error: (Each undeclared identifier is reported only once
pacemaker.c:158: error: for each function it appears in.)
make[1]: *** [pacemaker.o] Error 1
make[1]: Leaving directory `/tmp/ocfs2-tools-1.4.4/ocfs2_controld'
make: *** [ocfs2_controld] Error 2
Note: I have to use "env CPPFLAGS="-I/usr/include/libxml2" ./configure";
otherwise, "make" will not find libxml/tree.h and libxml/xpath.h.
When building ocfs2-tools-1.4.x, I have to add --enable-dynamic-fsck=yes to
"./configure"; otherwise, "make" produces the following errors:
/usr/bin/ld: cannot find -ldl
collect2: ld returned 1 exit status
make[1]: *** [fsck.ocfs2] Error 1
make[1]: Leaving directory `/tmp/ocfs2-tools-1.4.4/fsck.ocfs2'
make: *** [fsck.ocfs2] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/ocfs2-tools-users/attachments/20110801/bb569c27/attachment.html
More information about the Ocfs2-tools-users
mailing list