[ClusterLabs] Antwort: qb_to_cs_error

Rafał Sanocki rafal.sanocki at gmail.com
Thu May 28 05:56:25 EDT 2015



W dniu 2015-05-28 o 11:50, philipp.achmueller at arz.at pisze:
> >In file included from compat.c:23:0:
> >../../include/crm_internal.h:309:1: error: conflicting types for
> >'qb_to_cs_error'
> >  qb_to_cs_error(int a)
> >  ^
> >In file included from /usr/include/corosync/coroipcc.h:42:0,
> >                  from ../../include/crm_internal.h:306,
> >                  from compat.c:23:
> >/usr/include/corosync/corotypes.h:139:12: note: previous declaration of
> >'qb_to_cs_error' was here
> >  cs_error_t qb_to_cs_error (int result);
> >             ^
>
> i solved this in my environment (SLES11.3) with removing "old" 
> corosync (1.x) installations
>
> regards
> Philipp
>
>
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> http://clusterlabs.org/mailman/listinfo/users
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org

i solved this error  using this patch


[*] The patch removing qb_to_cs_error. Why do I have this error?
---------------
diff --git a/include/crm_internal.h b/include/crm_internal.h
index 1cfea09..82ba820 100644
--- a/include/crm_internal.h
+++ b/include/crm_internal.h
@@ -231,11 +231,6 @@ typedef struct qb_ipc_response_header
cs_ipc_header_response_t;
  #      include <corosync/corodefs.h>
  #      include <corosync/coroipcc.h>
  #      include <corosync/coroipc_types.h>
-static inline int
-qb_to_cs_error(int a)
-{
-    return a;
-}

  typedef coroipc_request_header_t cs_ipc_header_request_t;
  typedef coroipc_response_header_t cs_ipc_header_response_t;


Regards
Rafał Sanocki

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/users/attachments/20150528/694a1750/attachment-0003.html>


More information about the Users mailing list