diff -urp LVM2.2.02.179.orig/lib/commands/toolcontext.c LVM2.2.02.179/lib/commands/toolcontext.c --- LVM2.2.02.179.orig/lib/commands/toolcontext.c 2018-06-26 11:40:23.355840745 +0000 +++ LVM2.2.02.179/lib/commands/toolcontext.c 2018-06-26 11:47:16.136816141 +0000 @@ -1438,6 +1438,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) { @@ -1455,6 +1456,7 @@ static int _init_single_segtype(struct c return lvm_register_segtype(seglib, segtype); } +#endif static int _init_segtypes(struct cmd_context *cmd) {