Hi Andrew,<br><br> I applied a patch and tried it. <br> However, I have become the error so that the following library checks became no.<br>----<br> checking for PILLoadPlugin in -lpils... no<br> checking for G_main_add_IPC_Channel in -lplumb... no<br>
 configure: error: in `/opt/PM-1.1/pacemaker/1.1':<br> configure: error: Core Heartbeat utility libraries not found: no<br><br>Regards,<br>Tomo<br><br><div class="gmail_quote">2010/11/9 Andrew Beekhof <span dir="ltr"><<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Tue, Nov 9, 2010 at 1:17 PM, Lars Kellogg-Stedman <<a href="mailto:lars@oddbit.com">lars@oddbit.com</a>> wrote:<br>

>> It seems however, that there is more interest in running 1.1 on EPEL5<br>
>> than I previously realized.<br>
>> We're going to try and figure out how to make it happen for 1.1.5<br>
><br>
> There are a *lot* of people out here still on RHEL5-derived platforms!<br>
>  We're often restricted by organizational policy or by particular<br>
> vendor software requirements.  I would be very happy to see continued<br>
> EPEL5 compatibility in the 1.1 series.<br>
<br>
</div>The following patch should be most of the solution.<br>
If someone can finish it off and confirm it works, I'll make sure it<br>
gets applied.<br>
<br>
<br>
diff -r dd75da218e4f <a href="http://configure.ac" target="_blank">configure.ac</a><br>
--- a/<a href="http://configure.ac" target="_blank">configure.ac</a>      Fri Oct 29 12:12:45 2010 +0200<br>
+++ b/<a href="http://configure.ac" target="_blank">configure.ac</a>      Tue Nov 09 13:20:55 2010 +0100<br>
@@ -654,7 +654,7 @@ AC_MSG_RESULT(using $GLIBCONFIG)<br>
<br>
 AC_CHECK_LIB(glib-2.0, g_hash_table_get_values)<br>
 if test "x$ac_cv_lib_glib_2_0_g_hash_table_get_values" != x""yes; then<br>
-   AC_MSG_ERROR(Your version of Glib is too old, you need at least 2.14)<br>
+   AC_MSG_WARN(Your version of Glib is too old, you should have at least 2.14)<br>
 fi<br>
<br>
 #<br>
diff -r dd75da218e4f include/crm/common/util.h<br>
--- a/include/crm/common/util.h Fri Oct 29 12:12:45 2010 +0200<br>
+++ b/include/crm/common/util.h Tue Nov 09 13:20:55 2010 +0100<br>
@@ -298,4 +298,59 @@ extern int node_score_infinity;<br>
 extern xmlNode *create_operation_update(xmlNode *parent, lrm_op_t<br>
*op, const char *caller_version, int target_rc, const char *origin,<br>
int level);<br>
 extern void free_lrm_op(lrm_op_t *op);<br>
<br>
+#if HAVE_LIBGLIB_2_0<br>
+<br>
+#else<br>
+<br>
+typedef struct fake_ghi<br>
+{<br>
+       int         offset;<br>
+       GHashTable *hash;<br>
+       GList      *values;<br>
+<br>
+} GHashTableIter;<br>
+<br>
+static inline g_hash_append_value(gpointer key, gpointer value,<br>
gpointer user_data)<br>
+{<br>
+    GList *values = (GList *)*user_data;<br>
+    values = g_list_append(values, value);<br>
+}<br>
+<br>
+static inline GList *g_hash_table_get_values(GHashTable *hash_table);<br>
+{<br>
+    GList *values = NULL;<br>
+    g_hash_table_foreach(hash_table, g_hash_append_value, &values);<br>
+}<br>
+<br>
+static inline void g_hash_table_iter_init(GHashTableIter *iter,<br>
GHashTable *hash_table)<br>
+{<br>
+    iter->offset = 0;<br>
+    iter->hash = hash_table;<br>
+<br>
+    /* iter->values = g_hash_table_get_values(hash_table); */<br>
+<br>
+    /* We could cache the values, but then we need to clean up the list<br>
+     * later which doesn't fit the glib2 API<br>
+     * So instead we calculate it in _next() every time its needed<br>
+     */<br>
+}<br>
+<br>
+<br>
+static inline gboolean g_hash_table_iter_next(GHashTableIter *iter,<br>
gpointer *key, gpointer *value)<br>
+{<br>
+    GList *values = iter->values;<br>
+    if(iter->values == NULL) {<br>
+       values = g_hash_table_get_values(hash_table);<br>
+    }<br>
+<br>
+    iter->offset++;<br>
+    *value = g_list_nth_data(values, iter->offset);<br>
+<br>
+    if(iter->values == NULL) {<br>
+       g_list_free(values);<br>
+    }<br>
+}<br>
+<br>
 #endif<br>
+<br>
+#endif<br>
<div><div></div><div class="h5"><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>