[sheepdog] [PATCH]] fix compilation on ubuntu by adding lib coroipcc to LDADD

Liu Yuan namei.unix at gmail.com
Tue Aug 14 04:34:52 CEST 2012


On 08/14/2012 03:13 AM, Thomas Merkel wrote:
> 
> 
> Signed-off-by: Thomas Merkel <tm at core.io>
> ---
>  configure.ac      |    1 +
>  sheep/Makefile.am |    2 +-
>  2 files changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 91126e2..0ebe852 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -258,6 +258,7 @@ if test "x${enable_corosync}" = xyes; then
>  	PKG_CHECK_MODULES([corosync],[corosync])
>  	PKG_CHECK_MODULES([libcpg],[libcpg])
>  	PKG_CHECK_MODULES([libcfg],[libcfg])
> +	PKG_CHECK_MODULES([libcoroipcc],[libcoroipcc])
>  	AC_DEFINE_UNQUOTED([HAVE_COROSYNC], 1, [have corosync])
>  	PACKAGE_FEATURES="$PACKAGE_FEATURES corosync"
>  fi
> diff --git a/sheep/Makefile.am b/sheep/Makefile.am
> index 16c79f0..f425190 100644
> --- a/sheep/Makefile.am
> +++ b/sheep/Makefile.am
> @@ -45,7 +45,7 @@ sheep_SOURCES		+= trace/trace.c trace/mcount.S trace/stabs.c trace/graph.c
>  endif
>  
>  sheep_LDADD	  	= ../lib/libsheepdog.a -lpthread \
> -			  $(libcpg_LIBS) $(libcfg_LIBS) $(libacrd_LIBS) $(LIBS)
> +			  $(libcpg_LIBS) $(libcfg_LIBS) $(libacrd_LIBS) $(libcoroipcc_LIBS) $(LIBS)
>  sheep_DEPENDENCIES	= ../lib/libsheepdog.a
>  
>  
> 

As far as I know, Sheepdog doesn't use coroipc at all. I can compile on
Ubuntu 10.10 without error. Could you please detail the error output?

Thanks,
Yuan



More information about the sheepdog mailing list