>From bugzilla filed by Caolan McNamara
ix up header 

Description of problem:
various backwards compatible defines misspelt or missing

i.e.
#define EVS_ERR_LIBRARY                                CS_ERR_ERR_LIBRARY
but the enum is CS_ERR_LIBRARY not CS_ERR_ERR_LIBRARY

There probably should be a
#define CPG_ERR_TOO_MANY_GROUPS                CS_ERR_TOO_MANY_GROUPS

and there are defines against "CS_ERR_SECURITY" which doesn't exist, I suspect
a 
CS_ERR_SECURITY = 29,
is missing.

Version-Release number of selected component (if applicable):
corosync-0.92-5.svn1709.fc11.x86_64

patch attached to fix it up, which enables qpid rebuild to succeed  
--- corosync-0.92.orig/include/corosync/corotypes.h	2009-01-07 14:25:56.000000000 +0000
+++ corosync-0.92/include/corosync/corotypes.h	2009-01-07 14:26:17.000000000 +0000
@@ -98,6 +98,7 @@
    CS_ERR_TOO_BIG = 26,
    CS_ERR_NO_SECTIONS = 27,
    CS_ERR_CONTEXT_NOT_FOUND = 28,
+   CS_ERR_SECURITY = 29,
    CS_ERR_TOO_MANY_GROUPS = 30
 } cs_error_t;
 
@@ -109,7 +110,7 @@
 #define EVS_DISPATCH_ALL			CS_DISPATCH_ALL
 #define EVS_DISPATCH_BLOCKING		CS_DISPATCH_BLOCKING
 #define EVS_OK						CS_OK
-#define EVS_ERR_LIBRARY				CS_ERR_ERR_LIBRARY
+#define EVS_ERR_LIBRARY				CS_ERR_LIBRARY
 #define EVS_ERR_TIMEOUT				CS_ERR_TIMEOUT
 #define EVS_ERR_TRY_AGAIN			CS_ERR_TRY_AGAIN
 #define EVS_ERR_INVALID_PARAM		CS_ERR_INVALID_PARAM
@@ -127,7 +128,7 @@
 #define CPG_DISPATCH_ALL			CS_DISPATCH_ALL
 #define CPG_DISPATCH_BLOCKING		CS_DISPATCH_BLOCKING
 #define CPG_OK						CS_OK
-#define CPG_ERR_LIBRARY				CS_ERR_ERR_LIBRARY
+#define CPG_ERR_LIBRARY				CS_ERR_LIBRARY
 #define CPG_ERR_TIMEOUT				CS_ERR_TIMEOUT
 #define CPG_ERR_TRY_AGAIN			CS_ERR_TRY_AGAIN
 #define CPG_ERR_INVALID_PARAM		CS_ERR_INVALID_PARAM
@@ -138,13 +139,14 @@
 #define CPG_ERR_EXIST				CS_ERR_EXIST
 #define CPG_ERR_NOT_SUPPORTED		CS_ERR_NOT_SUPPORTED
 #define CPG_ERR_SECURITY			CS_ERR_SECURITY
+#define CPG_ERR_TOO_MANY_GROUPS		CS_ERR_TOO_MANY_GROUPS
 #define cpg_error_t cs_error_t
 
 #define CONFDB_DISPATCH_ONE			CS_DISPATCH_ONE
 #define CONFDB_DISPATCH_ALL			CS_DISPATCH_ALL
 #define CONFDB_DISPATCH_BLOCKING	CS_DISPATCH_BLOCKING
 #define CONFDB_OK					CS_OK
-#define CONFDB_ERR_LIBRARY			CS_ERR_ERR_LIBRARY
+#define CONFDB_ERR_LIBRARY			CS_ERR_LIBRARY
 #define CONFDB_ERR_TIMEOUT			CS_ERR_TIMEOUT
 #define CONFDB_ERR_TRY_AGAIN		CS_ERR_TRY_AGAIN
 #define CONFDB_ERR_INVALID_PARAM	CS_ERR_INVALID_PARAM
@@ -161,7 +163,7 @@
 #define QUORUM_DISPATCH_ALL			CS_DISPATCH_ALL
 #define QUORUM_DISPATCH_BLOCKING	CS_DISPATCH_BLOCKING
 #define QUORUM_OK					CS_OK
-#define QUORUM_ERR_LIBRARY			CS_ERR_ERR_LIBRARY
+#define QUORUM_ERR_LIBRARY			CS_ERR_LIBRARY
 #define QUORUM_ERR_TIMEOUT			CS_ERR_TIMEOUT
 #define QUORUM_ERR_TRY_AGAIN		CS_ERR_TRY_AGAIN
 #define QUORUM_ERR_INVALID_PARAM	CS_ERR_INVALID_PARAM
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to