diff -urp LVM2.2.02.177.orig/lib/commands/toolcontext.c LVM2.2.02.177/lib/commands/toolcontext.c --- LVM2.2.02.177.orig/lib/commands/toolcontext.c 2018-01-26 15:13:17.000000000 +0000 +++ LVM2.2.02.177/lib/commands/toolcontext.c 2018-01-26 16:38:04.214235565 +0000 @@ -1455,6 +1455,7 @@ int lvm_register_segtype(struct segtype_ return 1; } +#ifdef HAVE_LIBDL static int _init_single_segtype(struct cmd_context *cmd, struct segtype_library *seglib) { @@ -1472,6 +1473,7 @@ static int _init_single_segtype(struct c return lvm_register_segtype(seglib, segtype); } +#endif static int _init_segtypes(struct cmd_context *cmd) {