diff -urp LVM2.2.03.00.orig/lib/commands/toolcontext.c LVM2.2.03.00/lib/commands/toolcontext.c --- LVM2.2.03.00.orig/lib/commands/toolcontext.c 2018-10-21 14:34:49.832416609 +0000 +++ LVM2.2.03.00/lib/commands/toolcontext.c 2018-10-21 14:34:56.826416609 +0000 @@ -1298,6 +1298,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) { @@ -1315,6 +1316,7 @@ static int _init_single_segtype(struct c return lvm_register_segtype(seglib, segtype); } +#endif static int _init_segtypes(struct cmd_context *cmd) {