<br><br><div class="gmail_quote">On Fri, Dec 18, 2009 at 11:04 PM, Hunny Bunny <span dir="ltr"><<a href="mailto:tmphb@yahoo.com">tmphb@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">For some reason when you compile Pacemaker from sources, its ./autogen.sh && ./configure cannot detect Corosync and OpenAIS headers. Regardless if you set proper CFLAGS="-I$PREFIX/include -L$PREFIX/lib" or not.<br>
<br>Only when I copied or soft linked corosync and openais header directories into Pacemaker-1-0-xxxxxxxxx/include directory everything went very smoothly.<br>Is it a bug or a feature? Go figure ...<br></td></tr></tbody></table>
</blockquote><div><br></div><div>Sounds like a bug somewhere.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><table cellspacing="0" cellpadding="0" border="0">
<tbody><tr><td valign="top" style="font:inherit"><br>So, the final working configuration / compilation file for Pacemaker look like this:<br><br><--------------------- snipped ----------------------><br><br>#!/bin/bash<br>
<br>source /etc/profile.local<br>ldconfig<br><br>PREFIX=/usr/local/cluster<br>CLUSTER_USER=cluster<br>CLUSTER_GROUP=cluster<br><br>CFLAGS="-I$PREFIX/include -L$PREFIX/lib"<br>CXXFLAGS=$CFLAGS<br><br>export PREFIX CLUSTER_USER CLUSTER_GROUP CFLAGS CXXFLAGS<br>
<br># Copy
 Corosync and OpenAIS headers into source include<br>cp -a $PREFIX/include/corosync ./include<br>cp -a $PREFIX/include/openais ./include<br><br>./autogen.sh && ./configure \<br>--prefix=$PREFIX \<br>--sbindir=$PREFIX/sbin \<br>
--bindir=$PREFIX/bin \<br>--libdir=$PREFIX/lib \<br>--libexecdir=$PREFIX/libexec \<br>--includedir=$PREFIX/include \<br>--sysconfdir=/etc \<br>--datarootdir=$PREFIX/share \<br>--datadir=$PREFIX/share \<br>--datarootdir=$PREFIX/share \<br>
--mandir=$PREFIX/man \<br>--docdir=$PREFIX/doc/pacemaker \<br>--infodir=$PREFIX/info \<br>--localstatedir=$PREFIX/var \<br>--with-initdir=/etc/init.d \<br>--with-ais \<br>--with-ais-prefix=$PREFIX \<br>--with-lcrso-dir=$PREFIX/libexec/lcrso \<br>
--with-snmp \<br>--with-esmtp \<br>--without-heartbeat \<br>--enable-thread-safe \<br>--disable-fatal-warnings<br><br>make<br>make install<br><br><--------------------- snipped ----------------------><br><br>Thanks to everyone who tried to
 help, especially Andrew!<br><br>Merry Christmas!<br><br>Alex<br><br><br><br><br></td></tr></tbody></table><br>

      <br>_______________________________________________<br>
Pacemaker mailing list<br>
<a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br></blockquote></div><br>