[Linux-HA] heartbeat-2.0.2 build error on SuSE 10.0: join_dc.c:288: warning: comparisons like X<=Y<=Z do not have their mathematical meaning

Bernhard Erdmann be at berdmann.de
Mon Oct 24 16:41:56 MDT 2005


Xun Sun wrote:
[...]
> Could you please try this change (which is in our CVS head now, said
> to fix compiling problem on Fedora Core 4) on your
> /usr/local/src//heartbeat-2.0.2/crm/crmd/join_dc.c, and see if it
> works?
> 
> --- join_dc.c.orig      2005-10-16 07:02:42.000000000 +0800
> +++ join_dc.c   2005-10-16 07:02:56.000000000 +0800
> @@ -285,7 +285,7 @@
>         CRM_DEV_ASSERT(cib_not_master != rc);
>         clear_bit_inplace(fsa_input_register, R_CIB_ASKED);
>         if(rc != cib_ok) {
> -               crm_log_maybe(rc==cib_old_data?LOG_WARNING:LOG_ERR,
> +              crm_log_maybe((rc==cib_old_data?LOG_WARNING:LOG_ERR),
>                               "Sync from %s resulted in an error: %s",
>                               (char*)user_data, cib_error2string(rc));
> 


It works using this patch. No problem to build. Thanks.




More information about the Linux-HA mailing list