Applied.

On Fri, Jan 20, 2017 at 2:38 PM, Gris Ge <[email protected]> wrote:

> Error:
>     ../libmultipath/libmultipath.so: undefined reference to
>     `rcu_register_thread_mb'
>     ../libmultipath/libmultipath.so: undefined reference to
>     `rcu_unregister_thread_mb'
>
> Fix:
>     Link the libmultipath with -lurcu
>
> Signed-off-by: Gris Ge <[email protected]>
> ---
>  libmultipath/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libmultipath/Makefile b/libmultipath/Makefile
> index b5d54d8..1f5ec25 100644
> --- a/libmultipath/Makefile
> +++ b/libmultipath/Makefile
> @@ -9,7 +9,7 @@ LIBS = $(DEVLIB).$(SONAME)
>
>  CFLAGS += -I$(mpathcmddir)
>
> -LIBDEPS += -lpthread -ldl -ldevmapper -ludev -L$(mpathcmddir) -lmpathcmd
> +LIBDEPS += -lpthread -ldl -ldevmapper -ludev -L$(mpathcmddir) -lmpathcmd
> -lurcu
>
>  ifdef SYSTEMD
>         CFLAGS += -DUSE_SYSTEMD=$(SYSTEMD)
> --
> 1.8.3.1
>
> --
> dm-devel mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/dm-devel
>
--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

Reply via email to