[Openais] Compile issues with corosync

Steven Dake sdake at redhat.com
Fri Oct 17 08:47:21 PDT 2008


On Wed, 2008-10-15 at 15:08 +0200, Andrew Beekhof wrote:
> Corosync itself builds fine, but building against it is problematic.
> 
> 1)
> 
> The entry for logsys_mkpri() in the header file causes compiler warnings.
>   /opt/local/include/corosync/engine/logsys.h:103: warning: inline
> function 'logsys_mkpri' declared but never defined
> 
> I suggest:
> 
> diff -r fdbf04a71d18 include/corosync/engine/logsys.h
> --- a/include/corosync/engine/logsys.h	Thu Oct 09 06:20:12 2008 +0000
> +++ b/include/corosync/engine/logsys.h	Wed Oct 15 15:05:17 2008 +0200
> @@ -100,7 +100,7 @@ extern struct logsys_logger logsys_logge
> 
>  extern int logsys_single_id;
> 
> -extern inline int logsys_mkpri (int priority, int id);
> +extern int logsys_mkpri (int priority, int id);
> 
>  extern void logsys_config_mode_set (
>  	unsigned int mode);
> 
> 

This has been changed in the rework that is taking place now for the
logsys library.


> 2)
> 
> Is the totem_timeout_types enum actually used anywhere?
> Because the presence of a variable declaration in a header file
> prevents linking:
>   ld: duplicate symbol _totem_timeout_types in .libs/plugin.o and .libs/utils.o
> 
> I can't find any reference to it, can it simply be removed?
> 
> enum {
> 	TOTEM_RETRANSMITS_BEFORE_LOSS,
> 	TOTEM_TOKEN,
> 	TOTEM_RETRANSMIT_TOKEN,
> 	TOTEM_HOLD_TOKEN,
> 	TOTEM_JOIN,
> 	TOTEM_CONSENSUS,
> 	TOTEM_MERGE,
> 	TOTEM_DOWNCHECK,
> 	TOTEM_FAIL_RECV_CONST,
> 
> 	MAX_TOTEM_TIMEOUTS	/* Last item */
> } totem_timeout_types;

yes this can be removed.  Make a patch, post to list, and commit it :)

Regards
-steve

> _______________________________________________
> Openais mailing list
> Openais at lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/openais



More information about the Openais mailing list