[dm-devel] [PATCH 1/5] multipath-tools: libmultipath: fix gcc link failure on rcu_register_thread_mb.
Christophe Varoqui
christophe.varoqui at opensvc.com
Fri Feb 10 11:33:48 UTC 2017
Applied.
On Fri, Jan 20, 2017 at 2:38 PM, Gris Ge <fge at redhat.com> 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 <fge at redhat.com>
> ---
> 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
> dm-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20170210/08e9eca1/attachment.htm>
More information about the dm-devel
mailing list