Hi Andrew,<br><br> Thanks for advice.<br> Configure went well. However, I have failed in make.<br><br>-------------<br>In file included from ../../include/crm/crm.h:373,<br>                 from ipc.c:31:<br>../../include/crm/common/util.h:314: warning: return type defaults to &#39;int&#39;<br>
../../include/crm/common/util.h: In function &#39;g_hash_append_value&#39;:<br>../../include/crm/common/util.h:315: warning: dereferencing &#39;void *&#39; pointer<br>../../include/crm/common/util.h:315: error: void value not ignored as it ought to be<br>
../../include/crm/common/util.h:317: warning: control reaches end of non-void function<br>../../include/crm/common/util.h: At top level:<br>../../include/crm/common/util.h:320: error: expected identifier or &#39;(&#39; before &#39;{&#39; token<br>
../../include/crm/common/util.h: In function &#39;g_hash_table_iter_next&#39;:<br>../../include/crm/common/util.h:343: error: &#39;hash_table&#39; undeclared (first use in this function)<br>../../include/crm/common/util.h:343: error: (Each undeclared identifier is reported only once<br>
../../include/crm/common/util.h:343: error: for each function it appears in.)<br>../../include/crm/common/util.h:352: warning: no return statement in function returning non-void<br>gmake[2]: *** [ipc.lo] Error 1<br>-------------<br>
<br>Regards,<br>Tomo<br><br><div class="gmail_quote">2010/11/11 Andrew Beekhof <span dir="ltr">&lt;<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Pretty sure thats nothing to do with the patch though<br>
Do you have the cluster-glue devel package installed?<br>
<div><div></div><div class="h5"><br>
On Thu, Nov 11, 2010 at 5:10 AM, nozawat &lt;<a href="mailto:nozawat@gmail.com">nozawat@gmail.com</a>&gt; wrote:<br>
&gt; Hi Andrew,<br>
&gt;<br>
&gt;  I applied a patch and tried it.<br>
&gt;  However, I have become the error so that the following library checks<br>
&gt; became no.<br>
&gt; ----<br>
&gt;  checking for PILLoadPlugin in -lpils... no<br>
&gt;  checking for G_main_add_IPC_Channel in -lplumb... no<br>
&gt;  configure: error: in `/opt/PM-1.1/pacemaker/1.1&#39;:<br>
&gt;  configure: error: Core Heartbeat utility libraries not found: no<br>
&gt;<br>
&gt; Regards,<br>
&gt; Tomo<br>
&gt;<br>
&gt; 2010/11/9 Andrew Beekhof &lt;<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Nov 9, 2010 at 1:17 PM, Lars Kellogg-Stedman &lt;<a href="mailto:lars@oddbit.com">lars@oddbit.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt;&gt; It seems however, that there is more interest in running 1.1 on EPEL5<br>
&gt;&gt; &gt;&gt; than I previously realized.<br>
&gt;&gt; &gt;&gt; We&#39;re going to try and figure out how to make it happen for 1.1.5<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; There are a *lot* of people out here still on RHEL5-derived platforms!<br>
&gt;&gt; &gt;  We&#39;re often restricted by organizational policy or by particular<br>
&gt;&gt; &gt; vendor software requirements.  I would be very happy to see continued<br>
&gt;&gt; &gt; EPEL5 compatibility in the 1.1 series.<br>
&gt;&gt;<br>
&gt;&gt; The following patch should be most of the solution.<br>
&gt;&gt; If someone can finish it off and confirm it works, I&#39;ll make sure it<br>
&gt;&gt; gets applied.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; diff -r dd75da218e4f <a href="http://configure.ac" target="_blank">configure.ac</a><br>
&gt;&gt; --- a/<a href="http://configure.ac" target="_blank">configure.ac</a>      Fri Oct 29 12:12:45 2010 +0200<br>
&gt;&gt; +++ b/<a href="http://configure.ac" target="_blank">configure.ac</a>      Tue Nov 09 13:20:55 2010 +0100<br>
&gt;&gt; @@ -654,7 +654,7 @@ AC_MSG_RESULT(using $GLIBCONFIG)<br>
&gt;&gt;<br>
&gt;&gt;  AC_CHECK_LIB(glib-2.0, g_hash_table_get_values)<br>
&gt;&gt;  if test &quot;x$ac_cv_lib_glib_2_0_g_hash_table_get_values&quot; != x&quot;&quot;yes; then<br>
&gt;&gt; -   AC_MSG_ERROR(Your version of Glib is too old, you need at least 2.14)<br>
&gt;&gt; +   AC_MSG_WARN(Your version of Glib is too old, you should have at least<br>
&gt;&gt; 2.14)<br>
&gt;&gt;  fi<br>
&gt;&gt;<br>
&gt;&gt;  #<br>
&gt;&gt; diff -r dd75da218e4f include/crm/common/util.h<br>
&gt;&gt; --- a/include/crm/common/util.h Fri Oct 29 12:12:45 2010 +0200<br>
&gt;&gt; +++ b/include/crm/common/util.h Tue Nov 09 13:20:55 2010 +0100<br>
&gt;&gt; @@ -298,4 +298,59 @@ extern int node_score_infinity;<br>
&gt;&gt;  extern xmlNode *create_operation_update(xmlNode *parent, lrm_op_t<br>
&gt;&gt; *op, const char *caller_version, int target_rc, const char *origin,<br>
&gt;&gt; int level);<br>
&gt;&gt;  extern void free_lrm_op(lrm_op_t *op);<br>
&gt;&gt;<br>
&gt;&gt; +#if HAVE_LIBGLIB_2_0<br>
&gt;&gt; +<br>
&gt;&gt; +#else<br>
&gt;&gt; +<br>
&gt;&gt; +typedef struct fake_ghi<br>
&gt;&gt; +{<br>
&gt;&gt; +       int         offset;<br>
&gt;&gt; +       GHashTable *hash;<br>
&gt;&gt; +       GList      *values;<br>
&gt;&gt; +<br>
&gt;&gt; +} GHashTableIter;<br>
&gt;&gt; +<br>
&gt;&gt; +static inline g_hash_append_value(gpointer key, gpointer value,<br>
&gt;&gt; gpointer user_data)<br>
&gt;&gt; +{<br>
&gt;&gt; +    GList *values = (GList *)*user_data;<br>
&gt;&gt; +    values = g_list_append(values, value);<br>
&gt;&gt; +}<br>
&gt;&gt; +<br>
&gt;&gt; +static inline GList *g_hash_table_get_values(GHashTable *hash_table);<br>
&gt;&gt; +{<br>
&gt;&gt; +    GList *values = NULL;<br>
&gt;&gt; +    g_hash_table_foreach(hash_table, g_hash_append_value, &amp;values);<br>
&gt;&gt; +}<br>
&gt;&gt; +<br>
&gt;&gt; +static inline void g_hash_table_iter_init(GHashTableIter *iter,<br>
&gt;&gt; GHashTable *hash_table)<br>
&gt;&gt; +{<br>
&gt;&gt; +    iter-&gt;offset = 0;<br>
&gt;&gt; +    iter-&gt;hash = hash_table;<br>
&gt;&gt; +<br>
&gt;&gt; +    /* iter-&gt;values = g_hash_table_get_values(hash_table); */<br>
&gt;&gt; +<br>
&gt;&gt; +    /* We could cache the values, but then we need to clean up the list<br>
&gt;&gt; +     * later which doesn&#39;t fit the glib2 API<br>
&gt;&gt; +     * So instead we calculate it in _next() every time its needed<br>
&gt;&gt; +     */<br>
&gt;&gt; +}<br>
&gt;&gt; +<br>
&gt;&gt; +<br>
&gt;&gt; +static inline gboolean g_hash_table_iter_next(GHashTableIter *iter,<br>
&gt;&gt; gpointer *key, gpointer *value)<br>
&gt;&gt; +{<br>
&gt;&gt; +    GList *values = iter-&gt;values;<br>
&gt;&gt; +    if(iter-&gt;values == NULL) {<br>
&gt;&gt; +       values = g_hash_table_get_values(hash_table);<br>
&gt;&gt; +    }<br>
&gt;&gt; +<br>
&gt;&gt; +    iter-&gt;offset++;<br>
&gt;&gt; +    *value = g_list_nth_data(values, iter-&gt;offset);<br>
&gt;&gt; +<br>
&gt;&gt; +    if(iter-&gt;values == NULL) {<br>
&gt;&gt; +       g_list_free(values);<br>
&gt;&gt; +    }<br>
&gt;&gt; +}<br>
&gt;&gt; +<br>
&gt;&gt;  #endif<br>
&gt;&gt; +<br>
&gt;&gt; +#endif<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
&gt;&gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
&gt;&gt;<br>
&gt;&gt; Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
&gt;&gt; Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt;&gt; Bugs:<br>
&gt;&gt; <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
&gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
&gt;<br>
&gt; Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
&gt; Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt; Bugs:<br>
&gt; <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
&gt;<br>
&gt;<br>
<br>
_______________________________________________<br>
Pacemaker mailing list: <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>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
</div></div></blockquote></div><br>