[Ocfs2-tools-users] errors during ocfs2_controld build

Travis Bean tb53820 at gmail.com
Mon Aug 1 16:43:45 PDT 2011


The dev packages you list are for a Debian based OS. The latest Debian
6.x release has ocfs2-tools in the apt-get repos. Unfortunately, this
is not the case with RHEL. The only software repository for RHEL that
offers ocfs2-tools is elrepo.com (testing repo) for RHEL 5.x, and the
ocfs2_controld.pcmk is missing because the ocfs2-tools build prereqs
do not exist on RHEL 5.x for building ocfs2_controld.

Here is how you can test the latest ocfs2-tools build on a RHEL 6.x
based OS. Download CentOS Enterprise Linux 6
(http://mirrors.kernel.org/centos/6.0/isos/x86_64/).

Install RHEL software repos:

#!/bin/bash
rpm -ivh http://elrepo.org/elrepo-release-6-4.el6.elrepo.noarch.rpm
rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
wget --continue -O /etc/yum.repos.d/pacemaker.repo
http://clusterlabs.org/rpm/epel-6/clusterlabs.repo

Perhaps it can be determined if there are devel packages I am missing
that can be found on a RHEL software repo?

Thanks for your help!

On Mon, 01 Aug 2011 15:27:09 -0700
Sunil Mushran <sunil.mushran at oracle.com> wrote:

> cluster-glue-dev libdlm-dev libdlmcontrol-dev pacemaker-dev
> libcman-dev libcorosync-dev libopenais-dev
>
> On 08/01/2011 03:23 PM, Sunil Mushran wrote:
> > yum install libcrmcluster1-dev
> >
> > On 08/01/2011 02:19 PM, Travis Bean wrote:
> >> 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



More information about the Ocfs2-tools-users mailing list