[Openais] Compile issues with corosync

Steven Dake sdake at redhat.com
Mon Oct 20 14:52:29 PDT 2008


timeout types removal patch included.  merged at revision 1675.

Regards
-steve

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);
> 
> 
> 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;
> _______________________________________________
> Openais mailing list
> Openais at lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/openais
-------------- next part --------------
A non-text attachment was scrubbed...
Name: timeout_types.patch
Type: text/x-patch
Size: 832 bytes
Desc: not available
Url : http://lists.linux-foundation.org/pipermail/openais/attachments/20081020/bcacaf51/attachment.bin 


More information about the Openais mailing list