[Ocfs2-tools-users] errors during ocfs2_controld build

Sunil Mushran sunil.mushran at oracle.com
Mon Aug 1 15:23:39 PDT 2011


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
>
>
> _______________________________________________
> Ocfs2-tools-users mailing list
> Ocfs2-tools-users at oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-tools-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/ocfs2-tools-users/attachments/20110801/c8ade337/attachment.html 


More information about the Ocfs2-tools-users mailing list